HackerTrans
TopNewTrendsCommentsPastAskShowJobs

danlark

no profile record

Submissions

Miniselect: Practical Linear Time Median Algorithms

danlark.org
2 points·by danlark·2 वर्ष पहले·0 comments

RE2 maintainer Paul Wankadia died

github.com
70 points·by danlark·2 वर्ष पहले·11 comments

comments

danlark
·2 वर्ष पहले·discuss
3 and 4 elements will fail to prove the complexity is linear

You still can do 3 or 4 but with slight modifications

https://arxiv.org/abs/1409.3600

For example, for 4 elements, it's advised to take lower median for the first half and upper median for the second half. Then the complexity will be linear
danlark
·2 वर्ष पहले·discuss
Around 4 years ago I compared lots of different median algorithms and the article turned out to be much longer than I anticipated :)

https://danlark.org/2020/11/11/miniselect-practical-and-gene...
danlark
·3 वर्ष पहले·discuss
Disclaimer: the author of the comment is the CEO of ClickHouse