Encyclopedia > Interpolation search

  Article Content

Interpolation search

Interpolation search parallels how humans search through a telephone book. Instead of comparing against every item like the linear search, it attempts to find the item by approximating how far the item is likely to be from the current position. This differs from the binary search, in that the binary search always divides the search space[?] in half. The interpolation search makes fewer than O(log(log(N)) comparisons, where N is the number of elements to be searched, however in reality it is often no faster than binary search due to the complexity of the arithmetic calculations of approximating the indices.

The interpolation search, like the binary search, requires that the values be sorted and randomly accessible. It works by making the assumption that values are uniformly distributed, and thus uses the end values to compute an index.

External Links:



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Canadian Music Hall of Fame

... 1979 Hank Snow 1980 Paul Anka 1981 Joni Mitchell 1982 Neil Young 1983 Glenn Gould 1986 Gordon Lightfoot 1987 The Guess Who[?] 1989 The Band 1990 ...

 
 
 
This page was created in 22.9 ms