Equality-only grouping lower bound

ID: equality-only-grouping-lower-bound

In the comparison model exposing only an equality test between otherwise opaque values, partitioning values into equivalence classes takes tests in the worst case. Run the algorithm on pairwise distinct values. If any pair remains untested, changing just those two values to equal is consistent with every answer observed so far but changes the required output partition. Every pair must therefore be tested. With a compatible total order, comparison sort can instead group equal values in time.

New to topics? Read the docs here!