Combinatorial segmentation