Abstract

Let S be a string of length n with characters from an alphabet of size $$\sigma $$. The subsequence automaton of S often called the directed acyclic subsequence graph is the minimal deterministic finite automaton accepting all subsequences of S. A straightforward construction shows that the size number of states and transitions of the subsequence automaton is $$On\sigma $$ and that this bound is asymptotically optimal. In this paper, we consider subsequence automata with default transitions, that is, special transitions to be taken only if none of the regular transitions match the current character, and which do not consume the current character. We show that with default transitions, much smaller subsequence automata are possible, and provide a full trade-off between the size of the automaton and the delay, i.e., the maximum number of consecutive default transitions followed before consuming a character. Specifically, given any integer parameter k, $$1 < k \le \sigma $$, we present a subsequence automaton with default transitions of size $$Onk\log _{k}\sigma $$ and delay $$O\log _k \sigma $$. Hence, with $$k = 2$$ we obtain an automaton of size $$On \log \sigma $$ and delay $$O\log \sigma $$. On the other extreme, with $$k = \sigma $$, we obtain an automaton of size $$On \sigma $$ and delay O1, thus matching the bound for the standard subsequence automaton construction. The key component of our result is a novel hierarchical automata construction of independent interest.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call