当前位置: X-MOL 学术arXiv.cs.DS › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
On the Cost of Unsuccessful Searches in Search Trees with Two-way Comparisons
arXiv - CS - Data Structures and Algorithms Pub Date : 2021-03-01 , DOI: arxiv-2103.01052
Marek Chrobak, Mordecai Golin, J. Ian Munro, Neal E. Young

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.

中文翻译:

基于双向比较的搜索树中搜索失败的代价

搜索树通常用于对一组存储的密钥实施访问操作。如果该集合是静态的,并且成员资格查询的概率是事先已知的,则可以预先计算最佳搜索树,即使期望访问成本最小化的搜索树。对于非关键查询,搜索树可以通过返回包含查询的关键间隔来确定其大概位置。这与仅报告搜索失败的其他字典数据结构(例如哈希表)形成对比。我们解决的问题是``确定非关键查询的大概位置的额外费用是多少?'' 我们证明,对于双向比较树,此额外成本最多为1。
更新日期:2021-03-02
down
wechat
bug