Generalizing a fundamental clustering problem, the problem of finding \$k\$ points among \$n\$ points such that the diameter or the variance of the subset is minimized.