arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.09251cs.DScs.LG
收藏

论学习增强搜索树的能力

On the Power of Learning-Augmented Search Trees

University of Waterloo(滑铁卢大学);Carnegie Mellon University(卡内基梅隆大学)

Jingbang Chen, Xinyuan Cao, Alicia Stepin, Li Chen

AI总结:

提出基于随机复合优先级 Treap 的学习增强 BST,可对任意访问分布实现静态最优,并支持 B-Tree 推广、动态操作、在线重组及预测误差鲁棒性。

摘要:

我们通过具有精心设计优先级的 Treap 研究学习增强二叉搜索树(BST)。其结果是一种简单的搜索树,其中每个项目 $x$ 的深度由其预测权重 $w_x$ 决定。具体而言,每个项目 $x$ 被赋予复合优先级 $-\lfloor\log\log(1/w_x)\rfloor + U(0, 1)$,其中 $U(0, 1)$ 是均匀随机变量。通过选择 $w_x$ 作为 $x$ 的相对频率,所得搜索树实现静态最优性。该方法推广了近期的学习增强 BST[Lin-Luo-Woodruff ICML '22],后者仅适用于 Zipfian 分布,而我们将其扩展到任意输入分布。此外,我们证明使用 B-Treap 方法[Golovin ICALP '09],可将本方法推广到 B-Tree 数据结构。我们的搜索树还能通过在线自重组利用访问序列中的局部性,从而实现工作集性质。此外,它们对预测误差具有鲁棒性,并支持动态操作,如插入、删除和预测更新。我们以一项实证研究补充分析,证明本方法优于先前工作和经典数据结构。

英文摘要:

We study learning-augmented binary search trees (BSTs) via Treaps with carefully designed priorities. The result is a simple search tree in which the depth of each item $x$ is determined by its predicted weight $w_x$. Specifically, each item $x$ is assigned a composite priority of $-\lfloor\log\log(1/w_x)\rfloor + U(0, 1)$ where $U(0, 1)$ is the uniform random variable. By choosing $w_x$ as the relative frequency of $x$, the resulting search trees achieve static optimality. This approach generalizes the recent learning-augmented BSTs [Lin-Luo-Woodruff ICML '22], which only work for Zipfian distributions, by extending them to arbitrary input distributions. Furthermore, we demonstrate that our method can be generalized to a B-Tree data structure using the B-Treap approach [Golovin ICALP '09]. Our search trees are also capable of leveraging localities in the access sequence through online self-reorganization, thereby achieving the working-set property. Additionally, they are robust to prediction errors and support dynamic operations, such as insertions, deletions, and prediction updates. We complement our analysis with an empirical study, demonstrating that our method outperforms prior work and classic data structures.

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

↑