Lecture # 16. Applications of Incrementing and Complementing machines 1’s complementing and incrementing machines which are basically Mealy machines are.

Slides:



Advertisements
Similar presentations
Theory Of Automata By Dr. MM Alam
Advertisements

Lecture 9,10 Theory of AUTOMATA
Finite Automata with Output
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
More Turing Machines Sipser 3.2 (pages ).
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
CSC312 Automata Theory Lecture # 19 Chapter # 8 by Cohen Finite Automata with Output.
Lecture 05: Theory of Automata:08 Kleene’s Theorem and NFA.
Lecture # 15 Theory Of Automata By Dr. MM Alam 1.
Kleene’s Theorem Group No. 3 Presented To Mam Amina Presented By Roll No Roll No Roll No Roll No Group No. 3 Presented To Mam.
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
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.
P Symbol Q E(Q) a b a b a b Convert to a DFA: Start state: Final States:
1 Recap lecture 28 Examples of Myhill Nerode theorem, Quotient of a language, examples, Pseudo theorem: Quotient of a language is regular, prefixes of.
Lecture # 8 (Transition Graphs). Example Consider the language L of strings, defined over Σ={a, b}, having (containing) triple a or triple b. Consider.
Lecture 06: Theory of Automata:08 Finite Automata with Output.
Lecture 14: Theory of Automata:2014 Finite Automata with Output.
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.
1 Recursively Enumerable and Recursive Languages.
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.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
A Universal Turing Machine
Kleene’s Theorem and NFA
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Non Deterministic Automata
Busch Complexity Lectures: Reductions
Lecture 9 Theory of AUTOMATA
Jaya Krishna, M.Tech, Assistant Professor
Turing acceptable languages and Enumerators
Non-deterministic Finite Automata (NFA)
Non-Deterministic Finite Automata
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.
Non-Deterministic Finite Automata
Decidable Languages Costas Busch - LSU.
Non Deterministic Automata
Kleene’s Theorem Muhammad Arif 12/6/2018.
Turing acceptable languages and Enumerators
Undecidable problems:
CS21 Decidability and Tractability
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 10 Definition of GTG, examples of GTG accepting the languages of strings:containing aa or bb, beginning with and ending in same letters,
CS21 Decidability and Tractability
Convert to a DFA: Start state: Final States: State Symbol Read- Q E(Q)
Convert to a DFA: Start state: Final States: P Symbol Q E(Q) a b.
Lecture # 13.
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 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
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 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)
LECTURE # 07.
Mealy and Moore Machines
CSCI 2670 Introduction to Theory of Computing
Presentation transcript:

Lecture # 16

Applications of Incrementing and Complementing machines 1’s complementing and incrementing machines which are basically Mealy machines are very much helpful in computing. The incrementing machine helps in building a machine that can perform the addition of binary numbers. Using the complementing machine along with incrementing machine, one can build a machine that can perform the subtraction of binary numbers.

Equivalent machines Two machines are said to be equivalent if they print the same output string when the same input string is run on them. Two Moore machines may be equivalent. Similarly two Mealy machines may also be equivalent, but A Moore machine can’t be equivalent to any Mealy machine. However, ignoring the extra character printed by the Moore machine, there exists a Mealy machine which is equivalent to the Moore machine.

Theorem Statement: For every Moore machine there is a Mealy machine that is equivalent to it (ignoring the extra character printed by the Moore machine). Proof: Let M be a Moore machine, then shifting the output characters corresponding to each state to the labels of corresponding incoming transitions, machine thus obtained will be a Mealy machine equivalent to M.

Note It may be noted that while converting a Moore machine into an equivalent Mealy machine, the output character of a state will be ignored if there is no incoming transition at that state. A loop at a state is also supposed to be an incoming transition. Following is the example of converting a Moore machine into an equivalent Mealy machine

Example Consider the following Moore machine Using the method described earlier, the above machine may be equivalent to the following Mealy machine

Example Cont… Running the string abbabbba on both the machines, the output string can be determined by the following table

Example Cont…

Theorem Statement: For every Mealy machine there is a Moore machine that is equivalent to it (ignoring the extra character printed by the Moore machine).

Proof Let M be a Mealy machine. At each state there are two possibilities for incoming transitions The incoming transitions have the same output character The incoming transitions have different output characters. If all the transitions have same output characters, then shift that character to the corresponding state.

Proof cont… If all the transitions have different output characters, then the state will be converted to as many states as the number of different output characters for these transitions, which shows that if this happens at state q i then q i will be converted to q i 1 and q i 2 i.e. if at q i there are the transitions with two output characters then q i 1 for one character and q i 2 for other character.

Proof cont… Shift the output characters of the transitions to the corresponding new states q i 1 and q i 2. Moreover, these new states q i 1 and q i 2 should behave like q i as well. Continuing the process, the machine thus obtained, will be a Moore machine equivalent to Mealy machine M. Following is a note

Note It may be noted that if there is no incoming transition at certain state then any of the output characters may be associated with that state. It may also be noted that if the initial state is converted into more than one new states then only one of these new states will be considered to be the initial state. Following is an example

Example Consider the following Mealy machine

Example cont… Shifting the output character 1 of transition b to q0

Example cont… Shifting the output character 0 of transition a to q1

Example cont… Shifting the output character 1 of transition b to q2

Example cont… Splitting q 3 into q 1 3 and q 2 3

Example cont… Running the string abbabbba on both the machines, the output strings can be determined by the following table

Regular languages As already been discussed earlier that any language that can be expressed by a RE is said to be regular language, so if L1 and L2 are regular languages then L 1 + L 2, L 1 L 2 and L 1 * are also regular languages. This fact can be proved by the following two methods

(1) By Regular Expressions As discussed earlier that if r 1, r 2 are regular expressions, corresponding to the languages L 1 and L 2 then the languages L 1 + L 2, L 1 L 2 and L 1 * generated by r 1 + r 2, r 1 r 2 and r 1 *, are also regular languages. (2) By TGs If L 1 and L 2 are regular languages then L1 and L2 can also be expressed by some REs as well and hence using Kleene’s theorem, L 1 and L 2 can also be expressed by some TGs. Following are the methods showing that there exist TGs corresponding to L 1 + L 2, L 1 L 2 and L 1 *

If L 1 and L 2 are expressed by TG 1 and TG 2 then following may be a TG accepting L 1 + L 2

If L 1 and L 2 are expressed by following TG 1 and TG 2 then following may be a TG accepting L 1 L 2 also a TG accepting L 1 * may be as under

Example Consider the following TGs

Example cont… Following may be a TG accepting L 1 + L 2

also a TG accepting L 1 L 2 may be and a TG accepting L 2 *