On Wednesday, 20 January 2016 at 02:26:35 UTC, Timon Gehr wrote: > On 01/20/2016 02:20 AM, Andrei Alexandrescu wrote: >> [...] > > This is not an implementation of the median of medians > algorithm. > > [...] The approximate medianOfMedians algorithm can be used for topN. --Ilya