arXiv · 2611.28734
String Indexing for Maximal Gap-Bounded Occurrence Clusters
Abstract
Repeated occurrences of a pattern can form groups that reveal where repetition is concentrated in a text. We study how to find such groups efficiently when both the pattern $P$ and the distance threshold $G$ between occurrences are specified as query parameters. A maximal $G$-cluster of $P$ is a maximal block of at least two occurrences of $P$ whose consecutive starting positions differ by at most $G$. In this paper, we present indexes for reporting all cluster intervals and counting the clusters. For a text of length $n$ and a pattern of length $m$, we propose an $O(n\log n)$-space index that reports all maximal cluster intervals in $O(m+\log\log n+\mathit{output})$ time, where $\mathit{output}$ is the number of reported intervals, and that counts the clusters in $O(m+\log\log n)$ time. Restricting occurrences to those fully contained in a query substring preserves the reporting time using $O(n\log^2 n)$ space. Our indexes combine suffix-tree decompositions with geometric reporting queries on consecutive gaps.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Waseem Akram, Takuya Mieno. 2026-11-21. String Indexing for Maximal Gap-Bounded Occurrence Clusters. https://arxiv.science/abs/2611.28734
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.