Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,

Slides:



Advertisements
Similar presentations
Finite Automata with Output
Advertisements

Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
CS5371 Theory of Computation
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
CSC312 Automata Theory Lecture # 19 Chapter # 8 by Cohen Finite Automata with Output.
Lecture 05: Theory of Automata:08 Kleene’s Theorem and NFA.
Moore machine and Mealy machine (P.274)
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
1 Recap lecture 22 Applications of complementing and incrementing machines, Equivalent machines, Moore equivalent to Mealy, proof, example, Mealy equivalent.
1 Recap lecture 21 Example of Moore machine, Mealy machine, Examples, complementing machine, Incrementing machine.
Lecture # 12. Nondeterministic Finite Automaton (NFA) Definition: An NFA is a TG with a unique start state and a property of having single letter as label.
Lecture 8 Theory of AUTOMATA
Computing Machinery Chapter 4: Finite State Machines.
Lecture # 15. Mealy machine A Mealy machine consists of the following 1. A finite set of states q 0, q 1, q 2, … where q 0 is the initial state. 2. An.
1 Section 11.2 Finite Automata Can a machine(i.e., algorithm) recognize a regular language? Yes! Deterministic Finite Automata A deterministic finite automaton.
Lecture 14: Theory of Automata:2014 Finite Automata with Output.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
1 Advanced Theory of Computation Finite Automata with output Pumping Lemma Theorem.
Finite Automata (FA) with Output FA discussed so far, is just associated with R.Es or language. Is there exist an FA which generates an output string corresponding.
Lecture # 16. Applications of Incrementing and Complementing machines 1’s complementing and incrementing machines which are basically Mealy machines are.
Lecture 15: Theory of Automata:2014 Finite Automata with Output.
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
WELCOME TO A JOURNEY TO CS419 Dr. Hussien Sharaf Dr. Mohammad Nassef Department of Computer Science, Faculty of Computers and Information, Cairo University.
Lecture # 21.
The Acceptance Problem for TMs
PDA’s - A new format for FAs
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Pushdown Automata.
Pushdown Automata.
Lecture 9 Theory of AUTOMATA
Jaya Krishna, M.Tech, Assistant Professor
Hierarchy of languages
Non-deterministic Finite Automata (NFA)
Recap lecture 29 Example of prefixes of a language, Theorem: pref(Q in R) is regular, proof, example, Decidablity, deciding whether two languages are equivalent.
Kleene’s Theorem Muhammad Arif 12/6/2018.
Finite Automata.
Finite Automata.
Recap lecture 6 Language of strings, beginning with and ending in different letters, Accepting all strings, accepting non-empty strings, accepting no string,
CS21 Decidability and Tractability
Recap lecture 26 Example of nonregular language, pumping lemma version I, proof, examples,
Recap Lecture 16 Examples of Kleene’s theorem part III (method 3), NFA, examples, avoiding loop using NFA, example, converting FA to NFA, examples, applying.
Lecture 5 Theory of AUTOMATA
Recap lecture 44 Decidability, whether a CFG generates certain string (emptiness), examples, whether a nonterminal is used in the derivation of some word.
ReCap Chomsky Normal Form, Theorem regarding CNF, examples of converting CFG to be in CNF, Example of an FA corresponding to Regular CFG, Left most and.
Recap lecture 10 Definition of GTG, examples of GTG accepting the languages of strings:containing aa or bb, beginning with and ending in same letters,
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Recap lecture 18 NFA corresponding to union of FAs,example, NFA corresponding to concatenation of FAs,examples, NFA corresponding to closure of an FA,examples.
Recap lecture 37 New format for FAs, input TAPE, START, ACCEPT , REJECT, READ states Examples of New Format of FAs, PUSHDOWN STACK , PUSH and POP states,
Lecture # 13.
Recap Lecture 17 converting NFA to FA (method 3), example, NFA and Kleene’s theorem method 1, examples, NFA and Kleene’s theorem method 2 , NFA corresponding.
Recap lecture 11 Proof of Kleene’s theorem part II (method with different steps), particular examples of TGs to determine corresponding REs.
Recap lecture 25 Intersection of two regular languages is regular, examples, non regular languages, example.
RECAP Lecture 7 FA of EVEN EVEN, FA corresponding to finite languages(using both methods), Transition graphs.
Recap lecture 23 Mealy machines in terms of sequential circuit.
Recap Lecture 15 Examples of Kleene’s theorem part III (method 3), NFA, examples, avoiding loop using NFA, example, converting FA to NFA, examples, applying.
Finite-State Machines with No Output
Finite Automata with Output
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
Recap lecture 40 Recap of example of PDA corresponding to CFG, CFG corresponding to PDA. Theorem, HERE state, Definition of Conversion form, different.
Finite Automaton with output
CSC312 Automata Theory Kleene’s Theorem Lecture # 12
Kleene’s Theorem (Part-3)
Recap Lecture 4 Regular expression of EVEN-EVEN language, Difference between a* + b* and (a+b)*, Equivalent regular expressions; sum, product and closure.
Recap Lecture 3 RE, Recursive definition of RE, defining languages by RE, { x}*, { x}+, {a+b}*, Language of strings having exactly one aa, Language of.
LECTURE # 07.
Mealy and Moore Machines
What is it? The term "Automata" is derived from the Greek word "αὐτόματα" which means "self-acting". An automaton (Automata in plural) is an abstract self-propelled.
THEORY OF COMPUTATION 06 NUMBER OF STATES.
Presentation transcript:

Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another, Example, Theorem, Proof

Task Consider the language L of strings of length three or more, defined over  = {0,1}, ending in 011 then determine which of the following pairs are distinguishable or indistinguishable w.r.t. L. 001011, 11001111 01001111, 1100001111

Solution of the Task It can be observed that taking z = , 001011z belongs to L while 11001111z does not belong to L, which shows that 001011 and 11001111 are distinguishable w.r.t. L. It can be observed that both 01001111 and 1100001111 don’t belong to L. It can also be observed that for z  * either both 01001111z and 1100001111z belong to L or both don’t. hence 01001111 and 1100001111 are indistinguishable w.r.t. L.

Example Let L20={w  {0,1}*: |w|  20 and the 20th letter of w, from right is, 1}. Let S be the set of all strings of length 20, defined over , any two of which are distinguishable w.r.t. L20. Obviously the number of strings belonging to S, is 220. Let x and y be any two distinct strings i.e. they differ in ith letter,i=1,2,3,…20, from left. For i=1, they differ by first letter from left.

Example continued … Then by definition of L20, one is in L20 while other is not as shown below So they are distinct w.r.t. L20 for z =  i.e. one of xz and yz belongs to L20. . … 1

Example continued … Similarly if i=2 they differ by 2nd letter from left and are again distinguishable and hence for z belonging to *, |z|=1, either xz or yz belongs to L20 because in this case the 20th letter from the right of xz and yz is exactly the 2nd letter from left of x and y as shown below . … 1 z

Example continued … Hence x and y will be distinguishable w.r.t. L20 for i=2, as well. Continuing the process it can be shown that any pair of strings x and y belonging to S, will be distinguishable w.r.t. L20. Since S contains 220 strings, any two of which are distinguishable w.r.t. L20, so using the theorem any FA accepting L20 must have at least 220 states.

Note It may be observed from the above example that using Martin’s method, there exists an FA having 220+1-1=2,097,151 states. This indicates the memory required to recognize L20 will be the memory of a computer that can accommodate 21-bits i.e.the computer can be in 221 possible states.

Finite Automaton with output Finite automaton discussed so far, is just associated with the RE or the language. There is a question whether does there exist an FA which generates an output string corresponding to each input string ? The answer is yes. Such machines are called machines with output. There are two types of machines with output. Moore machine and Mealy machine

Moore machine A Moore machine consists of the following A finite set of states q0, q1, q2, … where q0 is the initial state. An alphabet of letters  = {a,b,c,…} from which the input strings are formed. An alphabet ={x,y,z,…} of output characters from which output strings are generated.

Moore machine continued … 4. A transition table that shows for each state and each input letter what state is entered the next. 5. An output table that shows what character is printed by each state as it is entered.

Moore machine continued … Note: It is to be noted that since in Moore machine no state is designated to be a final state, so there is no question of accepting any language by Moore machine. However in some cases the relation between an input string and the corresponding output string may be identified by the Moore machine. Moreover, the state to be initial is not important as if the machine is used several times and is restarted after some time, the machine will be started from the state where it was left off. Following are the examples

Example ={0,1} the transition table follows as Consider the following Moore machine having the states q0, q1, q2, q3 where q0 is the start state and  = {a,b}, ={0,1} the transition table follows as

New States after reading Example continued … Old States New States after reading a b q0- q1 q3 q2 q0 1 Characters to be printed

Example continued … the transition diagram corresponding to the previous transition table may be b a q0/1 q1/0 b a a b q3/1 q2/0 a b

Example continued … a b q0/1 q1/0 q2/0 q3/1 It is to be noted that the states are labeled along with the characters to be printed. Running the string abbabbba over the above machine, the corresponding output string will be 100010101, which can be determined by the following table as well

Example continued … It may be noted that the length of output string is l more than that of input string as the initial state prints out the extra character 1, before the input string is read. 1 output q0 q2 q3 q1 State a b Input

Summing Up Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples