arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.04965cs.DS
收藏

用于线段的紧凑数据结构

Succinct Data Structures for Segments

Philip Bille, Inge Li Gørtz, Simon R. Tarnow

AI总结:

本文针对秩空间中水平线段的访问、选择与秩查询,提出线段小波树及最优紧凑数据结构,空间达 2n lg n 加低阶项,查询时间最优。

摘要:

我们研究用于表示秩空间中给定的平面内 n 条水平线段集合的紧凑数据结构,以支持线段访问、线段选择和线段秩查询。线段访问查询在给定 y 坐标时查找线段 (x_1, x_2, y)(各线段的 y 坐标互不相同);线段选择查询在给定 x 坐标时,查找与穿过该 x 坐标的竖直线相交的线段中第 j 小的线段(即具有第 j 小 y 坐标的线段);线段秩查询则在给定 x 和 y 时,查找穿过 x 坐标 i 的竖直线且 y 坐标不超过 y 的线段数量。该问题是支持随机访问的持久化字符串压缩数据结构中的核心组成部分。我们的主要结果是一种占用 2n lg n + O(n lg n/lg lg n) 位空间、且所有操作查询时间均为 O(lg n/lg lg n) 的数据结构。我们证明该空间界在低阶项意义下是最优的,还将证明线段秩的查询时间是最优的;依据此前的一个界,线段选择的查询时间同样是最优的。为获得这些结果,我们提出一种具有独立研究价值的新型线段 wavelet tree(线段小波树)数据结构。该结构受序列的经典 wavelet tree(小波树)启发并对其进行扩展,由此得到一种查询时间为 O(log n) 的简单紧凑解决方案。随后我们扩展该方案以获得最优查询时间。我们的空间下界来自一个简单的计数论证,而线段秩的下界则通过由二维计数问题归约得到。

英文摘要:

We consider succinct data structures for representing a set of $n$ horizontal line segments in the plane given in rank space to support \emph{segment access}, \emph{segment selection}, and \emph{segment rank} queries. A segment access query finds the segment $(x_1, x_2, y)$ given its $y$-coordinate ($y$-coordinates of the segments are distinct), a segment selection query finds the $j$th smallest segment (the segment with the $j$th smallest $y$-coordinate) among the segments crossing the vertical line for a given $x$-coordinate, and a segment rank query finds the number of segments crossing the vertical line through $x$-coordinate $i$ with $y$-coordinate at most $y$, for a given $x$ and $y$. This problem is a central component in compressed data structures for persistent strings supporting random access. Our main result is data structure using $2n\lg{n} + O(n\lg{n}/\lg{\lg{n}})$ bits of space and $O(\lg{n}/\lg{\lg{n}})$ query time for all operations. We show that this space bound is optimal up to lower-order terms. We will also show that the query time for segment rank is optimal. The query time for segment selection is also optimal by a previous bound. To obtain our results, we present a novel segment wavelet tree data structure of independent interest. This structure is inspired by and extends the classic wavelet tree for sequences. This leads to a simple, succinct solution with $O(\log n)$ query times. We then extend this solution to obtain optimal query time. Our space lower bound follows from a simple counting argument, and our lower bound for segment rank is obtained by a reduction from 2-dimensional counting.

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

↑