Standard Vs Uniform Binary Search and Their Variants in Learned Static Indexing: The Case of the Searching on Sorted Data Benchmarking Software Platform

Domenico Amato, Giosuè Lo Bosco, Raffaele Giancarlo
1/5/2022
cs.DScs.DBcs.IR

Official code: globosco/A-modified-SOSD-platform-for-benchmarking-Branchy-vs-Branch-free-search-algorithms (1 star, C++, GPL-3.0, last commit 2023-06-02).

Abstract

Learned Indexes are a novel approach to search in a sorted table. A model is used to predict an interval in which to search into and a Binary Search routine is used to finalize the search.

Show full abstract

They are quite effective. For the final stage, usually, the lower_bound routine of the Standard C++ library is used, although this is more of a natural choice rather than a requirement. However, recent studies, that do not use Machine Learning predictions, indicate that other implementations of Binary Search or variants, namely k-ary Search, are better suited to take advantage of the features offered by modern computer architectures. With the use of the Searching on Sorted Sets SOSD Learned Indexing benchmarking software, we investigate how to choose a Search routine for the final stage of searching in a Learned Index. Our results provide indications that better choices than the lower_bound routine can be made. We also highlight how such a choice may be dependent on the computer architecture that is to be used. Overall, our findings provide new and much-needed guidelines for the selection of the Search routine within the Learned Indexing framework.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Modified Search on Sorted Data Benchmark for Branchy vs Branchfree study

10C++, HTMLDec 30, 20213 years agoGPL-3.0
binary-searcheytzinger-binary-searchk-ary-searchlearned-indexlearned-index-structures

Similar Papers

Cite this paper

@article{amato2022standard,
  title  = {Standard Vs Uniform Binary Search and Their Variants in Learned Static Indexing: The Case of the Searching on Sorted Data Benchmarking Software Platform},
  author = {Domenico Amato and Giosuè Lo Bosco and Raffaele Giancarlo},
  year   = {2022},
  eprint = {2201.01554},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.01554}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.01554.svg)](https://codeofpaper.com/paper/2201.01554)

Discussion