SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Deterministic
Finite
Automaton
(DFA)
-Sampath Kumar S,
AP/CSE, SECE
Deterministic Finite Automaton (DFA)
 In DFA, for each input symbol, one can determine
the state to which the machine will move. Hence, it
is called Deterministic Automaton.
 As it has a finite number of states, the machine is
called Deterministic Finite
Machine or Deterministic Finite Automaton.
21 November 20172
Formal definition of DFA:
A DFA can be represented by a 5-tuples (Q, ∑, δ, q0,
F) where −
 Q is a finite set of states.
 ∑ is a finite set of symbols, called the alphabet of
the automaton.
 δ is the transition function.
 q0 is the initial state from where any input is
processed (q0 ∈ Q).
 F is a set of final state/states of Q (F ⊆ Q).
Note: δ is called Delta and ∑ is called Sigma
21 November 20173
Graphical Representation of a DFA
A DFA is represented by digraphs called state
diagram or Transition Diagram .
 The vertices represent the states.
 The arcs labeled with an input alphabet show the
transitions.
 The initial state is denoted by an empty single
incoming arc.
 The final state is indicated by double circles.
21 November 20174
Transition Table:
 It is a tabular representation of a function like δ that
takes 2 arguments and returns a value.
 The rows of the table correspond to the state and
the columns correspond to the inputs.
 The entry for the row corresponding to state q and
the column corresponding to input a is the state
δ(q, a)
21 November 20175
Example
Let a deterministic finite automaton be →
 Q = {a, b, c},
 ∑ = {0, 1},
 q0={a},
 F={c}, and
 Transition function δ as shown by the following
table −
21 November 20176
Present State Next State for Input 0 Next State for Input 1
->a a b
b c a
c* b c
Example Cont..,
Its graphical representation would be as follows:
Can you guess the language of above DFA?
21 November 20177
Extended Transition Function:
 Describes what happens when we start in any state
and follow any sequence of inputs
 If δ is our transition function, then the extended
transition function is denoted by δ*
 The extended transition function is a function that
takes a state q and a string w and returns a state p
(the state that the automaton reaches when starting
in state q and processing the sequence of inputs
w)
 Formal definition :δ*(q, ǫ) = q
21 November 20178
Problems to Discuses:
1. Design DFA to accept string over ∑={0,1} with 2
consecutive 0’s.
2. Construct a DFA that accepts all strings on
∑={0,1} except those contains substring 101.
3. L= { w|w is of even length and begins with 01
over ∑={0,1} }.
4. Give DFA accepting the string starting with
substring 101 over ∑={0,1}
5. Design DFA to accept string contain number of
1’s is in multiples of 3 over ∑={0,1}.
6. Design DFA to accept string contain number of
1’s is not in multiples of 3 over ∑={0,1}.
21 November 20179
Problems (Cont..,):
7. Construct a DFA that accepts all strings on
∑={0,1} that contain exactly 4 zeros.
8. Construct a DFA over ∑={a,b} where the number
of b’s is divisible by 3.
9. Construct a DFA that accepts even binary
numbers on ∑={0,1}.
10. Construct a DFA that accepts odd binary numbers
on ∑={0,1}.
21 November 201710
21 November 201711
நன்றி
21 November 201712

More Related Content

What's hot (20)

PPT
Backtracking
Vikas Sharma
 
PPTX
Asymptotic Notations
Rishabh Soni
 
PDF
I. AO* SEARCH ALGORITHM
vikas dhakane
 
PPT
Medians and order statistics
Rajendran
 
PDF
Formal Languages and Automata Theory Unit 1
Srimatre K
 
PPTX
1.10. pumping lemma for regular sets
Sampath Kumar S
 
PPTX
Automata theory - CFG and normal forms
Akila Krishnamoorthy
 
PDF
Unit3:Informed and Uninformed search
Tekendra Nath Yogi
 
PPTX
Moore and mealy machines
AYESHA JAVED
 
PDF
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
PDF
First Order Logic resolution
Amar Jukuntla
 
PDF
Lecture: Context-Free Grammars
Marina Santini
 
PPT
Knowledge Representation in Artificial intelligence
Yasir Khan
 
PDF
Introduction to the theory of computation
prasadmvreddy
 
PPTX
language , grammar and automata
ElakkiyaS11
 
PPTX
Pushdown Automata Theory
Saifur Rahman
 
PDF
AI 4 | Informed Search
Mohammad Imam Hossain
 
PDF
AI_unit IV Full Notes.pdf
Guru Nanak Technical Institutions
 
PPTX
Lecture 1: Semantic Analysis in Language Technology
Marina Santini
 
PPTX
Design and Analysis of Algorithms
Arvind Krishnaa
 
Backtracking
Vikas Sharma
 
Asymptotic Notations
Rishabh Soni
 
I. AO* SEARCH ALGORITHM
vikas dhakane
 
Medians and order statistics
Rajendran
 
Formal Languages and Automata Theory Unit 1
Srimatre K
 
1.10. pumping lemma for regular sets
Sampath Kumar S
 
Automata theory - CFG and normal forms
Akila Krishnamoorthy
 
Unit3:Informed and Uninformed search
Tekendra Nath Yogi
 
Moore and mealy machines
AYESHA JAVED
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
First Order Logic resolution
Amar Jukuntla
 
Lecture: Context-Free Grammars
Marina Santini
 
Knowledge Representation in Artificial intelligence
Yasir Khan
 
Introduction to the theory of computation
prasadmvreddy
 
language , grammar and automata
ElakkiyaS11
 
Pushdown Automata Theory
Saifur Rahman
 
AI 4 | Informed Search
Mohammad Imam Hossain
 
AI_unit IV Full Notes.pdf
Guru Nanak Technical Institutions
 
Lecture 1: Semantic Analysis in Language Technology
Marina Santini
 
Design and Analysis of Algorithms
Arvind Krishnaa
 

Similar to 1.3.1 deterministic finite automaton (20)

PDF
Automata theory
Pardeep Vats
 
PDF
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
PDF
Finite Automata
A. S. M. Shafi
 
PPTX
Finite Automata fgyft rtrt rr uuy y.pptx
AsadBaig49
 
PPTX
Theory of automata
Arslan905905
 
DOCX
Automata theory introduction
NAMRATA BORKAR
 
PDF
Theory of Computation FSM Conversions and Problems
Rushabh2428
 
PPTX
chapter 1 automata and complexity theory lecture note.pptx
anwarkade1
 
PDF
Theory of computation and automata
Prof. Dr. K. Adisesha
 
PDF
Theory of computation and automata
Prof. Dr. K. Adisesha
 
PPTX
Chapter-twoChapter-three automata and complexity theory .pptx
anwarkade1
 
PPTX
finiteautomata-160104102657.pptx
StudyvAbhi
 
PPTX
AUTOMATA THEORY AUTOMATA THEORYAutomata3Chapter2.pptx
ArjayBalberan1
 
PPTX
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Mohammad Ilyas Malik
 
PPTX
FiniteAutomata_anim.pptx
ranjan317165
 
PPTX
FiniteAutomata_anim.pptx
amara jyothi
 
PPTX
Chapter 2 Introduction.pptxhj,jjk,jk,l,l,l,l,l,lhjkj
Shemse Shukre
 
PDF
5. NFA & DFA.pdf
TANZINTANZINA
 
PDF
flat unit1
Janhavi Vishwanath
 
PPTX
Theory of Automata(Formal Language) Lecture 3.pptx
muhammadanasgc
 
Automata theory
Pardeep Vats
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
Finite Automata
A. S. M. Shafi
 
Finite Automata fgyft rtrt rr uuy y.pptx
AsadBaig49
 
Theory of automata
Arslan905905
 
Automata theory introduction
NAMRATA BORKAR
 
Theory of Computation FSM Conversions and Problems
Rushabh2428
 
chapter 1 automata and complexity theory lecture note.pptx
anwarkade1
 
Theory of computation and automata
Prof. Dr. K. Adisesha
 
Theory of computation and automata
Prof. Dr. K. Adisesha
 
Chapter-twoChapter-three automata and complexity theory .pptx
anwarkade1
 
finiteautomata-160104102657.pptx
StudyvAbhi
 
AUTOMATA THEORY AUTOMATA THEORYAutomata3Chapter2.pptx
ArjayBalberan1
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Mohammad Ilyas Malik
 
FiniteAutomata_anim.pptx
ranjan317165
 
FiniteAutomata_anim.pptx
amara jyothi
 
Chapter 2 Introduction.pptxhj,jjk,jk,l,l,l,l,l,lhjkj
Shemse Shukre
 
5. NFA & DFA.pdf
TANZINTANZINA
 
flat unit1
Janhavi Vishwanath
 
Theory of Automata(Formal Language) Lecture 3.pptx
muhammadanasgc
 
Ad

More from Sampath Kumar S (20)

PPTX
5.2 primitive recursive functions
Sampath Kumar S
 
PPTX
4.7. chomskian hierarchy of languages
Sampath Kumar S
 
PPTX
4.6 halting problem
Sampath Kumar S
 
PPTX
4.3 techniques for turing machines construction
Sampath Kumar S
 
PPTX
4.2 variantsof turing machines (types of tm)
Sampath Kumar S
 
PPTX
4.1 turing machines
Sampath Kumar S
 
PPTX
3.6 & 7. pumping lemma for cfl & problems based on pl
Sampath Kumar S
 
PPTX
3.5 equivalence of pushdown automata and cfl
Sampath Kumar S
 
PPTX
3.4 deterministic pda
Sampath Kumar S
 
PPTX
3.1,2,3 pushdown automata definition, moves & id
Sampath Kumar S
 
PPTX
2.8 normal forms gnf & problems
Sampath Kumar S
 
PPTX
2.7 normal forms cnf & problems
Sampath Kumar S
 
PPTX
2.5 ambiguity in context free grammars
Sampath Kumar S
 
PPTX
2.4 derivations and languages
Sampath Kumar S
 
PPTX
2.3 context free grammars and languages
Sampath Kumar S
 
PPTX
2.1 & 2.2 grammar introduction – types of grammar
Sampath Kumar S
 
PPTX
1.9. minimization of dfa
Sampath Kumar S
 
PPTX
1.8. equivalence of finite automaton and regular expressions
Sampath Kumar S
 
PPTX
1.7. eqivalence of nfa and dfa
Sampath Kumar S
 
PPTX
1.5 & 1.6 regular languages & regular expression
Sampath Kumar S
 
5.2 primitive recursive functions
Sampath Kumar S
 
4.7. chomskian hierarchy of languages
Sampath Kumar S
 
4.6 halting problem
Sampath Kumar S
 
4.3 techniques for turing machines construction
Sampath Kumar S
 
4.2 variantsof turing machines (types of tm)
Sampath Kumar S
 
4.1 turing machines
Sampath Kumar S
 
3.6 & 7. pumping lemma for cfl & problems based on pl
Sampath Kumar S
 
3.5 equivalence of pushdown automata and cfl
Sampath Kumar S
 
3.4 deterministic pda
Sampath Kumar S
 
3.1,2,3 pushdown automata definition, moves & id
Sampath Kumar S
 
2.8 normal forms gnf & problems
Sampath Kumar S
 
2.7 normal forms cnf & problems
Sampath Kumar S
 
2.5 ambiguity in context free grammars
Sampath Kumar S
 
2.4 derivations and languages
Sampath Kumar S
 
2.3 context free grammars and languages
Sampath Kumar S
 
2.1 & 2.2 grammar introduction – types of grammar
Sampath Kumar S
 
1.9. minimization of dfa
Sampath Kumar S
 
1.8. equivalence of finite automaton and regular expressions
Sampath Kumar S
 
1.7. eqivalence of nfa and dfa
Sampath Kumar S
 
1.5 & 1.6 regular languages & regular expression
Sampath Kumar S
 
Ad

Recently uploaded (20)

PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
PPTX
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
PPTX
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPT
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
PPTX
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
PPTX
Applied-Statistics-1.pptx hardiba zalaaa
hardizala899
 
PPTX
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
Applied-Statistics-1.pptx hardiba zalaaa
hardizala899
 
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 

1.3.1 deterministic finite automaton

  • 2. Deterministic Finite Automaton (DFA)  In DFA, for each input symbol, one can determine the state to which the machine will move. Hence, it is called Deterministic Automaton.  As it has a finite number of states, the machine is called Deterministic Finite Machine or Deterministic Finite Automaton. 21 November 20172
  • 3. Formal definition of DFA: A DFA can be represented by a 5-tuples (Q, ∑, δ, q0, F) where −  Q is a finite set of states.  ∑ is a finite set of symbols, called the alphabet of the automaton.  δ is the transition function.  q0 is the initial state from where any input is processed (q0 ∈ Q).  F is a set of final state/states of Q (F ⊆ Q). Note: δ is called Delta and ∑ is called Sigma 21 November 20173
  • 4. Graphical Representation of a DFA A DFA is represented by digraphs called state diagram or Transition Diagram .  The vertices represent the states.  The arcs labeled with an input alphabet show the transitions.  The initial state is denoted by an empty single incoming arc.  The final state is indicated by double circles. 21 November 20174
  • 5. Transition Table:  It is a tabular representation of a function like δ that takes 2 arguments and returns a value.  The rows of the table correspond to the state and the columns correspond to the inputs.  The entry for the row corresponding to state q and the column corresponding to input a is the state δ(q, a) 21 November 20175
  • 6. Example Let a deterministic finite automaton be →  Q = {a, b, c},  ∑ = {0, 1},  q0={a},  F={c}, and  Transition function δ as shown by the following table − 21 November 20176 Present State Next State for Input 0 Next State for Input 1 ->a a b b c a c* b c
  • 7. Example Cont.., Its graphical representation would be as follows: Can you guess the language of above DFA? 21 November 20177
  • 8. Extended Transition Function:  Describes what happens when we start in any state and follow any sequence of inputs  If δ is our transition function, then the extended transition function is denoted by δ*  The extended transition function is a function that takes a state q and a string w and returns a state p (the state that the automaton reaches when starting in state q and processing the sequence of inputs w)  Formal definition :δ*(q, ǫ) = q 21 November 20178
  • 9. Problems to Discuses: 1. Design DFA to accept string over ∑={0,1} with 2 consecutive 0’s. 2. Construct a DFA that accepts all strings on ∑={0,1} except those contains substring 101. 3. L= { w|w is of even length and begins with 01 over ∑={0,1} }. 4. Give DFA accepting the string starting with substring 101 over ∑={0,1} 5. Design DFA to accept string contain number of 1’s is in multiples of 3 over ∑={0,1}. 6. Design DFA to accept string contain number of 1’s is not in multiples of 3 over ∑={0,1}. 21 November 20179
  • 10. Problems (Cont..,): 7. Construct a DFA that accepts all strings on ∑={0,1} that contain exactly 4 zeros. 8. Construct a DFA over ∑={a,b} where the number of b’s is divisible by 3. 9. Construct a DFA that accepts even binary numbers on ∑={0,1}. 10. Construct a DFA that accepts odd binary numbers on ∑={0,1}. 21 November 201710

Editor's Notes

  • #2: School of EECS, WSU