Fast minimal representative search using partitions.