On the Cost of Unsuccessful Searches in Search Trees with Two-way Comparisons

arXiv:2103.01052 First posted 2021-03-01 v2 v2 has updated bibliography
Cite this paper ×
BibTeX
@misc{chrobak2021on,
  title = {On the Cost of Unsuccessful Searches in Search Trees with Two-way Comparisons},
  author = {Marek Chrobak and Mordecai Golin and J. Ian Munro and Neal E. Young},
  year = {2021},
  eprint = {2103.01052},
  archivePrefix = {arXiv},
  primaryClass = {cs.DS},
  url = {https://arxiv.org/abs/2103.01052}
}
APA 7
Chrobak, M., Golin, M., Munro, J. I., & Young, N. E. (2021). On the Cost of Unsuccessful Searches in Search Trees with Two-way Comparisons [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2103.01052
GB/T 7714
CHROBAK M, GOLIN M, MUNRO JI, et al. On the Cost of Unsuccessful Searches in Search Trees with Two-way Comparisons[EB/OL]. (2021-03-01)[2026-11-30]. https://arxiv.org/abs/2103.01052.

Abstract

Search trees are commonly used to implement access operations to a set of stored keys. If this set is static and the probabilities of membership queries are known in advance, then one can precompute an optimal search tree, namely one that minimizes the expected access cost. For a non-key query, a search tree can determine its approximate location by returning the inter-key interval containing the query. This is in contrast to other dictionary data structures, like hash tables, that only report a failed search. We address the question "what is the additional cost of determining approximate locations for non-key queries"? We prove that for two-way comparison trees this additional cost is at most 1. Our proof is based on a novel probabilistic argument that involves converting a search tree that does not identify non-key queries into a random tree that does.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!