Interpolation search – beating the binary search

Tags:

http://sna-projects.com/blog/2010/06/beating-binary-search/

Instead of just picking the middle, guess the position where the target value appears, and compares the value in the position with the target. This obtains O(loglogN).

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *