Interpolation Once Binary Search over a Sorted List

Jun-Lin Lin
DOI: https://doi.org/10.3390/math12091394
IF: 2.4
2024-05-02
Mathematics
Abstract:Searching over a sorted list is a classical problem in computer science. Binary Search takes at most log2⁡n+1 tries to find an item in a sorted list of size n. Interpolation Search achieves an average time complexity of O(log⁡log⁡n) for uniformly distributed data. Hybrids of Binary Search and Interpolation Search are also available to handle data with unknown distributions. This paper analyzes the computation cost of these methods and shows that interpolation can significantly affect their performance—accordingly, a new method, Interpolation Once Binary Search (IOBS), is proposed. The experimental results show that IOBS outperforms the hybrids of Binary Search and Interpolation Search for nonuniformly distributed data.
mathematics
What problem does this paper attempt to address?