IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i9p1394-d1387956.html
   My bibliography  Save this article

Interpolation Once Binary Search over a Sorted List

Author

Listed:
  • Jun-Lin Lin

    (Department of Information Management, Yuan Ze University, Taoyuan 32003, Taiwan
    Innovation Center for Big Data and Digital Convergence, Taoyuan 32003, Taiwan
    Zhen Ding Tech. Group—Yuan Ze University Joint R&D Center for Big Data, Taoyuan 32003, Taiwan)

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.

Suggested Citation

  • Jun-Lin Lin, 2024. "Interpolation Once Binary Search over a Sorted List," Mathematics, MDPI, vol. 12(9), pages 1-12, May.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:9:p:1394-:d:1387956
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/9/1394/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/9/1394/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:9:p:1394-:d:1387956. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.