Study Atlas › Computer Science › Theory of computation

Automata and formal languages

Abstract machines (finite automata, pushdown automata, Turing machines) recognise classes of languages in the Chomsky hierarchy.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Regular languages ↔ finite automata ↔ regular expressions (Kleene, 1956). Context-free languages ↔ pushdown automata (used for programming language syntax). Rabin and Scott introduced nondeterministic automata (Turing Award 1976). The pumping lemma proves some languages are not regular.

Example

Binary strings with an even number of 1s are recognised by a 2-state DFA.

How it works, step by step

  1. Define states and alphabet
  2. Specify transitions
  3. Mark start and accept states
  4. Run input; accept if it ends in an accept state

Open the interactive page with diagrams →

People behind it

References

  1. M. O. Rabin, D. Scott, IBM J. Res. Dev. 1959, 3, 114–125.
  2. S. C. Kleene, in Automata Studies, Princeton University Press, 1956, 3–41.

Textbooks

Related topics

Turing machines and computabilityMemory hierarchy and cachesString algorithms and pattern matchingPipelining and parallel processorsGreedy algorithms and minimum spanning treesFile systems and storageHeaps and priority queuesVirtualisation and containersRecursionCloud computing