Distributive property: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>I dream of horses
m Reverted edits by David88063 (talk) (HG 3)
en>ElHef
m Reverted edits by Abruce123412 (talk) to last revision by ElHef (HG)
Line 1: Line 1:
{{Technical|date=April 2013}}
I am Natalia from Le Havre studying Business and Management. I did my schooling, secured 88% and hope to find someone with same interests in Creative writing.<br><br>my blog - [http://www.nucleoestudo.ufla.br/nuquali/?p=328/RK=0/RS=bW0_1HErtsbtGSQJNzh9q_3FtAE-%FFwork+at+home+companies%FFexternal+nofollow FIFA Coin generator]
 
[[File:DFAexample.svg|thumb|250px|An example of an automaton. The study of the mathematical properties of such automata is automata theory.]]
'''Automata theory''' is the study of ''[[abstract machine]]s'' and ''[[automaton|automata]]'', as well as the computational problems that can be solved using them. It is a theory in [[theoretical computer science]], under [[Discrete mathematics]] (a section of [[Mathematics]] and also of [[Computer Science]]). ''Automata'' comes from the Greek word αὐτόματα meaning "self-acting".
 
So, Automata Theory is the study of self-operating virtual machines to help in logical understanding of input and output process, without or with intermadiate stage(s) of [[computation]] (or any [[function]] / [[process]]).
 
The figure at right illustrates a [[finite state machine]], which belongs to one well-known variety of automaton.  This automaton consists of [[State (computer science)|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 also 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 language]]s they are able to recognize.
 
Automata play a major role in [[theory of computation]], [[compiler design]], [[artificial intelligence]], [[parsing]] and [[formal verification]].
 
==Automata==
Following is an introductory definition of one type of automaton, which attempts to help one grasp the essential concepts involved in automata theory(s).
 
===Informal description===
An automaton is supposed to ''run'' on some given sequence of ''inputs'' in discrete time steps.  An automaton gets one input every time step that is picked up from a set of ''[[Symbol (formal)|symbols]]'' or ''letters'', which is called an ''[[alphabet (computer science)|alphabet]]''. At any time, the symbols so far fed to the automaton as input form a finite sequence of symbols, which is called a ''word''. An automaton contains a finite set of ''states''. At each instance in time of some run, the automaton is ''in'' one of its states. At each time step when the automaton reads a symbol, it jumps or transitions to another state that is decided by 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 and the state at which automaton has stopped 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 ''[[formal language|language]] recognized by the automaton''.
 
In short, an automaton is a [[mathematical object]] that takes a word as input and decides either to accept it or reject it. Since all computational problems are reducible into the accept/reject question on words (all problem instances can be represented in a finite length of symbols){{Citation needed|date=May 2012}},
automata theory plays a crucial role in [[computational theory]].
 
===Formal definition===
;Automaton
:A deterministic finite '''automaton''' is represented formally by a [[N-tuple|5-tuple]] '''(Q,Σ,δ,q<sub>0</sub>,F)''', where:
:*Q is a finite set of ''states''.
:*Σ is a finite set of ''[[symbol]]s'', called the ''[[alphabet (computer science)|alphabet]]'' of the automaton.
:*δ is the '''transition function''', that is, δ:&nbsp;Q&nbsp;×&nbsp;Σ&nbsp;→&nbsp;Q.
:*q<sub>0</sub> is the ''start state'', that is, the state of the automaton before any input has been processed, where q<sub>0</sub>∈ Q.
:*F is a set of states of Q (i.e. F⊆Q) called '''accept states'''.
 
;Input word
:An automaton reads a finite [[Word (mathematics)|string]] of symbols  a<sub>1</sub>,a<sub>2</sub>,...., a<sub>n</sub> , where a<sub>i</sub>&nbsp;∈&nbsp;Σ, which is called an ''input word''. The set of all words is denoted by Σ*.
;Run
:A sequence of states q<sub>0</sub>,q<sub>1</sub>,q<sub>2</sub>,...., q<sub>n</sub>, where q<sub>i</sub>&nbsp;∈&nbsp;Q such that q<sub>0</sub> is the start state and  q<sub>i</sub>&nbsp;=&nbsp;δ(q<sub>i-1</sub>,a<sub>i</sub>) for 0&nbsp;&lt;&nbsp;i&nbsp;≤&nbsp;n, is a ''run'' of the automaton on an input word w = a<sub>1</sub>,a<sub>2</sub>,...., a<sub>n</sub>&nbsp;∈&nbsp;Σ*. In other words, at first the automaton is at the start state q<sub>0</sub>, and then the automaton reads symbols of the input word in sequence. When the automaton reads symbol a<sub>i</sub> it jumps to state q<sub>i</sub>&nbsp;=&nbsp;δ(q<sub>i-1</sub>,a<sub>i</sub>). q<sub>n</sub> is said to be the ''final state'' of the run.
 
;Accepting word
:A word  w&nbsp;∈&nbsp;Σ* is accepted by the automaton if q<sub>n</sub>&nbsp;∈&nbsp;F.
 
;Recognized language
:An automaton can recognize a [[formal language]]. The language L&nbsp;⊆&nbsp;Σ* recognized by an automaton is the set of all the words that are accepted by the automaton.
 
;Recognizable languages
:The [[recognizable language]]s are the set of languages that are recognized by some automaton. For the above definition of automata the recognizable languages are [[regular language]]s. For different definitions of automata, the recognizable languages are different.
 
==Variant definitions of automata==
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 most standard variant, which is described above, is called a [[deterministic finite automaton]]. The following are some popular variations in the definition of different components of automata.
 
;Input
* ''Finite 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 ([[Omega language|ω-words]]). Such automata are called ''[[omega automaton|ω-automata]]''.
* ''Tree word input'': The input may be a ''[[tree (automata theory)|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 symbol 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 automaton]]
 
;States
* ''Finite states'': An automaton that contains only a finite number of states. The above introductory definition describes automata with finite numbers of states.
* ''Infinite states'': An automaton that may not have a finite number of states, or even a [[countable]] number of states.  For example, the [[quantum finite automaton]] or [[topological automaton]] has  [[uncountable infinity]] of states.
* ''Stack memory'': An automaton may also contain some extra memory in the form of a [[Stack (abstract data type)|stack]] in which symbols can be pushed and popped. This kind of automaton is called a ''[[pushdown automaton]]''
 
;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 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 automaton|alternating automata]]''. Acceptance condition must satisfy all runs of such ''copies'' to accept the input.
 
;Acceptance condition
* ''Acceptance 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 much is a type of automata expressive in terms of recognizing a class of formal languages? And, their relative expressive power? (Language Hierarchy)
 
Automata theory also studies if there exist any [[effective method|effective algorithm]] or not 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? ([[DFA minimization|Minimization]]).
 
== Classes of automata ==
The following is an incomplete list of types of automata.
 
{| class="wikitable"
|-
! Automaton
! Recognizable language
|-
|[[Finite state machine|Nondeterministic/Deterministic Finite state machine]] (FSM)
|[[regular language]]s
|-
| [[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]]
| [[Omega language#Operations|ω-limit languages]]
|-
| Nondeterministic Büchi automaton
| [[Omega-regular language|ω-regular languages]]
|-
| [[Rabin automaton]], [[Streett automaton]], [[Parity automaton]], [[Muller automaton]]
| ω-regular languages
|}
 
===Discrete, continuous, and hybrid automata===
Normally automata theory describes the states of abstract machines but there are analog automata or continuous automata or [[Hybrid automaton|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.<ref name="Aaniya B">{{cite book|last=Yan|first=Song Y.|title=An Introduction to Formal Languages and Machine Computation|year=1998|publisher=World Scientific Publishing Co. Pte. Ltd.|location=Singapore|page=155-156|url=http://books.google.co.in/books?id=LYspp0L6pRcC&pg=PA155&dq=power+comparisons+of+Automata+and+Turing+machines}}</ref>
{| class="wikitable"
|-
! Automaton
|-{| border="0" align=center 
| [[Deterministic Finite Automaton]] (DFA)  -- Lowest Power <br/>
(same power) &nbsp;&nbsp; <math>||</math>  &nbsp;&nbsp;(same power) <br/>
[[Nondeterministic Finite Automaton]] (NFA)<br/>
(above is weaker) &nbsp;&nbsp; <math>\cap</math> &nbsp;&nbsp; (below is stronger) <br/>
[[Deterministic pushdown automaton|Deterministic Push Down Automaton]]  (DPDA-I) <br/>
with 1 push-down store <br/>
<math>\cap</math> <br/>
[http://www.cs.ox.ac.uk/people/luke.ong/personal/teaching/moc/pda2up.pdf Nondeterministic Push Down Automaton] (NPDA-I) <br/>
with 1 push-down store <br/>
<math>\cap</math> <br/>
[[Linear bounded automaton|Linear Bounded Automaton]] (LBA) <br/>
<math>\cap</math> <br/>
[[Deterministic pushdown automaton|Deterministic Push Down Automaton]] (DPDA-II) <br/>
with 2 push down stores <br/>
<math>||</math> <br/>
[http://www.cs.ox.ac.uk/people/luke.ong/personal/teaching/moc/pda2up.pdf Nondeterministic Push Down Automaton] (NPDA-II) <br/>
with 2 push-down store <br/>
<math>||</math> <br/>
[[Deterministic Turing machine|Deterministic Turing Machine]] (DTM) <br/>
<math>||</math> <br/>
[[Nondeterministic Turing machine|Nondeterministic Turing Machine]] NTM) <br/>
<math>||</math> <br/>
[[Probabilistic Turing machine|Probabilistic Turing Machine]] (PTM) <br/>
<math>||</math> <br/>
[[Multitape Turing machine|Multitape Turing Machine]] (MTM) <br/>
<math>||</math> <br/>
[[Turing_machine_equivalents#Other_equivalent_machines_and_methods|Multidimensional Turing Machine]] -- Highest 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 Horton Conway|John Conway]]'s [[Conway's Game of Life|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 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.<ref>Chakraborty, P., Saxena, P. C., Katti, C. P. 2011. Fifty Years of Automata Simulation: A Review. ''ACM Inroads'', '''2'''(4):59–70. http://dl.acm.org/citation.cfm?id=2038893&dl=ACM&coll=DL&CFID=65021406&CFTOKEN=86634854</ref>
 
==Connection to Category theory==
One can define several distinct [[category (mathematics)|categories]] of automata<ref>Jirí Adámek and Vera Trnková. 1990. ''Automata and Algebras in Categories''. Kluwer Academic Publishers:Dordrecht and Prague</ref> following the automata classification into different types described in the previous section. The mathematical category of deterministic automata, [[sequential machine]]s or ''sequential automata'', and Turing machines with automata homomorphisms defining the arrows between automata is a [[Cartesian closed category]],<ref>S. Mac Lane, Categories for the Working Mathematician, Springer, New York (1971)</ref><ref>http://planetmath.org/encyclopedia/CartesianClosedCategory.html Cartesian closed category</ref> it has both categorical limits and colimits. An automata homomorphism maps a quintuple of an automaton ''A''<sub>i</sub> onto the quintuple of another automaton
'' A''<sub>j</sub>.<ref>http://planetmath.org/encyclopedia/SequentialMachine3.html The Category of Automata</ref> 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 '''S'''<sub>g</sub>. [[Monoid]]s are also considered as a suitable setting for automata in [[monoidal category|monoidal categories]].<ref>http://www.csee.wvu.edu/~jworthing/asl2010.pdf James Worthington.2010.Determinizing, Forgetting, and Automata in Monoidal Categories. ASL North American Annual Meeting,March 17, 2010</ref><ref>Aguiar, M. and Mahajan, S.2010. ''"Monoidal Functors, Species, and Hopf Algebras"''.</ref><ref>Meseguer, J., Montanari, U.: 1990 Petri nets are monoids. ''Information and Computation'' '''88''':105–155</ref>
 
;Categories of variable automata
One could also define a ''variable automaton'', in the sense of Norbert Wiener in his book on ''"Human Use of Human Beings"'' ''via'' the endomorphisms <math>A_{i}\to A_{i}</math>. 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]]<ref>http://en.wikipedia.org/wiki/Groupoid#Category_of_groupoids Category of groupoids</ref> or [[groupoid category|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.
 
==References==
{{reflist|2}}
 
==Further reading==
* {{cite book|author = [[John E. Hopcroft]], [[Rajeev Motwani]], [[Jeffrey D. Ullman]] | year = 2000 | title = [[Introduction to Automata Theory, Languages, and Computation]] (2nd Edition) | publisher = Pearson Education | isbn = 0-201-44124-1 }}
* {{cite book|author = [[Michael Sipser]] | year = 1997 | title = [[Introduction to the Theory of Computation]] | publisher = PWS Publishing | isbn = 0-534-94728-X}} Part One: Automata and Languages, chapters 1–2, pp.&nbsp;29–122. Section 4.1: Decidable Languages, pp.&nbsp;152–159. Section 5.1: Undecidable Problems from Language Theory, pp.&nbsp;172–183.
* {{cite book|author = [[Elaine Rich]] | year = 2008| title = [[Automata, Computability and Complexity: Theory and Applications]] | publisher = Pearson | isbn = 0-13-228806-0}}
* {{cite book | zbl=0565.68046 | last=Salomaa | first=Arto | authorlink=Arto Salomaa | title=Computation and automata | series=Encyclopedia of Mathematics and Its Applications | volume=25 | publisher=[[Cambridge University Press]] | year=1985 | isbn=0-521-30245-5 }}
* {{cite book | last=Anderson | first=James A. | title=Automata theory with modern applications | others=With contributions by Tom Head | location=Cambridge | publisher=[[Cambridge University Press]] | year=2006 | isbn=0-521-61324-8 | zbl=1127.68049 }}
* {{cite book | last=Conway | first=J.H. | authorlink=John Horton Conway | title=Regular algebra and finite machines | series=Chapman and Hall Mathematics Series | location=London | publisher=[[Chapman & Hall]] | year=1971 | zbl=0231.94041 }}
* {{cite book | last=Sakarovitch | first=Jacques | title=Elements of automata theory | others=Translated from the French by Reuben Thomas | publisher=[[Cambridge University Press]] | year=2009 | isbn=978-0-521-84425-3 | zbl=1188.68177 }}
* {{cite book|author = [[James P. Schmeiser]], [[David T. Barnard]] | year = 1995 | title = Producing a top-down parse order with bottom-up parsing | publisher = Elsevier North-Holland}}
 
== External links ==
*[http://www.cs.usfca.edu/~jbovet/vas.html Visual Automata Simulator], A tool for simulating, visualizing and transforming finite state automata and Turing Machines, by Jean Bovet
*[http://www.jflap.org JFLAP]
*[http://www.brics.dk/automaton dk.brics.automaton]
*[http://www.augeas.net/libfa/index.html libfa]
*{{cite web|url=http://www.fareastautomata.info  |title= Pushdown Automata Theory}} Theory of Automata
{{Formal languages and grammars}}
{{Computer science}}
 
[[Category:Automata theory| ]]
 
{{Link GA|ar}}

Revision as of 05:42, 28 February 2014

I am Natalia from Le Havre studying Business and Management. I did my schooling, secured 88% and hope to find someone with same interests in Creative writing.

my blog - FIFA Coin generator