Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
utopcell
on Oct 17, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: What's your favorite elegant/beautiful alg...
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://en.wikipedia.org/wiki/Interpolation_search