35 points | by martianlantern 7 days ago ago
2 comments
Just because the article mentions median-of-medians, I'd like to call out median-of-ninthers: https://erdani.org/research/sea2017.pdf
I was able to use this to implement practical deterministic linear time median selection in Go: https://github.com/ncruces/sort/blob/main/quick/quick.go
seriously cool, i just did something similar with quantiles for even bucketizing on arb key data types (still needs ord tho)
Just because the article mentions median-of-medians, I'd like to call out median-of-ninthers: https://erdani.org/research/sea2017.pdf
I was able to use this to implement practical deterministic linear time median selection in Go: https://github.com/ncruces/sort/blob/main/quick/quick.go
seriously cool, i just did something similar with quantiles for even bucketizing on arb key data types (still needs ord tho)