English

Space-Efficient String Indexing for Wildcard Pattern Matching

Data Structures and Algorithms 2014-01-06 v1

Abstract

In this paper we describe compressed indexes that support pattern matching queries for strings with wildcards. For a constant size alphabet our data structure uses O(nlogεn)O(n\log^{\varepsilon}n) bits for any ε>0\varepsilon>0 and reports all occ\mathrm{occ} occurrences of a wildcard string in O(m+σgμ(n)+occ)O(m+\sigma^g \cdot\mu(n) + \mathrm{occ}) time, where μ(n)=o(logloglogn)\mu(n)=o(\log\log\log n), σ\sigma is the alphabet size, mm is the number of alphabet symbols and gg is the number of wildcard symbols in the query string. We also present an O(n)O(n)-bit index with O((m+σg+occ)logεn)O((m+\sigma^g+\mathrm{occ})\log^{\varepsilon}n) query time and an O(n(loglogn)2)O(n(\log\log n)^2)-bit index with O((m+σg+occ)loglogn)O((m+\sigma^g+\mathrm{occ})\log\log n) query time. These are the first non-trivial data structures for this problem that need o(nlogn)o(n\log n) bits of space.

Keywords

Cite

@article{arxiv.1401.0625,
  title  = {Space-Efficient String Indexing for Wildcard Pattern Matching},
  author = {Moshe Lewenstein and Yakov Nekrich and Jeffrey Scott Vitter},
  journal= {arXiv preprint arXiv:1401.0625},
  year   = {2014}
}

Comments

15 pages, extended version of the STACS paper

R2 v1 2026-06-22T02:38:39.511Z