@Adám [1,2,3]
is a superset to [1,2]
, [2,3]
and [1,2,3]
and [4,5]
is a superset to [4,5]
, so the output would be [1,2,3]
and [4,5]
. Essentially, every element in the input is either a subset of some set X_i, or is one of the sets X_i. The CMC is to output the sets X_i
[[1,2], [3,4]] -> [[1,2], [3,4]]
; [[1,2], [2,3], [3,4], [1,2,3,4]] -> [[1,2,3,4]]
; [[1,2], [2,3], [4,5], [5,6], [1,2,3], [4,5,6]] -> [[1,2,3],[4,5,6]]
etc.