Author thomasahle
Recipients steven.daprano, terry.reedy, thomasahle, tim.peters, vajrasky
Date 2014-05-31.09:15:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think "minimize expected-case time" is a good goal. If we wanted "minimize worst-case time" we would have to use k-means rather than quickselect.

My trials on random data, where sort arguably has a disadvantage, suggests sorting is about twice as fast for most input sizes. With pypy quick-select is easily 5-10 times faster, which I take as a suggestion that a C-implementation might be worth a try.

For designing a realistic test-suite, I suppose we need to look at what tasks medians are commonly used for. I'm thinking median filters from image processing, medians clustering, robust regressing, anything else?
Date User Action Args
2014-05-31 09:15:27thomasahlesetrecipients: + thomasahle, tim.peters, terry.reedy, steven.daprano, vajrasky
2014-05-31 09:15:27thomasahlesetmessageid: <>
2014-05-31 09:15:27thomasahlelinkissue21592 messages
2014-05-31 09:15:25thomasahlecreate