# What Do You Mean By Automata?

Study of abstract machines and automata

Classes of automata

(Clicking on each layer gets an article on that subject)

The automaton described by this

state diagramstarts in state S

1, and changes states following the arrows marked 0 or 1 according to the input symbols as they arrive. The double circle marks S

1as an accepting state. Since all paths from S

1to itself contain an even number of arrows marked 0, this automaton accepts strings containing even numbers of 0s.

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. The word automata comes from the Greek word αὐτόματος, which means **"self-acting, self-willed, self-moving"**. An automaton (Automata in plural) is an abstract self-propelled computing device which follows a predetermined sequence of operations automatically. An automaton with a finite number of states is called a Finite Automaton (FA) or Finite-State Machine (FSM). 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 previous state and current input symbol as its arguments.

Automata theory is closely related to formal language theory. In this context, automata are used as finite representations of formal languages that may be infinite. Automata are often classified by the class of formal languages they can recognize, as in the Chomsky hierarchy, which describes a nesting relationship between major classes of automata. Automata play a major role in theory of computation, compiler construction, artificial intelligence, parsing and formal verification.

## History[edit]

The theory of abstract automata was developed in the mid-20th century in connection with finite automata.[1] Automata theory was initially considered a branch of mathematical systems theory, studying the behavior of discrete-parameter systems. Early work in automata theory differed from previous work on systems by using abstract algebra to describe information systems rather than differential calculus to describe material systems.[2] The theory of the finite-state transducer was developed under different names by different research communities.[3] The earlier concept of Turing machines were also included in the discipline along with new forms of infinite-state automaton, such as pushdown automata.

1956 saw the publication of Automata Studies, which collected work by scientists including Claude Shannon, W. Ross Ashby, John von Neumann, Marvin Minsky, Edward F. Moore, and Stephen Cole Kleene.[4] With the publication of this volume, "automata theory emerged as a relatively autonomous discipline".[5] The book included Kleene's description of the set of regular events, or regular languages, and a relatively stable measure of complexity in Turing machine programs by Shannon.[6] In the same year, Noam Chomsky described the Chomsky hierarchy, a correspondence between automata and formal grammars,[7] and Ross Ashby published An Introduction to Cybernetics, an accessible textbook explaining automata and information using basic set theory.

The study of linear automata[specify] led to the Myhill-Nerode theorem,[8] which gives a necessary and sufficient condition for a formal language to be regular, and an exact count of the number of states in a minimal machine for the language. The pumping lemma for regular languages, also useful in regularity proofs, was proven in this period by Michael O. Rabin and Dana Scott, along with the computational equivalence of deterministic and nondeterministic finite automata.[9]

In the 1960s, a body of algebraic results known as "structure theory" or "algebraic decomposition theory" emerged, which dealt with the realization of sequential machines from smaller machines by interconnection.[10] While any finite automaton can be simulated using a universal gate set, this requires that the simulating circuit contain loops of arbitrary complexity. Structure theory deals with the "loop-free" realizability of machines.[5]The theory of computational complexity also took shape in the 1960s.[11][12] By the end of the decade, automata theory came to be seen as "the pure mathematics of computer science".[5]

## Automata[edit]

@TJMair @debbiepalm44 @____Roar____ @Nahdya777 @GlennB10809975 @AnthonyT2_Mufc @westworld1974 @mirandadied4u @ThinkyTexan @KerridwinR @nico_manocchio @NoScienceDenial @Unlockthedoor77 @Eddie40670711 @imkimaaron @Megavolt1 @AprilLigeia @DaviesHyland @manoc

— Peace Zone (@SteamPoweredDM) Aug 05, 2019

What follows is a general definition of automaton, which restricts a broader definition of system to one viewed as acting in discrete time-steps, with its state behavior and outputs defined at each step by unchanging functions of only its state and input.[5]

### Informal description[edit]

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 input alphabet. The symbols received by the automaton as input at any step are a sequence of symbols called words. An automaton has a 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 transition function that takes the previous state and current input symbol as parameters. At the same time, another function called the output function produces symbols from the output alphabet, also according to the previous state and current input symbol. The automaton reads the symbols of the input word and transitions between states until the word is read completely, if it is finite in length, at which point the automaton halts. A state at which the automaton halts is called the final state.

To investigate the possible state/input/output sequences in an automaton using formal language theory, a machine can be assigned a starting state and a set of accepting states. Then, depending on whether a run starting from the starting state ends in an accepting state, the automaton can be said to accept or reject an input sequence. The set of all the words accepted by an automaton is called the language recognized by the automaton. A familiar example of a machine recognizing a language is an electronic lock which accepts or rejects attempts to enter the correct code.

### Formal definition[edit]

AutomatonAn automaton can be represented formally by a 5-tuple M = ⟨ Σ , Γ , Q , δ , λ ⟩ {\displaystyle M=\langle \Sigma ,\Gamma ,Q,\delta ,\lambda \rangle } , where: Σ {\displaystyle \Sigma } is a finite set of symbols, called the input alphabet of the automaton, Γ {\displaystyle \Gamma } is another finite set of symbols, called the output alphabet of the automaton, Q {\displaystyle Q} is a set of states, δ {\displaystyle \delta } is the next-state function or transition function δ : Q × Σ → Q {\displaystyle \delta :Q\times \Sigma \to Q} mapping state-input pairs to successor states, λ {\displaystyle \lambda } is the next-output function λ : Q × Σ → Γ {\displaystyle \lambda :Q\times \Sigma \to \Gamma } mapping state-input pairs to outputs.If Q {\displaystyle Q} is finite, then M {\displaystyle M} is a finite automaton.[5]Input wordAn automaton reads a finite string of symbols a 1 a 2 . . . a n {\displaystyle a_{1}a_{2}...a_{n}} , where a i ∈ Σ {\displaystyle a_{i}\in \Sigma } , which is called an input word. The set of all words is denoted by Σ ∗ {\displaystyle \Sigma ^{*}} .RunA sequence of states q 0 , q 1 , . . . q n {\displaystyle q_{0},q_{1},...q_{n}} , where q i ∈ Q {\displaystyle q_{i}\in Q} such that q i = δ ( q i − 1 , a i ) {\displaystyle q_{i}=\delta (q_{i-1},a_{i})} for 0 < i ≤ n {\displaystyle 0 , is a run of the automaton on an input a 1 a 2 . . . a n ∈ Σ ∗ {\displaystyle a_{1}a_{2}...a_{n}\in \Sigma ^{*}} starting from state q 0 {\displaystyle q_{0}} . In other words, at first the automaton is at the start state q 0 {\displaystyle q_{0}} , and receives input a 1 {\displaystyle a_{1}} . For a 1 {\displaystyle a_{1}} and every following a i {\displaystyle a_{i}} in the input string, the automaton picks the next state q i {\displaystyle q_{i}} according to the transition function δ ( q i − 1 , a i ) {\displaystyle \delta (q_{i-1},a_{i})} , until the last symbol a n {\displaystyle a_{n}} has been read, leaving the machine in the final state of the run, q n {\displaystyle q_{n}} . Similarly, at each step, the automaton emits an output symbol according to the output function λ ( q i − 1 , a i ) {\displaystyle \lambda (q_{i-1},a_{i})} .The transition function δ {\displaystyle \delta } is extended inductively into δ ¯ : Q × Σ ∗ → Q {\displaystyle {\overline {\delta }}:Q\times \Sigma ^{*}\to Q} to describe the machine's behavior when fed whole input words. For the empty string ε {\displaystyle \varepsilon } , δ ¯ ( q , ε ) = q {\displaystyle {\overline {\delta }}(q,\varepsilon )=q} for all states q {\displaystyle q} , and for strings w a {\displaystyle wa} where a {\displaystyle a} is the last symbol and w {\displaystyle w} is the (possibly empty) rest of the string, δ ¯ ( q , w a ) = δ ( δ ¯ ( q , w ) , a ) {\displaystyle {\overline {\delta }}(q,wa)=\delta ({\overline {\delta }}(q,w),a)} .[10] The output function λ {\displaystyle \lambda } may be extended similarly into λ ¯ ( q , w ) {\displaystyle {\overline {\lambda }}(q,w)} , which gives the complete output of the machine when run on word w {\displaystyle w} from state q {\displaystyle q} .AcceptorIn order to study an automaton with the theory of formal languages, an automaton may be considered as an acceptor, replacing the output alphabet and function Γ {\displaystyle \Gamma } and λ {\displaystyle \lambda } with q 0 ∈ Q {\displaystyle q_{0}\in Q} , a designated start state, and F {\displaystyle F} , a set of states of Q {\displaystyle Q} (i.e. F ⊆ Q {\displaystyle F\subseteq Q} ) called accept states.This allows the following to be defined:Accepting wordA word w = a 1 a 2 . . . a n ∈ Σ ∗ {\displaystyle w=a_{1}a_{2}...a_{n}\in \Sigma ^{*}} is an accepting word for the automaton if δ ¯ ( q 0 , w ) ∈ F {\displaystyle {\overline {\delta }}(q_{0},w)\in F} , that is, if after consuming the whole string w {\displaystyle w} the machine is in an accept state.Recognized languageThe language L ⊆ Σ ∗ {\displaystyle L\subseteq \Sigma ^{*}} recognized by an automaton is the set of all the words that are accepted by the automaton, L = { w ∈ Σ ∗ | δ ¯ ( q 0 , w ) ∈ F } {\displaystyle L=\{w\in \Sigma ^{*}\ |\ {\overline {\delta }}(q_{0},w)\in F\}} .[13]Recognizable languagesThe recognizable languages are the set of languages that are recognized by some automaton. For finite automata the recognizable languages are regular languages. For different types of automata, the recognizable languages are different.## Variant definitions of automata[edit]

Automata are defined to study useful machines under mathematical formalism. So, the definition of an automaton is open to variations according to the "real world machine", which we want to model using the automaton. People have studied many variations of automata. The following are some popular variations in the definition of different components of automata.

InputFinite input: An automaton that accepts only finite sequence of symbols. The above introductory definition only encompasses finite words.Infinite input: An automaton that accepts infinite words (ω-words). Such automata are called ω-automata.Tree word input: The input may be a tree of symbols instead of sequence of symbols. In this case after reading each symbol, the automaton reads all the successor symbols in the input tree. It is said that the automaton makes one copy of itself for each successor and each such copy starts running on one of the successor symbols from the state according to the transition relation of the automaton. Such an automaton is called a tree automaton.Infinite tree input : The two extensions above can be combined, so the automaton reads a tree structure with (in)finite branches. Such an automaton is called an infinite tree automatonStatesSingle state: An automaton with one state, also called a combinational circuit, performs a transformation which may implement combinational logic.[10]Finite states: An automaton that contains only a finite number of states.Infinite states: An automaton that may not have a finite number of states, or even a countable number of states. Different kinds of abstract memory may be used to give such machines finite descriptions.Stack memory: An automaton may also contain some extra memory in the form of a stack in which symbols can be pushed and popped. This kind of automaton is called a pushdown automatonQueue memory: An automaton may have memory in the form of a queue. Such a machine is called queue machine and is Turing-complete.Tape memory: The inputs and outputs of automata are often described as input and output tapes. Some machines have additional working tapes, including the Turing machine, linear bounded automaton, and log-space transducer.Transition functionDeterministic: For a given current state and an input symbol, if an automaton can only jump to one and only one state then it is a deterministic automaton.Nondeterministic: An automaton that, after reading an input symbol, may jump into any of a number of states, as licensed by its transition relation. Notice that the term transition function is replaced by transition relation: The automaton non-deterministically decides to jump into one of the allowed choices. Such automata are called nondeterministic automata.Alternation: This idea is quite similar to tree automaton but orthogonal. The automaton may run its multiple copies on the same next read symbol. Such automata are called alternating automata. Acceptance condition must satisfy all runs of such copies to accept the input.Acceptance conditionAcceptance of finite words: Same as described in the informal definition above.Acceptance of infinite words: an omega automaton cannot have final states, as infinite words never terminate. Rather, acceptance of the word is decided by looking at the infinite sequence of visited states during the run.Probabilistic acceptance: An automaton need not strictly accept or reject an input. It may accept the input with some probability between zero and one. For example, quantum finite automaton, geometric automaton and metric automaton have probabilistic acceptance.Different combinations of the above variations produce many classes of automaton.

Automata theory is a subject matter that studies properties of various types of automata. For example, the following questions are studied about a given type of automata.

Which class of formal languages is recognizable by some type of automata? (Recognizable languages)Are certain automata closed under union, intersection, or complementation of formal languages? (Closure properties)How expressive is a type of automata in terms of recognizing a class of formal languages? And, their relative expressive power? (Language hierarchy)Automata theory also studies the existence or nonexistence of any effective algorithms to solve problems similar to the following list:

Does an automaton accept any input word? (Emptiness checking)Is it possible to transform a given non-deterministic automaton into deterministic automaton without changing the recognizable language? (Determinization)For a given formal language, what is the smallest automaton that recognizes it? (Minimization)## Classes of automata[edit]

The following is an incomplete list of types of automata.

### Discrete, continuous, and hybrid automata[edit]

Normally automata theory describes the states of abstract machines but there are discrete automata, analog automata or continuous automata, or hybrid discrete-continuous automata, which use digital data, analog data or continuous time, or digital and analog data, respectively.

## Hierarchy in terms of powers[edit]

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.[14]

## Applications[edit]

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 artificial life, the most famous 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.[15]Another problem for which automata can be used is the induction of regular languages.

## Automata simulators[edit]

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.[16]

## Connection to category theory[edit]

One can define several distinct categories of automata[17] following the automata classification into different types described in the previous section. The mathematical category of deterministic automata, sequential machines or sequential automata, and Turing machines with automata homomorphisms defining the arrows between automata is a Cartesian closed category,[18][19] it has both categorical limits and colimits. An automata homomorphism maps a quintuple of an automaton Ai onto the quintuple of another automaton Aj.[20] Automata homomorphisms can also be considered as automata transformations or as semigroup homomorphisms, when the state space, S, of the automaton is defined as a semigroup Sg. Monoids are also considered as a suitable setting for automata in monoidal categories.[21][22][23]

Categories of variable automataOne could also define a variable automaton, in the sense of Norbert Wiener in his book on The Human Use of Human Beings via the endomorphisms A i → A i {\displaystyle A_{i}\to A_{i}} . Then, one can show that such variable automata homomorphisms form a mathematical group. In the case of non-deterministic, or other complex kinds of automata, the latter set of endomorphisms may become, however, a variable automaton groupoid. Therefore, in the most general case, categories of variable automata of any kind are categories of groupoids or groupoid categories. Moreover, the category of reversible automata is then a 2-category, and also a subcategory of the 2-category of groupoids, or the groupoid category.