State Complexity of Single-Word Pattern Matching in Regular Languages - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2019

State Complexity of Single-Word Pattern Matching in Regular Languages

Sylvie Davies
  • Function : Author
  • PersonId : 1024581
Abhishek Madan
  • Function : Author
  • PersonId : 1059506


The state complexity $$\kappa (L)$$ of a regular language L is the number of states in the minimal deterministic finite automaton recognizing L. In a general pattern-matching problem one has a set T of texts and a set P of patterns; both T and P are sets of words over a finite alphabet $$\varSigma $$. The matching problem is to determine whether any of the patterns appear in any of the texts, as prefixes, or suffixes, or factors, or subsequences. In previous work we examined the state complexity of these problems when both T and P are regular languages, that is, we computed the state complexity of the languages , , , and , where is the shuffle operation. It turns out that the state complexities of these languages match the naïve upper bounds derived by composing the state complexities of the basic operations used in each expression. However, when P is a single word w, and $$\varSigma $$ has two or more letters, the bounds are drastically reduced to the following: ; ; ; and . The bounds for factor and subsequence matching are the same as the naïve bounds, but this is not the case for prefix and suffix matching. For unary languages, we have a tight upper bound of $$m+n-2$$ in all four cases.
Fichier principal
Vignette du fichier
480958_1_En_6_Chapter.pdf (248 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-02387297 , version 1 (29-11-2019)





Janusz A. Brzozowski, Sylvie Davies, Abhishek Madan. State Complexity of Single-Word Pattern Matching in Regular Languages. 21th International Conference on Descriptional Complexity of Formal Systems (DCFS), Jul 2019, Košice, Slovakia. pp.86-97, ⟨10.1007/978-3-030-23247-4_6⟩. ⟨hal-02387297⟩
45 View
14 Download



Gmail Facebook Twitter LinkedIn More