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

03/01/2021
by   Marek Chrobak, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/27/2018

Dynamic Trees with Almost-Optimal Access Cost

An optimal binary search tree for an access sequence on elements is a st...
research
09/04/2020

Access-Adaptive Priority Search Tree

In this paper we show that the priority search tree of McCreight, which ...
research
03/05/2020

Order-Preserving Key Compression for In-Memory Search Trees

We present the High-speed Order-Preserving Encoder (HOPE) for in-memory ...
research
06/03/2020

Dynamic Merkle B-tree with Efficient Proofs

We propose and define a recursive Merkle structure with q-mercurial comm...
research
06/07/2023

Prefix Siphoning: Exploiting LSM-Tree Range Filters For Information Disclosure (Full Version)

Key-value stores typically leave access control to the systems for which...
research
06/07/2021

Deterministic Iteratively Built KD-Tree with KNN Search for Exact Applications

K-Nearest Neighbors (KNN) search is a fundamental algorithm in artificia...
research
08/11/2022

Poster: Revocation in VANETs Based on k-ary Huffman Trees

One of the biggest problems of vehicular ad-hoc networks is revocation. ...

Please sign up or login with your details

Forgot password? Click here to reset