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

更新时间为常数的红黑树

Red-Black Trees with Constant Update Time

Amr Elmasry, Mostafa Kahla, Fady Ahdy, Mahmoud Hashem

摘要:

我们展示了如何对红黑树进行一些修改,以允许$O(1)$最坏情况下的更新时间(一旦插入或删除的元素的位置是已知的)。所得到的结构是基于放松红黑树的一些属性,同时保证高度保持相对于节点数的对数。与其他具有恒定更新时间的搜索树相比,我们的树是第一个提供了一个定制的删除过程,而不使用全局重建技术。此外,我们的结构是非常简单的实现,并允许一个更简单的证明的正确性比那些替代树。

英文摘要:

We show how a few modifications to the red-black trees allow for $O(1)$ worst-case update time (once the position of the inserted or deleted element is known). The resulting structure is based on relaxing some of the properties of the red-black trees while guaranteeing that the height remains logarithmic with respect to the number of nodes. Compared to the other search trees with constant update time, our tree is the first to provide a tailored deletion procedure without using the global rebuilding technique. In addition, our structure is very simple to implement and allows for a simpler proof of correctness than those alternative trees.

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

↑