Given: Set of Set of Intervals. Example {{[1(1,2]2), [3(3,4]4)}, {[1(1, 3]3)}, {[13(13,14]14)}}
Wanted Result: Largest Subset, in which no Interval overlaps with another from every Set pairwise.
Example:
Input {{[1(1,2]2), [3(3,4]4)}, {[1(1, 3]3)}, {[13(13,14]14)}} A possible Solution would be: {{[1(1,2]2), [3(3,4]4)}, {[13(13,14]14)}} Another could be {{[1(1, 3]3)}, {[13(13,14]14)}}, it's not important that the solution above has more 'subelements', its only important that 2 = |{{[1(1,2]2), [3(3,4]4)}, {[13(13,14]14)}}| = |{{[1(1, 3]3)}, {[13(13,14]14)}}|
Now i am looking for a good/efficient Algorithm to solve that problem.