Structured partitioning problems