2 DFA VERSUS N ORMAL DFA Pavan Kumar Akulakrishna (M.Tech, SERC) SR No: 06-02-01-10-51-12-1-09469 Under Guidance of : Prof. Deepak D’souza.

Slides:



Advertisements
Similar presentations
Theory of Computing Lecture 23 MAS 714 Hartmut Klauck.
Advertisements

Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
Lecture 24 MAS 714 Hartmut Klauck
Lecture 6 Nondeterministic Finite Automata (NFA)
Finite Automata CPSC 388 Ellen Walker Hiram College.
3.2 Pumping Lemma for Regular Languages Given a language L, how do we know whether it is regular or not? If we can construct an FA to accept the language.
Chapter 7 Relations : the second time around
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
Introduction to Computability Theory
Transparency No. 2-1 Formal Language and Automata Theory Chapter 2 Deterministic Finite Automata (DFA) (include Lecture 3 and 4)
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Fall 2006Costas Busch - RPI1 Regular Expressions.
Transparency No Formal Language and Automata Theory Chapter 10 The Myhill-Nerode Theorem (lecture 15,16 and B)
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.
1 Regular Expressions. 2 Regular expressions describe regular languages Example: describes the language.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
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.
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
Lecture 7 Sept 22, 2011 Goals: closure properties regular expressions.
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.
Transparency No Formal Language and Automata Theory Chapter 10 The Myhill-Nerode Theorem (lecture 15,16 and B)
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
1 Non-Deterministic Automata Regular Expressions.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
Lecture 3 Graph Representation for Regular Expressions
Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { ‘{‘, ‘}’ } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite language,
Rosen 5th ed., ch. 11 Ref: Wikipedia
MYHILL NERODE THEOREM By Anusha Tilkam. Myhill Nerode Theorem: The following three statements are equivalent 1.The set L є ∑* is accepted by a FSA 2.L.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong NFA to DFA.
Decidable Questions About Regular languages 1)Membership problem: “Given a specification of known type and a string w, is w in the language specified?”
Prof. Busch - LSU1 NFAs accept the Regular Languages.
Transition Diagrams Lecture 3 Wed, Jan 21, Building Transition Diagrams from Regular Expressions A regular expression consists of symbols a, b,
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.
INHERENT LIMITATIONS OF COMPUTER PROGAMS CSci 4011.
Regular Expressions Costas Busch - LSU.
Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
Finite Automata Chapter 1. Automatic Door Example Top View.
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
CS 154 Formal Languages and Computability February 9 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron.
Algorithms for hard problems Automata and tree automata Juris Viksna, 2015.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
 2004 SDU Lecture4 Regular Expressions.  2004 SDU 2 Regular expressions A third way to view regular languages. Say that R is a regular expression if.
1 Chapter 2 Finite Automata (part a) Hokkaido, Japan.
Theory of Computation Automata Theory Dr. Ayman Srour.
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
CIS Automata and Formal Languages – Pei Wang
Lecture2 Regular Language
Non Deterministic Automata
Properties of Regular Languages
Nondeterministic Finite Automata
Hierarchy of languages
Regular Expressions Prof. Busch - LSU.
Regular Expression We shall build expressions from the symbols using simple operations include concatenation, union and kleen closure. Several intuitive.
More on DFA minimization and DFA equivalence
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
Nondeterministic Finite Automata
Non Deterministic Automata
Transition Diagrams Lecture 3 Fri, Jan 21, 2005.
Finite Automata Reading: Chapter 2.
Recap lecture 26 Example of nonregular language, pumping lemma version I, proof, examples,
Chapter 1 Regular Language - 02
Deterministic Finite Automaton (DFA)
Chapter 1 Regular Language
Presentation transcript:

2 DFA VERSUS N ORMAL DFA Pavan Kumar Akulakrishna (M.Tech, SERC) SR No: Under Guidance of : Prof. Deepak D’souza.

F UNDAMENTAL Q UESTION Is 2 way DFA more powerful than a one way DFA? “OR” Does the ability to do multiple scans on the tape gives rise to an increase in ‘ POWER ’ of the 2DFA? Not Intuitively clear! Need to develop a formal model.

U NDERSTANDING THE 2DFA B EHAVIOR Consider a String w: which is broken down into two parts say x and z. Right to Left  Q Left to Right  P If next time Right to Left Q, then Left to Right will be P. i.e., T x (Q)=P If never emerges? Let T x (Q) = ┴ The first time it emerges from x without having been to z. Call the state T x (. ). xz

C ONSTRUCTING A T ABLE T x (q) depends only on x and q. Write down T x (q) for all possible states q T: (Q U {. })  (Q U {┴}) Possible such tables taking |Q| = k are, (k+1)^(k+1). Hence, a finite information can be passed. Q1Q2…….Qk┴ Q1√ Q2√ ……√…….. Qk√. √

U SING M YHILL N ERODE T HEOREM If there are tables T x == T y and M accepts xz. Then, yz is also said to be accepted. Let L(M) denote the language accepted by the machine. Define a Equivalence relation on strings x and y: If T x = T y, x ≡ L(M) y.

P ROPERTIES OF ≡ L(M) Right congruence, x ≡ L(M) y then xa ≡ L(M) ya Refines L(M) If T x = T y, either both x and y accepted or rejected. Finite Index No. of Equivalence classes = No. of Unique Tables [i.e., (k+1)^(k+1)]. Hence, by Myhill-Nerode theorem, L(M) is a Regular Language.

I NFERENCES D RAWN A 2DFA is NO more powerful than a normal DFA We can construct a one way DFA equivalent to a 2 DFA viz. Indentify equivalence classes. Use construction defined by ≡  M ≡

C ONSTRUCTING E QUIVALENT DFA Formally, a DFA equivalent to 2 DFA looks as: D=(Q’,S’,Σ U{├, ┤}, δ,F’) Q’ = { T: (Q U {. })  (Q U {┴}) } S’ = T ε δ (T x, a) = T xa F’ = {T x | x Є L(M) }

A DVANTAGES O F 2 DFA A 2DFA is more compact than a DFA i.e., L(M)= {x Є {a, b}* | #a(x) is multiple of 7 and #b(x) is multiple of 5} Normal DFA would have 35 states. 2 DFA can be constructed using 14 states, including the accept and reject states (t, r). A 2DFA has single accept and reject states Whereas, a DFA may have multiple final states. E.g. L(M) = {x Є {a, b}* | #a(x) is multiple of 7 or #b(x) is multiple of 5}. Normal DFA has 12 final states.

C ONCLUSIONS 2 way DFA is a convenient representation for some regular languages, much like NFA Converting it to a normal DFA can be tedious as it involves constructing and identifying identical tables.