arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.12110cs.DS
收藏

学习增广二叉搜索树

Learning Augmented Binary Search Trees

Honghao Lin, Tian Luo, David P. Woodruff

摘要:

Treap是一种经典的随机二叉查找树数据结构,易于实现,并支持O(\log n)的预期时间访问。但是,传统treap并不利用输入分布或输入中的模式。鉴于预测算法的最新进展,我们建议将treap与机器建议配对,以形成一个学习增强的treap。我们是第一个提出一个学习增强的数据结构,支持二叉搜索树操作,如范围查询和后继功能。假设我们可以从频率估计预言机获得建议,我们将学习到的优先级分配给节点,以更好地改进treap的结构。我们从理论上分析了学习增强树在各种输入分布下的性能,并表明在这些情况下,我们的学习增强树比经典树和其他经典的基于树的数据结构有更强的保证。此外,我们通过实验评估了我们在合成数据集上学习的Treap,并证明了与其他搜索树数据结构相比的性能优势。我们还提出了在现实世界的数据集与已知的频率估计预言家的实验,并显示改进以及。

英文摘要:

A treap is a classic randomized binary search tree data structure that is easy to implement and supports O(\log n) expected time access. However, classic treaps do not take advantage of the input distribution or patterns in the input. Given recent advances in algorithms with predictions, we propose pairing treaps with machine advice to form a learning-augmented treap. We are the first to propose a learning-augmented data structure that supports binary search tree operations such as range-query and successor functionalities. With the assumption that we have access to advice from a frequency estimation oracle, we assign learned priorities to the nodes to better improve the treap's structure. We theoretically analyze the learning-augmented treap's performance under various input distributions and show that under those circumstances, our learning-augmented treap has stronger guarantees than classic treaps and other classic tree-based data structures. Further, we experimentally evaluate our learned treap on synthetic datasets and demonstrate a performance advantage over other search tree data structures. We also present experiments on real world datasets with known frequency estimation oracles and show improvements as well.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑