-- Feb 22 In-Class Exercise
We can show that a possible solution to the clustering problem is verifiable in polynomial time. Given a set partition of X, we can in `O(n^2)` invocations of the distance function compute the distances between all members of the component of the set partition. If any two members are found to be further than B apart, we can immediately reject the partition as unsatisfactory. Otherwise, if we go through each component of the partition without running into the above situation, then the partition is satisfactory.
(
Edited: 2017-02-22)
We can show that a possible solution to the clustering problem is verifiable in polynomial time. Given a set partition of X, we can in @BT@O(n^2)@BT@ invocations of the distance function compute the distances between all members of the component of the set partition. If any two members are found to be further than B apart, we can immediately reject the partition as unsatisfactory. Otherwise, if we go through each component of the partition without running into the above situation, then the partition is satisfactory.