Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2007.04128v1

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Data Structures and Algorithms

arXiv:2007.04128v1 (cs)
[Submitted on 8 Jul 2020 (this version), latest version 14 Feb 2024 (v3)]

Title:String Indexing for Top-$k$ Close Consecutive Occurrences

Authors:Philip Bille, Inge Li Gørtz, Max Rishøj Pedersen, Eva Rotenberg, Teresa Anna Steiner
View a PDF of the paper titled String Indexing for Top-$k$ Close Consecutive Occurrences, by Philip Bille and Inge Li G{\o}rtz and Max Rish{\o}j Pedersen and Eva Rotenberg and Teresa Anna Steiner
View PDF
Abstract:The classic string indexing problem is to preprocess a string $S$ into a compact data structure that supports efficient subsequent pattern matching queries, that is, given a pattern string $P$, report all occurrences of $P$ within $S$. In this paper, we study a basic and natural extension of string indexing called the string indexing for top-$k$ close consecutive occurrences problem (SITCCO). Here, a consecutive occurrence is a pair $(i,j)$, $i < j$, such that $P$ occurs at positions $i$ and $j$ in $S$ and there is no occurrence of $P$ between $i$ and $j$, and their distance is defined as $j-i$. Given a pattern $P$ and a parameter $k$, the goal is to report the top-$k$ consecutive occurrences of $P$ in $S$ of minimal distance. The challenge is to compactly represent $S$ while supporting queries in time close to length of $P$ and $k$. We give two new time-space trade-offs for the problem. Our first result achieves near-linear space and optimal query time, and our second result achieves linear space and near optimal query time. Along the way, we develop several techniques of independent interest, including a new translation of the problem into a line segment intersection problem and a new recursive clustering technique for trees.
Subjects: Data Structures and Algorithms (cs.DS)
Cite as: arXiv:2007.04128 [cs.DS]
  (or arXiv:2007.04128v1 [cs.DS] for this version)
  https://doi.org/10.48550/arXiv.2007.04128
arXiv-issued DOI via DataCite

Submission history

From: Philip Bille [view email]
[v1] Wed, 8 Jul 2020 13:55:10 UTC (179 KB)
[v2] Tue, 29 Sep 2020 09:18:53 UTC (236 KB)
[v3] Wed, 14 Feb 2024 11:21:49 UTC (647 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled String Indexing for Top-$k$ Close Consecutive Occurrences, by Philip Bille and Inge Li G{\o}rtz and Max Rish{\o}j Pedersen and Eva Rotenberg and Teresa Anna Steiner
  • View PDF
  • Other Formats
view license
Current browse context:
cs.DS
< prev   |   next >
new | recent | 2020-07
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Philip Bille
Inge Li Gørtz
Eva Rotenberg
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack