About

Log in?

DTU users get better search results including licensed content and discounts on order fees.

Anyone can log in and get personalized features such as favorites, tags and feeds.

Log in as DTU user Log in as non-DTU user No thanks

DTU Findit

Journal article

Gapped indexing for consecutive occurrences

From

Department of Applied Mathematics and Computer Science, Technical University of Denmark1

Algorithms and Logic, Department of Applied Mathematics and Computer Science, Technical University of Denmark2

The classic string indexing problem is to preprocess a string S into a compact data structure that supports efficient pattern matching queries. Typical queries include existential queries (decide if the pattern occurs in S), reporting queries (return all positions where the pattern occurs), and counting queries (return the number of occurrences of the pattern).

In this paper we consider a variant of string indexing, where the goal is to compactly represent the string such that given two patterns P1 and P2 and a gap range [α, β] we can quickly find the consecutive occurrences of P1 and P2 with distance in [α, β], i.e., pairs of subsequent occurrences with distance within the range.

We present data structures that use eO(n) space and query time eO(|P1| + |P2| + n2/3) for existence and counting and Õ(|P1| + |P2| + n2/3occ1/3) for reporting. We complement this with a conditional lower bound based on the set intersection problem showing that any solution using eO(n) space must use Ω(|P1| + |P2| + √n) query time.

To obtain our results we develop new techniques and ideas of independent interest including a new suffix tree decomposition and hardness of a variant of the set intersection problem.

Language: English
Year: 2021
ISSN: 18688969
Types: Journal article
DOI: 10.4230/LIPIcs.CPM.2021.10
ORCIDs: Bille, Philip , Gørtz, Inge Li and Steiner, Teresa Anna

DTU users get better search results including licensed content and discounts on order fees.

Log in as DTU user

Access

Analysis