Jump to content

Local language (formal language)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Deltahedron (talk | contribs) at 19:24, 23 November 2012 (cite Sakarovitch (2009)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics, a local language is a formal language for which membership of a word in the language can be determined by looking at a "window" of length two.

Formally, we define a language L over an alphabet A to be local if there are subsets R and S of A and a subset F of A×A such that a word w is in L if and only if the first letter of w is in R, the last letter of w is in S and no factor of length 2 in w is in F. This corresponds to the regular expression[1]

Examples

  • Over the alphabet {a,b}[1]

Properties

  • The family of local languages over A is closed under intersection and Kleene star.[1]


References

  1. ^ a b c Sakarovitch (2009) p.228
  • Sakarovitch, Jacques (2009). Elements of automata theory. Translated from the French by Reuben Thomas. Cambridge: Cambridge University Press. ISBN 978-0-521-84425-3. Zbl 1188.68177.