English

Graphs can be succinctly indexed for pattern matching in $ O(|E|^2 + |V|^{5 / 2}) $ time

Data Structures and Algorithms 2021-11-09 v1 Formal Languages and Automata Theory

Abstract

For the first time we provide a succinct pattern matching index for arbitrary graphs that can be built in polynomial time, which requires less space and answers queries more efficiently than the one in [SODA 2021]. We show that, given an edge-labeled graph G=(V,E) G = (V, E) , there exists a data structures of E/G(logΣ+logq+2)(1+o(1))+V/G(1+o(1))|E /_{\le_G}|(\lceil \log|\Sigma|\rceil + \lceil\log q\rceil + 2)\cdot (1+o(1)) + |V /_{\le_G}|\cdot (1+o(1)) bits which can be built in O(E2+V/G5/2) O(|E|^2 + |V /_{\le_G}|^{5 / 2}) time and supports pattern matching on G G in O(Pq2log(qΣ))O(|P| \cdot q^2 \cdot \log(q\cdot |\Sigma|)) time, where G/G=(V/G,E/G) G /_{\le_G} = (V /_{\le_G}, E /_{\le_G}) is a quotient graph obtained by collapsing some nodes in G G (so V/GV |V /_{\le_G}| \le |V| and E/GE |E /_{\le_G}| \le |E| ) and q q is the width of the maximum co-lex relation on G G . Our results have relevant applications in automata theory. First, we can build a succinct data structure to decide whether a string is accepted by a given automaton. Second, starting from an automaton A \mathcal{A} , one can define a relation A \preceq_\mathcal{A} and a quotient automaton that capture the nondeterminism of A \mathcal{A} , improving the results in [SODA 2021].

Keywords

Cite

@article{arxiv.2111.04595,
  title  = {Graphs can be succinctly indexed for pattern matching in $ O(|E|^2 + |V|^{5 / 2}) $ time},
  author = {Nicola Cotumaccio},
  journal= {arXiv preprint arXiv:2111.04595},
  year   = {2021}
}
R2 v1 2026-06-24T07:30:50.094Z