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

利用平衡括号的树覆盖简单表示及平均情况最优 RMQ 的高效实现

A Simple Representation of Tree Covering Utilizing Balanced Parentheses and Efficient Implementation of Average-Case Optimal RMQs

Kou Hamada, Sankardeep Chakraborty, Seungbum Jo, Takuto Koriyama, Kunihiko Sadakane, Srinivasa Rao Satti

AI总结:

本文提出基于平衡括号的树覆盖简单表示,支持微树压缩与高效导航,并据此实现平均情况最优 RMQ,占用少于 2n 位且查询时间实用。

摘要:

树覆盖是一种将树分解为具有理想性质的较小树的技术,并已被应用于各种紧凑数据结构中。然而,在实际实现树覆盖的道路上存在重大障碍:需要使用大量指针来维护树覆盖层次结构,而且用于树导航查询的许多索引在理论上占用可忽略的空间,但在实际中却消耗巨大空间。为解决这些问题,我们提出一种使用平衡括号表示的树覆盖简单表示。该提议的关键在于观察到每个微树在 BP 表示上至多分裂为两个区间。利用该表示,我们提出了若干表示一棵树及其树覆盖的数据结构,从而允许使用任意编码进行微树压缩并支持高效的树导航查询。我们还将我们的数据结构应用于 Munro 等人 [ESA 2021] 提出的平均情况最优 RMQ,并实现了该 RMQ 数据结构。我们的 RMQ 数据结构占用少于 2n 位,并在性能评估的若干设置下以实际可行的时间处理查询,缩小了理论空间复杂度与实际空间消耗之间的差距。我们还在使用与 RMQ 数据结构相同空间量的同时实现了树导航操作。我们相信,该表示可被广泛用于设计基于树覆盖的、实际内存高效的数据结构。

英文摘要:

Tree covering is a technique for decomposing a tree into smaller-sized trees with desirable properties, and has been employed in various succinct data structures. However, significant hurdles stand in the way of a practical implementation of tree covering: a lot of pointers are used to maintain the tree-covering hierarchy and many indices for tree navigational queries consume theoretically negligible yet practically vast space. To tackle these problems, we propose a simple representation of tree covering using a balanced parenthesis representation. The key to the proposal is the observation that every micro tree splits into at most two intervals on the BP representation. Utilizing the representation, we propose several data structures that represent a tree and its tree cover, which consequently allow micro tree compression with arbitrary coding and efficient tree navigational queries. We also applied our data structure to average-case optimal RMQ by Munro et al.~[ESA 2021] and implemented the RMQ data structure. Our RMQ data structures spend less than $2n$ bits and process queries in a practical time on several settings of the performance evaluation, reducing the gap between theoretical space complexity and actual space consumption. We also implement tree navigational operations while using the same amount of space as the RMQ data structures. We believe the representation can be widely utilized for designing practically memory-efficient data structures based on tree covering.

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

↑