English

Weighted Automata and Recurrence Equations for Regular Languages

Formal Languages and Automata Theory 2010-07-27 v2 Discrete Mathematics Combinatorics

Abstract

Let P(Σ)\mathcal{P}(\Sigma^*) be the semiring of languages, and consider its subset P(Σ)\mathcal{P}(\Sigma). In this paper we define the language recognized by a weighted automaton over P(Σ)\mathcal{P}(\Sigma) and a one-letter alphabet. Similarly, we introduce the notion of language recognition by linear recurrence equations with coefficients in P(Σ)\mathcal{P}(\Sigma). As we will see, these two definitions coincide. We prove that the languages recognized by linear recurrence equations with coefficients in P(Σ)\mathcal{P}(\Sigma) are precisely the regular languages, thus providing an alternative way to present these languages. A remarkable consequence of this kind of recognition is that it induces a partition of the language into its cross-sections, where the nnth cross-section contains all the words of length nn in the language. Finally, we show how to use linear recurrence equations to calculate the density function of a regular language, which assigns to every nn the number of words of length nn in the language. We also show how to count the number of successful paths of a weighted automaton.

Keywords

Cite

@article{arxiv.1007.1045,
  title  = {Weighted Automata and Recurrence Equations for Regular Languages},
  author = {Edoardo Carta-Gerardino and Parisa Babaali},
  journal= {arXiv preprint arXiv:1007.1045},
  year   = {2010}
}

Comments

14 pages, 6 figures

R2 v1 2026-06-21T15:45:17.838Z