Linguistics 484 - Grammars Ling484 Prolog Examples A. C. Brett acbrett@uvic.ca
Department of Linguistics
University of Victoria
Clearihue C139
Last updated: 3 January 2005

Automata.

Automata are abstract machines that are normally conceived of a idealised, but much simplified computers that are devised to perform particular varieties of problem-solving procedures. The procedures performed by the automata illustrated here are employed to determine whether or not given strings of words constitute sentences.

Two varieties of automata are demonstrated in the examples identified below. The first of these is the Finite-State Automaton, which is the simplest of the automata, and the second is the Push-Down Automaton, which differs from the Finite-State machine only in that it is equipped with a memory device that functions as a push-down store or stack. The Finite-State Automaton itself has no memory. These two varieties of machine have been adapted to produce the Recursive Transition Network and Shift/Reduce Automata illustrated by the examples cited below.

The automata illustrated here are important because they are equivalent to two of the grammars in the Chomsky Hierarchy. The Finite-State Automata are equivalent to the Type 3 (finite or regular) grammars. In fact, the Type 3 or regular grammars are identified as "finite grammars" because of this equivalence. The equivalence of a Finite-State Automaton to a finite grammar means that, given a finite grammar G, a Finite-State Automaton can be devised that recognises just the sentences generated by G. Push-Down Automata are equivalent to context-free grammars, meaning that, given a context-free grammar G, a Push-Down Automaton can be devised that recognises just the sentences generated by G. The Recursive Transition Network and Shift/Reduce Automata are equivalent to Push-Down Automata in that they accept the same languages.

The operations of these machines are demonstrated by the Prolog predicates in the following examples:

Linguistics 484 Examples Index Top of Page