On Finding Optimal Partitions of a Measurable Space