Compressed Multiple Pattern Matching

Abstract

Given d strings over the alphabet \0,1,…,σ-1\, the classical Aho--Corasick data structure allows us to find all occ occurrences of the strings in any text T in O(|T| + occ) time using O(m m) bits of space, where m is the number of edges in the trie containing the strings. Fix any constant ∈ (0, 2). We describe a compressed solution for the problem that, provided σ mδ for a constant δ < 1, works in O(|T| 1 1 + occ) time, which is O(|T| + occ) since is constant, and occupies mHk + 1.443 m + m + O(dmd) bits of space, for all 0 k \0,ασ m - 2\ simultaneously, where α ∈ (0,1) is an arbitrary constant and Hk is the kth-order empirical entropy of the trie. Hence, we reduce the 3.443m term in the space bounds of previously best succinct solutions to (1.443 + )m, thus solving an open problem posed by Belazzougui. Further, we notice that L = σ (m+1)m - O((σ m)) is a worst-case space lower bound for any solution of the problem and, for d = o(m) and constant , our approach allows to achieve L + m bits of space, which gives an evidence that, for d = o(m), the space of our data structure is theoretically optimal up to the m additive term and it is hardly possible to eliminate the term 1.443m. In addition, we refine the space analysis of previous works by proposing a more appropriate definition for Hk. We also simplify the construction for practice adapting the fixed block compression boosting technique, then implement our data structure, and conduct a number of experiments showing that it is comparable to the state of the art in terms of time and is superior in space.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…