arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1506.08319cs.DSmath.CO
收藏

贪婪是几乎最优的Deque

Greedy Is an Almost Optimal Deque

Parinya Chalermsook, Mayank Goswami, Laszlo Kozma, Kurt Mehlhorn, Thatchaphol Saranurak

摘要:

在本文中,我们扩展了几何二叉搜索树(BST)模型的Demaine,Harmon,Iacono,Kane和Patrascu(DHIKP),以适应插入和删除。在这个扩展模型中,我们研究了DHIKP引入的在线贪婪BST算法。贪婪BST被认为是等价于Lucas在1988年和Munro在2000年独立提出的最大贪婪(但本质上是离线)算法,被证明是动态最优的。利用禁止子矩阵理论,证明了贪婪BST在双曲序列上的性能的一个拟线性上界。它已被证实(Tarjan,1985),splay树(Sleator和Tarjan,1983)可以在线性时间服务于这样的序列。目前,既不是splay树,也不是其他通用的BST算法是已知的,以满足这一要求。作为一个特殊的情况下,我们证明了贪婪BST可以在线性时间内服务于输出受限的双端队列序列。对于splay树也有类似的结果(Tarjan,1985; Elmasry,2004)。作为插入-删除模型的进一步应用,我们给出了一个简单的证明:给定一个[n]的排列集合U,任何BST算法在U的“大多数”排列上的访问代价是Omega(log |U| + n).特别地,这意味着[n]的随机置换的访问成本是具有高概率的Omega(n log n)。除了前面提到的splay树,Greedy BST最近已经成为动态最优性的一个合理候选者。与splay树相比,Greedy BST的分析工作要少得多。我们的工作的目的是作为一个步骤,充分了解贪婪BST,我们的评论,禁止子矩阵参数似乎特别适合于执行这个程序。

英文摘要:

In this paper we extend the geometric binary search tree (BST) model of Demaine, Harmon, Iacono, Kane, and Patrascu (DHIKP) to accommodate for insertions and deletions. Within this extended model, we study the online Greedy BST algorithm introduced by DHIKP. Greedy BST is known to be equivalent to a maximally greedy (but inherently offline) algorithm introduced independently by Lucas in 1988 and Munro in 2000, conjectured to be dynamically optimal. With the application of forbidden-submatrix theory, we prove a quasilinear upper bound on the performance of Greedy BST on deque sequences. It has been conjectured (Tarjan, 1985) that splay trees (Sleator and Tarjan, 1983) can serve such sequences in linear time. Currently neither splay trees, nor other general-purpose BST algorithms are known to fulfill this requirement. As a special case, we show that Greedy BST can serve output-restricted deque sequences in linear time. A similar result is known for splay trees (Tarjan, 1985; Elmasry, 2004). As a further application of the insert-delete model, we give a simple proof that, given a set U of permutations of [n], the access cost of any BST algorithm is Omega(log |U| + n) on "most" of the permutations from U. In particular, this implies that the access cost for a random permutation of [n] is Omega(n log n) with high probability. Besides the splay tree noted before, Greedy BST has recently emerged as a plausible candidate for dynamic optimality. Compared to splay trees, much less effort has gone into analyzing Greedy BST. Our work is intended as a step towards a full understanding of Greedy BST, and we remark that forbidden-submatrix arguments seem particularly well suited for carrying out this program.

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

↑