Back to front pageView on Hacker News (opens in a new tab)Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years agoComments (491) 209 threadsShow all commentsShowing thread 131 of 209utopcell8 years ago#Interpolation search [1], which allows you to search a sorted array in O(log(log(n))) time, assuming its elements are uniformly distributed (for instance, you are searching a sorted array of hashes.)[1] https://en.wikipedia.org/wiki/Interpolation_search
Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years ago
utopcell8 years ago#Interpolation search [1], which allows you to search a sorted array in O(log(log(n))) time, assuming its elements are uniformly distributed (for instance, you are searching a sorted array of hashes.)[1] https://en.wikipedia.org/wiki/Interpolation_search
Comments (491) 209 threads
Show all comments
Showing thread 131 of 209
[1] https://en.wikipedia.org/wiki/Interpolation_search