FAFL Final Lecture 1.10 CMH
FAFL Final Lecture 1.10 CMH
Lecture 1.10
Deterministic Finite
Automata
School of CSE
OUTLINE
Lecture Discussion
Course Description
DFA accepting strings based on length of the string.
q1 b q2
a
q0 a
b
q5
a
b
q3 a
q4 b
b a
M I S C E L L A N E O U S P R O B L E M S O N D FA
C O N S TSolving
Problem RUCTION
Construct a DFA to accept the binary strings where second
symbol form the right end of the string is 1.
Here Ʃ={a, b} L = { 10, 11, 111, 010, 110, 00010, 101010, …. }
Solution
0
1 q2
0
1
q0 q1 1
0
1
0 q3
SUMMARY OF THE LECTURE
DFA accepting
DFA accepting DFA accepting Miscellaneous
strings based
strings based strings based problems on
on binary to
on length of on symbols DFA
decimal
the string count construction
conversions
RESOURCES AND TASK
Optional and non-optional reading resources of
the Lecture
Optional Resources
• https://www.eecs.wsu.edu/~ananth/CptS317/Lectures/index.htm
Web • https://www.geeksforgeeks.org/theory-of-computation-automata-tutorials/
resources • https://www.tutorialspoint.com/automata_theory/automata_theory_introdu
ction.htm
Non-Optional Resources
Web • Construct DFA to accept binary strings that begin with 1 and when
resources interpreted in decimal is a multiple of 5.
Non-Optional Task
Web • Construct DFA for accepting binary strings that begin 0 and which when
resources converted to decimal is a multiple of 4.
SUMMARY OF THE LECTURE
Reading resources for the next
lecture
Topic of Next Lecture: Non Deterministic Finite Automata
• https://www.eecs.wsu.edu/~ananth/CptS317/Lectures/index.htm
Web • https://www.geeksforgeeks.org/theory-of-computation-automata-tutorials/
resources •
https://www.tutorialspoint.com/automata_theory/automata_theory_introduc
tion.htm
2. How many states a DFA can have to accept binary strings whose length is
multiple of 10.
A) 10 B) 5
C) 11 D) 9
QUIZ
Questions from Lecture
3. If a DFA accept binary strings that does not end with 0 then binary string
when interpreted in decimal is _______
A) Odd B) Even
4. If DFA accept all possible binary strings over {0,1} then DFA has ____
states.
A) One B) Two
C) Three D) Four
QUIZ
Questions from Lecture
A) Ʃ* B) Ʃ+
C) ɸ D) { λ }
A) 2 B) 3
C) 1 D) 0
QUIZ
Questions from Lecture
7. The minimum number of states present in DFA that accept binary strings
which when interpreted in decimal is a multiple of 3 is ________
A) 3 C) 4
C) 5 D) 6
8. The minimum number of states exists in a DFA that accepts strings that
begin with “a” or end with “a” or both over Ʃ = { a, b} is ________
A) 4 B) 3
C) 6 D) 5
THANK YOU