Let C 1 , C 2 be sets of pairs assigned to labels L 1 , L 2 .
we merge two labels if one of the following conditions holds: either one group is nearly included in the other or each group shares nearly half with the other group.