the problem of optimal partitioning sets