Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Automata theory

From Wikipedia, the free encyclopedia
Study of abstract machines and automata

The automaton described by thisstate diagram starts in state S1, and changes states following the arrows marked 0 or 1 according to the input symbols as they arrive. The double circle marks S1 as an accepting state. Since all paths from S1 to itself contain an even number of arrows marked 0, this automaton accepts strings containing even numbers of 0s.

Automata theory is the study ofabstract machines andautomata, as well as thecomputational problems that can be solved using them. It is a theory intheoretical computer science with close connections tocognitive science andmathematical logic. The wordautomata comes from theGreek word αὐτόματος, which means "self-acting, self-willed, self-moving". Anautomaton (automata in plural) is an abstract self-propelledcomputing device which follows a predetermined sequence of operations automatically. An automaton with a finite number ofstates is called a finite automaton (FA) orfinite-state machine (FSM). The figure on the right illustrates a finite-state machine, which is a well-known type of automaton. This automaton consists ofstates (represented in the figure by circles) andtransitions (represented by arrows). As the automaton sees a symbol of input, it makes a transition (or jump) to another state, according to itstransition function, which takes the previous state and current input symbol as itsarguments.

Automata theory is closely related toformal 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 theChomsky hierarchy, which describes a nesting relationship between major classes of automata. Automata play a major role in thetheory of computation,compiler construction,artificial intelligence,parsing andformal verification.

History

[edit]

The theory of abstract automata was developed in the mid-20th century in connection withfinite automata.[1] Automata theory was initially considered a branch of mathematicalsystems theory, studying the behavior of discrete-parameter systems. Early work in automata theory differed from previous work on systems by usingabstract algebra to describeinformation systems rather thandifferential calculus to describe material systems.[2] The theory of thefinite-state transducer was developed under different names by different research communities.[3] The earlier concept ofTuring machine was also included in the discipline along with new forms of infinite-state automata, such aspushdown automata.

1956 saw the publication ofAutomata Studies, which collected work by scientists includingClaude Shannon,W. Ross Ashby,John von Neumann,Marvin Minsky,Edward F. Moore, andStephen 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, orregular languages, and a relatively stable measure of complexity in Turing machine programs by Shannon.[6] In the same year,Noam Chomsky described theChomsky hierarchy, a correspondence between automata andformal grammars,[7] and Ross Ashby publishedAn Introduction to Cybernetics, an accessible textbook explaining automata and information using basicset theory.

The study oflinear bounded automata led to theMyhill–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. Thepumping lemma for regular languages, also useful in regularity proofs, was proven in this period byMichael O. Rabin andDana 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 ofcomputational 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]

What follows is a general definition of an automaton, which restricts a broader definition of asystem 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 automatonruns when it is given some sequence ofinputs in discrete (individual)time steps (or juststeps). An automaton processes one input picked from a set ofsymbols orletters, which is called aninputalphabet. The symbols received by the automaton as input at any step are a sequence of symbols calledwords. An automaton has a set ofstates. At each moment during a run of the automaton, the automaton isin one of its states. When the automaton receives new input, it moves to another state (ortransitions) based on atransition function that takes the previous state and current input symbol as parameters. At the same time, another function called theoutput function produces symbols from theoutput 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 automatonhalts. A state at which the automaton halts is called thefinal state.

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

Formal definition

[edit]
Automaton
An automaton can be represented formally by aquintupleM=Σ,Γ,Q,δ,λ{\displaystyle M=\langle \Sigma ,\Gamma ,Q,\delta ,\lambda \rangle }, where:
IfQ{\displaystyle Q} is finite, thenM{\displaystyle M} is afinite automaton.[5]
Input word
An automaton reads a finitestring of symbolsa1a2...an{\displaystyle a_{1}a_{2}...a_{n}}, whereaiΣ{\displaystyle a_{i}\in \Sigma }, which is called aninput word. The set of all words is denoted byΣ{\displaystyle \Sigma ^{*}}.
Run
A sequence of statesq0,q1,...,qn{\displaystyle q_{0},q_{1},...,q_{n}}, whereqiQ{\displaystyle q_{i}\in Q} such thatqi=δ(qi1,ai){\displaystyle q_{i}=\delta (q_{i-1},a_{i})} for0<in{\displaystyle 0<i\leq n}, is arun of the automaton on an inputa1a2...anΣ{\displaystyle a_{1}a_{2}...a_{n}\in \Sigma ^{*}} starting from stateq0{\displaystyle q_{0}}. In other words, at first the automaton is at the start stateq0{\displaystyle q_{0}}, and receives inputa1{\displaystyle a_{1}}. Fora1{\displaystyle a_{1}} and every followingai{\displaystyle a_{i}} in the input string, the automaton picks the next stateqi{\displaystyle q_{i}} according to the transition functionδ(qi1,ai){\displaystyle \delta (q_{i-1},a_{i})}, until the last symbolan{\displaystyle a_{n}} has been read, leaving the machine in thefinal state of the run,qn{\displaystyle q_{n}}. Similarly, at each step, the automaton emits an output symbol according to the output functionλ(qi1,ai){\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 statesq{\displaystyle q}, and for stringswa{\displaystyle wa} wherea{\displaystyle a} is the last symbol andw{\displaystyle w} is the (possibly empty) rest of the string,δ¯(q,wa)=δ(δ¯(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 wordw{\displaystyle w} from stateq{\displaystyle q}.
Acceptor
In order to study an automaton with the theory offormal languages, an automaton may be considered as anacceptor, replacing the output alphabet and functionΓ{\displaystyle \Gamma } andλ{\displaystyle \lambda } with
This allows the following to be defined:
Accepting word
A wordw=a1a2...anΣ{\displaystyle w=a_{1}a_{2}...a_{n}\in \Sigma ^{*}} is anaccepting word for the automaton ifδ¯(q0,w)F{\displaystyle {\overline {\delta }}(q_{0},w)\in F}, that is, if after consuming the whole stringw{\displaystyle w} the machine is in an accept state.
Recognized language
The languageLΣ{\displaystyle L\subseteq \Sigma ^{*}}recognized by an automaton is the set of all the words that are accepted by the automaton,L={wΣ | δ¯(q0,w)F}{\displaystyle L=\{w\in \Sigma ^{*}\ |\ {\overline {\delta }}(q_{0},w)\in F\}}.[13]
Recognizable languages
Therecognizable languages are the set of languages that are recognized by some automaton. Forfinite automata the recognizable languages areregular 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" that 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.

Input
  • Finite input: An automaton that accepts only finite sequences 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 input: The input may be atree of symbols instead of sequence of symbols. In this case after reading each symbol, the automatonreads all the successor symbols in the input tree. It is said that the automatonmakes 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 atree 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 aninfinite tree automaton.
States
  • Single state: An automaton with one state, also called acombinational circuit, performs a transformation which may implementcombinational 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 acountable 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 astack in which symbols can be pushed and popped. This kind of automaton is called apushdown automaton.
  • Queue memory: An automaton may have memory in the form of aqueue. Such a machine is calledqueue machine and is Turing-complete.
  • Tape memory: The inputs and outputs of automata are often described as input and outputtapes. Some machines have additionalworking tapes, including theTuring machine,linear bounded automaton, andlog-space transducer.
Transition function
  • Deterministic: For a given current state and an input symbol, if an automaton can only jump to one and only one state then it is adeterministic 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. The term transition function is replaced by transition relation: The automatonnon-deterministically decides to jump into one of the allowed choices. Such automata are callednondeterministic automata.
  • Alternation: This idea is quite similar to tree automata but orthogonal. The automaton may run itsmultiple copies on thesame next read symbol. Such automata are calledalternating automata. The acceptance condition must be satisfied on all runs of suchcopies to accept the input.
  • Two-wayness: Automata may read their input from left to right, or they may be allowed to move back-and-forth on the input, in a way similar to aTuring machine. Automata which can move back-and-forth on the input are calledtwo-way finite automata.
Acceptance condition
  • Acceptance of finite words: Same as described in the informal definition above.
  • Acceptance of infinite words: anω-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 someprobability between zero and one. For example,quantum finite automata,geometric automata andmetric automata have probabilistic acceptance.

Different combinations of the above variations produce many classes of automata.

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 automataclosed 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 anyeffective algorithms to solve problems similar to the following list:

  • Does an automaton accept at least one input word? (Emptiness checking)
  • Is it possible to transform a given non-deterministic automaton into a deterministic automaton without changing the language recognized? (Determinization)
  • For a given formal language, what is the smallest automaton that recognizes it? (Minimization)

Types of automata

[edit]

The following is an incomplete list of types of automata.

AutomatonRecognizable languages
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 machinerecursively enumerable languages
DeterministicBüchi automatonω-limit languages
Nondeterministic Büchi automatonω-regular languages
Rabin automaton,Streett automaton,Parity automaton,Muller automaton
Weighted automaton

Discrete, continuous, and hybrid automata

[edit]

Normally automata theory describes the states of abstract machines but there are discrete automata,analog automata orcontinuous automata, orhybrid discrete-continuous automata, which use digital data, analog data or continuous time, or digitaland 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]

Automaton
Deterministic Finite Automaton (DFA) -- Lowest Power

(same power)   ||{\displaystyle ||}   (same power)
Nondeterministic Finite Automaton (NFA)
(above is weaker)   {\displaystyle \cap }    (below is stronger)
Deterministic Push Down Automaton (DPDA-I)
with 1 push-down store
{\displaystyle \cap }
Nondeterministic Push Down Automaton (NPDA-I)
with 1 push-down store
{\displaystyle \cap }
Linear Bounded Automaton (LBA)
{\displaystyle \cap }
Deterministic Push Down Automaton (DPDA-II)
with 2 push-down stores
||{\displaystyle ||}
Nondeterministic Push Down Automaton (NPDA-II)
with 2 push-down stores
||{\displaystyle ||}
Deterministic Turing Machine (DTM)
||{\displaystyle ||}
Nondeterministic Turing Machine (NTM)
||{\displaystyle ||}
Probabilistic Turing Machine (PTM)
||{\displaystyle ||}
Multitape Turing Machine (MTM)
||{\displaystyle ||}
Multidimensional Turing Machine

Applications

[edit]

Each model in automata theory plays important roles in several applied areas.Finite automata are used intext processing, compilers, andhardware design.Context-free grammar (CFGs) are used inprogramming languages and artificial intelligence. Originally, CFGs were used in the study ofhuman languages.Cellular automata are used in the field ofartificial life, the most famous example beingJohn Conway'sGame of Life. Some other examples which could be explained using automata theory in biology include mollusk and pine cone 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 ofKonrad Zuse, and was popularized in America byEdward Fredkin. Automata also appear in the theory offinite fields: the set ofirreducible polynomials that 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 theinduction 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 asymbolic 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]

Category-theoretic models

[edit]

One can define several distinctcategories of automata[17] following the automata classification into different types described in the previous section. The mathematical category of deterministic automata,sequential machines orsequential automata, and Turing machines withautomata homomorphisms defining the arrows between automata is aCartesian closed category,[18] it has both categoricallimits andcolimits. An automata homomorphism maps a quintuple of an automatonAi onto the quintuple of another automaton Aj. Automata homomorphisms can also be considered asautomata transformations or assemigroup homomorphisms, when the state space,S, of the automaton is defined as a semigroupSg.Monoids are also considered as a suitable setting for automata inmonoidal categories.[19][20][21]

Categories of variable automata

One could also define avariable automaton, in the sense ofNorbert Wiener in his book onThe Human Use of Human Beingsvia the endomorphismsAiAi{\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, avariable automatongroupoid. Therefore, in the most general case, categories of variable automata of any kind arecategories of groupoids orgroupoid categories. Moreover, the category of reversible automata is then a2-category, and also a subcategory of the 2-category of groupoids, or the groupoid category.[citation needed]

See also

[edit]

References

[edit]
  1. ^Mahoney, Michael S."The Structures of Computation and the Mathematical Structure of Nature". The Rutherford Journal. Retrieved2020-06-07.
  2. ^Booth, Taylor (1967).Sequential Machines and Automata Theory. New York: John Wiley & Sons. p. 1-13.ISBN 0-471-08848-X.
  3. ^Ashby, William Ross (1967-01-15)."The Place of the Brain in the Natural World"(PDF).Currents in Modern Biology.1 (2):95–104.Bibcode:1967BiSys...1...95A.doi:10.1016/0303-2647(67)90021-4.PMID 6060865. Archived fromthe original(PDF) on 2023-06-04. Retrieved2021-03-29.: "The theories, now well developed, of the "finite-state machine" (Gill, 1962), of the "noiseless transducer" (Shannon and Weaver, 1949), of the "state-determined system" (Ashby, 1952), and of the "sequential circuit", are essentially homologous."
  4. ^Ashby, W. R.; et al. (1956). C.E. Shannon; J. McCarthy (eds.).Automata Studies. Princeton, N.J.: Princeton University Press.
  5. ^abcdeArbib, Michael (1969).Theories of Abstract Automata. Englewood Cliffs, N.J.: Prentice-Hall.
  6. ^Li, Ming; Paul, Vitanyi (1997).An Introduction to Kolmogorov Complexity and its Applications. New York: Springer-Verlag. p. 84.
  7. ^Chomsky, Noam (1956)."Three models for the description of language"(PDF).IRE Transactions on Information Theory.2 (3):113–124.doi:10.1109/TIT.1956.1056813.S2CID 19519474.Archived(PDF) from the original on 2016-03-07.
  8. ^Nerode, A. (1958)."Linear Automaton Transformations".Proceedings of the American Mathematical Society.9 (4): 541.doi:10.1090/S0002-9939-1958-0135681-9.
  9. ^Rabin, Michael;Scott, Dana (Apr 1959)."Finite Automata and Their Decision Problems"(PDF).IBM Journal of Research and Development.3 (2):114–125.doi:10.1147/rd.32.0114. Archived from the original on 2010-12-14.
  10. ^abcHartmanis, J.;Stearns, R.E. (1966).Algebraic Structure Theory of Sequential Machines. Englewood Cliffs, N.J.: Prentice-Hall.
  11. ^Hartmanis, J.; Stearns, R. E. (1964)."Computational complexity of recursive sequences"(PDF).
  12. ^Fortnow, Lance; Homer, Steve (2002)."A Short History of Computational Complexity"(PDF).
  13. ^Moore, Cristopher (2019-07-31). "Automata, languages, and grammars".arXiv:1907.12713 [cs.CC].
  14. ^Yan, Song Y. (1998).An Introduction to Formal Languages and Machine Computation. Singapore: World Scientific Publishing Co. Pte. Ltd. pp. 155–156.ISBN 978-981-02-3422-5.
  15. ^Ferraguti, A.; Micheli, G.; Schnyder, R. (2018),Irreducible compositions of degree two polynomials over finite fields have regular structure, The Quarterly Journal of Mathematics, vol. 69, Oxford University Press, pp. 1089–1099,arXiv:1701.06040,doi:10.1093/qmath/hay015,S2CID 3962424
  16. ^Chakraborty, P.; Saxena, P. C.; Katti, C. P. (2011)."Fifty Years of Automata Simulation: A Review".ACM Inroads.2 (4):59–70.doi:10.1145/2038876.2038893.S2CID 6446749.
  17. ^Jirí Adámek andVěra Trnková. 1990.Automata and Algebras in Categories. Kluwer Academic Publishers:Dordrecht and Prague
  18. ^Mac Lane, Saunders (1971).Categories for the Working Mathematician. New York: Springer.ISBN 978-0-387-90036-0.
  19. ^https://www.math.cornell.edu/~worthing/asl2010.pdf James Worthington.2010.Determinizing, Forgetting, and Automata in Monoidal Categories. ASL North American Annual Meeting, 17 March 2010
  20. ^Aguiar, M. and Mahajan, S.2010."Monoidal Functors, Species, and Hopf Algebras".
  21. ^Meseguer, J., Montanari, U.: 1990 Petri nets are monoids.Information and Computation88:105–155

Further reading

[edit]

External links

[edit]
Each category of languages, except those marked by a*, is aproper subset of the category directly above it.Any language in each category is generated by a grammar and by an automaton in the category in the same line.
Note: This template roughly follows the 2012ACM Computing Classification System.
Hardware
Computer systems organization
Networks
Software organization
Software notations andtools
Software development
Theory of computation
Algorithms
Mathematics ofcomputing
Information systems
Security
Human-centered computing
Concurrency
Artificial intelligence
Machine learning
Graphics
Applied computing
Specialized PlatformDevelopment
Computational
Mathematical
software
Discrete
Analysis
Probability theory
Mathematical
physics
Algebraic
structures
Decision sciences
Other applications
Related
Organizations
International
National
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Automata_theory&oldid=1306696337"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp