English

Run-Length Encoded Nondeterministic KMP and Suffix Automata

Formal Languages and Automata Theory 2014-12-18 v2 Data Structures and Algorithms

Abstract

We present a novel bit-parallel representation, based on the run-length encoding, of the nondeterministic KMP and suffix automata for a string PP with at least two distinct symbols. Our method is targeted to the case of long strings over small alphabets and complements the method of Cantone et al. (2012), which is effective for long strings over large alphabets. Our encoding requires O((σ+m)ρ/w)O((\sigma + m)\lceil \rho / w\rceil) space and allows one to simulate the automata on a string in time O(ρ/w)O(\lceil \rho / w\rceil) per transition, where σ\sigma is the alphabet size, mm is the length of PP, ρ\rho is the length of the run-length encoding of PP and ww is the machine word size in bits. The input string can be given in either unencoded or run-length encoded form.

Keywords

Cite

@article{arxiv.1412.3688,
  title  = {Run-Length Encoded Nondeterministic KMP and Suffix Automata},
  author = {Emanuele Giaquinta},
  journal= {arXiv preprint arXiv:1412.3688},
  year   = {2014}
}

Comments

Various fixes

R2 v1 2026-06-22T07:27:58.488Z