wikipedia Automata theory
TIPS: In Chinese, Automata theory means 自动机理论.
Automata theory is the study of abstract machines and automata, as well as the computational problems that can be solved using them. It is a theory in theoretical computer science and discrete mathematics (a subject of study in both mathematics and computer science). The word automata (the plural of automaton) comes from the Greek word αὐτόματα, which means "self-making".
The figure at right illustrates a finite-state machine, which belongs to a well-known type of automaton. This automaton(自动机) consists of states (represented in the figure by circles) and transitions (represented by arrows). As the automaton sees a symbol of input, it makes a transition (or jump) to another state, according to its transition function, which takes the current state and the recent symbol as its inputs.
Automata theory is closely related to formal language theory. An automaton is a finite representation of a formal language that may be an infinite set. Automata are often classified by the class of formal languages they can recognize, typically illustrated by the Chomsky hierarchy, which describes the relations between various languages and kinds of formalized logics.
TIPS: It is obvious that automata theory is an important tool for research formal language.
Automata play a major role in theory of computation, compiler construction(编译器的构建), artificial intelligence, parsing and formal verification.
Classes of automata:
The study of the mathematical properties of such automata is automata theory. The picture is a visualization of an automaton that recognizes strings containing an even number of 0*s. The automaton starts in state *S1, and transitions to the non-accepting state S2 upon reading the symbol 0. Reading another 0 causes the automaton to transition back to the accepting state S1. In both states the symbol 1 is ignored by making a transition to the current state.
TIPS: The diagram above is called a state diagram.
Automata
Following is an introductory definition of one type of automaton, which attempts to help one grasp the essential concepts involved in automata theory/theories.
Informal description
An automaton runs when it is given some sequence of inputs in discrete (individual) time steps or steps.
An automaton processes one input picked from a set of symbols or letters, which is called an alphabet.
The symbols received by the automaton as input at any step are a finite sequence of symbols called words.
An automaton has a finite set of states. At each moment during a run of the automaton, the automaton is in one of its states. When the automaton receives new input it moves to another state (or transitions) based on a function that takes the current state and symbol as parameters. This function is called the transition function.
The automaton reads the symbols of the input word one after another and transitions from state to state according to the transition function until the word is read completely. Once the input word has been read, the automaton is said to have stopped. The state at which the automaton stops is called the final state.
Depending on the final state, it's said that the automaton either accepts or rejects an input word. There is a subset of states of the automaton, which is defined as the set of accepting states. If the final state is an accepting state, then the automaton accepts the word. Otherwise, the word is rejected. The set of all the words accepted by an automaton is called the language recognized by the automaton.
In short, an automaton is a mathematical object that takes a word as input and decides whether to accept it or reject it. Since all computational problems are reducible into the accept/reject question on inputs, (all problem instances can be represented in a finite length of symbols), automata theory plays a crucial role in computational theory.
TIPS: In formal language, automata act as recognizer or matcher consuming characters or tokens. The graph above is a good example of automaton. Automata can be used not only in formal language, it has many application in computer science, such as:
In these applications, what automaton consume can be event. See Finite-state machine for more detail.
Formal definition
Automaton
Classes of automata
The following is an incomplete list of types of automata.
Automaton | Recognizable language |
---|---|
Nondeterministic/Deterministic Finite state machine (FSM) | regular languages |
Deterministic pushdown automaton (DPDA) | deterministic context-free languages |
Pushdown automaton (PDA) | context-free languages |
Linear bounded automaton (LBA) | context-sensitive languages |
Turing machine | recursively enumerable languages |
Deterministic Büchi automaton | ω-limit languages |
Nondeterministic Büchi automaton | ω-regular languages |
Rabin automaton, Streett automaton, Parity automaton, Muller automaton |
Discrete, continuous, and hybrid automata
Normally automata theory describes the states of abstract machines but there are analog automata or continuous automata or hybrid discrete-continuous automata, which use analog data, continuous time, or both.
Hierarchy in terms of powers
The following is an incomplete hierarchy in terms of powers of different types of virtual machines. The hierarchy reflects the nested categories of languages the machines are able to accept.[1]
Automaton |
---|
Deterministic Finite Automaton (DFA) -- Lowest Power (same power) $ |
Applications
Each model in automata theory plays important roles in several applied areas. Finite automata are used in text processing, compilers, and hardware design. Context-free grammar (CFGs) are used in programming languages and artificial intelligence. Originally, CFGs were used in the study of the human languages. Cellular automata are used in the field of biology, the most common example being John Conway's Game of Life. Some other examples which could be explained using automata theory in biology include mollusk and pine cones growth and pigmentation patterns. Going further, a theory suggesting that the whole universe is computed by some sort of a discrete automaton, is advocated by some scientists. The idea originated in the work of Konrad Zuse, and was popularized in America by Edward Fredkin. Automata also appear in the theory of finite fields: the set of irreducible polynomials which can be written as composition of degree two polynomials is in fact a regular language.[2]
Automata simulators
Automata simulators are pedagogical tools used to teach, learn and research automata theory. An automata simulator takes as input the description of an automaton and then simulates its working for an arbitrary input string. The description of the automaton can be entered in several ways. An automaton can be defined in a symbolic language or its specification may be entered in a predesigned form or its transition diagram may be drawn by clicking and dragging the mouse. Well known automata simulators include Turing's World, JFLAP, VAS, TAGS and SimStudio.[3]