Russell Cohen personal blog

My Favorite Algorithm: Linear Time Median Finding (2018)

Finding the median in a list seems like a trivial problem, but doing so in linear time turns out to be tricky. In this post I’m going to walk through one of my favorite algorithms, the median-of-medians approach to find the median of a list in deterministic linear time. Although proving that this algorithm runs in…
Points
371
HN comments
181
Submissions
1
Cited by
0 commenters

Software EngineeringMath & Algorithms2024

On Hacker News

SubmittedTitle on HNPointsComments
Jul 25, 2024My Favorite Algorithm: Linear Time Median Finding (2018) by skanderbm371181

More from Russell Cohen

All 6 posts →

Related posts from the same era