1. Interpolation Once Binary Search over a Sorted List.
- Author
-
Lin, Jun-Lin
- Subjects
- *
INTERPOLATION , *TIME complexity , *COMPUTER science - Abstract
Searching over a sorted list is a classical problem in computer science. Binary Search takes at most log 2 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. [ABSTRACT FROM AUTHOR]
- Published
- 2024
- Full Text
- View/download PDF