Abstract
We consider succinct data structures for representing a set of n horizontal line segments in the plane given in rank space to support segment access, segment selection, and segment rank queries. A segment access query finds the segment (x1, x2, y) given its y-coordinate (y-coordinates of the segments are distinct), a segment selection query finds the jth smallest segment (the segment with the jth 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 a 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.
Our main result is a 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.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 36th Annual Symposium on Combinatorial Pattern Matching (CPM 2025) |
| Number of pages | 14 |
| Volume | 331 |
| Publisher | Schloss Dagstuhl - Leibniz-Zentrum für Informatik |
| Publication date | 2025 |
| Article number | 27 |
| DOIs | |
| Publication status | Published - 2025 |
| Event | 36th Annual Symposium on Combinatorial Pattern Matching - Milan, Italy Duration: 17 Jun 2025 → 19 Jun 2025 |
Conference
| Conference | 36th Annual Symposium on Combinatorial Pattern Matching |
|---|---|
| Country/Territory | Italy |
| City | Milan |
| Period | 17/06/2025 → 19/06/2025 |
| Series | Leibniz International Proceedings in Informatics, LIPIcs |
|---|---|
| ISSN | 1868-8969 |
Keywords
- Data structures
- Selection
- Succinct
Fingerprint
Dive into the research topics of 'Succinct Data Structures for Segments'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver