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

多指二叉查找树

Multi-finger binary search trees

Parinya Chalermsook, Mayank Goswami, László Kozma, Kurt Mehlhorn, Thatchaphol Saranurak

摘要:

我们研究多指二叉搜索树(BST),一个深远的扩展经典BST模型,连接到研究良好的$k$ -服务器问题。当查询序列具有引用局部性时,手指搜索是用于加速BST操作的流行技术。具有多个手指的BST可以利用输入中的更一般的噪声。在本文中,我们认为服务的查询序列中的最佳(离线)BST与$k$手指,一个强大的基准,其他算法可以衡量的成本。我们发现,$k$ -手指最佳可以匹配一个标准的动态BST(有一个单一的根手指)与$O(\log{k})$因素开销。这个结果对于所有的$k$都是紧的,改进了早期工作中隐含的$O(k)$因子。此外,我们描述了新的在线BST匹配这绑定到一个$(\log{k})^{O(1)}$因素。以前只有“一个手指”的特殊情况被认为适用于在线BST(Iacono,Langerman,2016; Cole等人,2000年)。展开树,假设它们的约束最优性(Sleator和Tarjan,1983),必须匹配我们对所有$k$的边界。我们的在线算法是随机的,并结合技术开发的$k$服务器的问题与一个乘法权重计划学习树指标。据我们所知,这是第一次在BST中使用为$k$ -服务器问题开发的工具。作为我们的$k$手指的结果的应用程序,我们表明,BST可以有效地服务于查询,接近一些最近访问的项目。这是统一属性(Iacono,2001)的一种(受限)形式,以前不知道它适用于任何BST算法,在线或离线。

英文摘要:

We study multi-finger binary search trees (BSTs), a far-reaching extension of the classical BST model, with connections to the well-studied $k$-server problem. Finger search is a popular technique for speeding up BST operations when a query sequence has locality of reference. BSTs with multiple fingers can exploit more general regularities in the input. In this paper we consider the cost of serving a sequence of queries in an optimal (offline) BST with $k$ fingers, a powerful benchmark against which other algorithms can be measured. We show that the $k$-finger optimum can be matched by a standard dynamic BST (having a single root-finger) with an $O(\log{k})$ factor overhead. This result is tight for all $k$, improving the $O(k)$ factor implicit in earlier work. Furthermore, we describe new online BSTs that match this bound up to a $(\log{k})^{O(1)}$ factor. Previously only the "one-finger" special case was known to hold for an online BST (Iacono, Langerman, 2016; Cole et al., 2000). Splay trees, assuming their conjectured optimality (Sleator and Tarjan, 1983), would have to match our bounds for all $k$. Our online algorithms are randomized and combine techniques developed for the $k$-server problem with a multiplicative-weights scheme for learning tree metrics. To our knowledge, this is the first time when tools developed for the $k$-server problem are used in BSTs. As an application of our $k$-finger results, we show that BSTs can efficiently serve queries that are close to some recently accessed item. This is a (restricted) form of the unified property (Iacono, 2001) that was previously not known to hold for any BST algorithm, online or offline.

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

↑