SlideShare a Scribd company logo
5
Most read
7
Most read
13
Most read
NFA AND DFA
Presentation on
Notre Dame University
Bangladesh
Submitted By:
Prapti Das – 201120008
Rup Chowdhury – 201120010
Submitted To:
A.H.M. Saiful Islam
Chairman, Department of CSE
Notre Dame University Bangladesh
NFA
“Non deterministic finite automata”
NFA
In NFA, for a particular input symbol, the machines
can move to any combination of the states in the
machine. In other words, the exact state to which the
machine moves cannot be determined. As it has finite
number of states, the machine is called Non-
deterministic Finite machine.
Formal Definition of an NFA
An NFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where −
•Q - is a finite set of states.
•∑ - is a finite set of symbols called the alphabets.
•δ - is the transition function where δ: Q × ∑ → 2Q
(Here the power set of Q (2Q) has been taken because in case of
NFA, from a state, transition can occur to any combination of Q
states)
•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).
Graphical Representation of an NFA
An NFA can be represented by digraphs called state
diagram. In which:
1.The state is represented by vertices.
2.The arc labeled with an input character
show the transitions.
3.The initial state is marked with an
arrow.
4.The final state is denoted by the double
circle
1.Q = {q0, q1, q2}
2.∑ = {0, 1}
3.q0 = {q0}
4.F = {q2}
Example 1:
Solution:
Transition diagram:
Transition Table:
In the above diagram, we can see that when the current state is
q0, on input 0, the next state will be q0 or q1, and on 1 input the
next state will be q1. When the current state is q1, on input 0 the
next state will be q2 and on 1 input, the next state will be q0.
When the current state is q2, on 0 input the next state is q2, and
on 1 input the next state will be q1 or q2.
DFA
“Deterministic finite automata”
DFA refers to deterministic finite automata.
Deterministic refers to the uniqueness of the
computation. The finite automata are called
deterministic finite automata if the machine is
read an input string one symbol at a time
DFA
Formal Definition of DFA
A DFA is a collection of 5-tuples same as we described in the
definition of NFA.
1.Q: finite set of states
2.∑: finite set of the input symbol
3.q0: initial state
4.F: final state
5.δ: Transition function
Transition function can be defined as:
1.δ: Q x ∑→Q
Graphical Representation of DFA
A DFA can be represented by digraphs called state
diagram. In which:
1.The state is represented by vertices.
2.The arc labeled with an input character show
the transitions.
3.The initial state is marked with an arrow.
4.The final state is denoted by a double circle.
Solution:
Transition Diagram:
Example 1:
1.Q = {q0, q1, q2}
2.∑ = {0, 1}
3.q0 = {q0}
4.F = {q2}
Transition Table:
Difference between DFA and NFA :
NFA and DFA
Thank You
“Thank you, Everyone for being with us.”

More Related Content

PPTX
Perangkat keras dan lunak komputer
PPTX
Perangkat lunak presentation
PPTX
C language ppt
PPTX
cathodic protection
PDF
Deterministic Finite Automata (DFA)
PPTX
Sequence and series
PPT
Sequences
PPTX
Diabetes Mellitus
Perangkat keras dan lunak komputer
Perangkat lunak presentation
C language ppt
cathodic protection
Deterministic Finite Automata (DFA)
Sequence and series
Sequences
Diabetes Mellitus

What's hot (20)

PDF
NFA to DFA
PPTX
Push down automata
PPTX
Minimization of DFA.pptx
PPTX
NFA & DFA
PPTX
Pumping lemma
PPT
Finite automata
PPT
pushdown automata
PDF
Automata theory
PPTX
Pumping lemma for regular language
PPTX
Introduction TO Finite Automata
PPTX
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
PPT
Nondeterministic Finite Automata
PPTX
closure properties of regular language.pptx
PPT
Regular Languages
PPTX
Equivalence of DFAs and NFAs.pptx
PDF
Formal Languages and Automata Theory Unit 1
PPTX
Turing machine
PPTX
Acid properties
PPT
Mealy moore machine model
PPTX
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA to DFA
Push down automata
Minimization of DFA.pptx
NFA & DFA
Pumping lemma
Finite automata
pushdown automata
Automata theory
Pumping lemma for regular language
Introduction TO Finite Automata
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Nondeterministic Finite Automata
closure properties of regular language.pptx
Regular Languages
Equivalence of DFAs and NFAs.pptx
Formal Languages and Automata Theory Unit 1
Turing machine
Acid properties
Mealy moore machine model
NFA Converted to DFA , Minimization of DFA , Transition Diagram
Ad

Similar to NFA and DFA (20)

PPTX
Finite Automata fgyft rtrt rr uuy y.pptx
PPTX
chapter 1 automata and complexity theory lecture note.pptx
PPTX
AUTOMATA THEORY AUTOMATA THEORYAutomata3Chapter2.pptx
PPTX
FiniteAutomata_anim.pptx
PPTX
FiniteAutomata_anim.pptx
PDF
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
PPTX
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
PPTX
Theory of automata
PPTX
Theory of computation Unit 1 Lecute 2.pptx
PPTX
Chapter-twoChapter-three automata and complexity theory .pptx
PDF
deterministicfiniteautomatondfa-181008145215 (1).pdf
DOCX
Automata theory introduction
PPTX
Formal language and automata theoryLAT Class notes.pptx
PPTX
Week 3 - to FiniteAutomata DrJunaid.pptx
PDF
Theory of Computation FSM Conversions and Problems
PDF
Finite Automata
PPTX
FiniteAutomata_anim.pptx
PDF
Theory of computation and automata
PDF
Theory of computation and automata
Finite Automata fgyft rtrt rr uuy y.pptx
chapter 1 automata and complexity theory lecture note.pptx
AUTOMATA THEORY AUTOMATA THEORYAutomata3Chapter2.pptx
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Theory of automata
Theory of computation Unit 1 Lecute 2.pptx
Chapter-twoChapter-three automata and complexity theory .pptx
deterministicfiniteautomatondfa-181008145215 (1).pdf
Automata theory introduction
Formal language and automata theoryLAT Class notes.pptx
Week 3 - to FiniteAutomata DrJunaid.pptx
Theory of Computation FSM Conversions and Problems
Finite Automata
FiniteAutomata_anim.pptx
Theory of computation and automata
Theory of computation and automata
Ad

More from Rup Chowdhury (14)

PDF
An Industry report on Si Chuan Garden Cafe
PPTX
Paper Presentation on Improvement in Smart Agriculture using different techno...
DOCX
Lab Practices and Works Documentation / Report on Computer Graphics
PPTX
Enterprise Resource Planning
PPTX
FPGA, VLSI design flow using HDL, introduction to behavior, logic and physica...
PPTX
Smart Traffic Controlling System
PPTX
Virtual Reality and Augmented Reality
PPTX
External Memory
PPTX
Overview of Microcontroller and ATMega32 microcontroller
PPTX
Deadlock
PPTX
Hospital Management System
PDF
Environment Setup for Programming Languages
PPTX
Switch Case in C Program
PPTX
Environmental Problems and Natural Disaster and Social Crisis
An Industry report on Si Chuan Garden Cafe
Paper Presentation on Improvement in Smart Agriculture using different techno...
Lab Practices and Works Documentation / Report on Computer Graphics
Enterprise Resource Planning
FPGA, VLSI design flow using HDL, introduction to behavior, logic and physica...
Smart Traffic Controlling System
Virtual Reality and Augmented Reality
External Memory
Overview of Microcontroller and ATMega32 microcontroller
Deadlock
Hospital Management System
Environment Setup for Programming Languages
Switch Case in C Program
Environmental Problems and Natural Disaster and Social Crisis

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Geodesy 1.pptx...............................................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
web development for engineering and engineering
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
additive manufacturing of ss316l using mig welding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Geodesy 1.pptx...............................................
CYBER-CRIMES AND SECURITY A guide to understanding
Internet of Things (IOT) - A guide to understanding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
web development for engineering and engineering
R24 SURVEYING LAB MANUAL for civil enggi
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
bas. eng. economics group 4 presentation 1.pptx
UNIT 4 Total Quality Management .pptx
Sustainable Sites - Green Building Construction
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
additive manufacturing of ss316l using mig welding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx

NFA and DFA

  • 2. Notre Dame University Bangladesh Submitted By: Prapti Das – 201120008 Rup Chowdhury – 201120010 Submitted To: A.H.M. Saiful Islam Chairman, Department of CSE Notre Dame University Bangladesh
  • 4. NFA In NFA, for a particular input symbol, the machines can move to any combination of the states in the machine. In other words, the exact state to which the machine moves cannot be determined. As it has finite number of states, the machine is called Non- deterministic Finite machine.
  • 5. Formal Definition of an NFA An NFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where − •Q - is a finite set of states. •∑ - is a finite set of symbols called the alphabets. •δ - is the transition function where δ: Q × ∑ → 2Q (Here the power set of Q (2Q) has been taken because in case of NFA, from a state, transition can occur to any combination of Q states) •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).
  • 6. Graphical Representation of an NFA An NFA can be represented by digraphs called state diagram. In which: 1.The state is represented by vertices. 2.The arc labeled with an input character show the transitions. 3.The initial state is marked with an arrow. 4.The final state is denoted by the double circle
  • 7. 1.Q = {q0, q1, q2} 2.∑ = {0, 1} 3.q0 = {q0} 4.F = {q2} Example 1: Solution: Transition diagram:
  • 8. Transition Table: In the above diagram, we can see that when the current state is q0, on input 0, the next state will be q0 or q1, and on 1 input the next state will be q1. When the current state is q1, on input 0 the next state will be q2 and on 1 input, the next state will be q0. When the current state is q2, on 0 input the next state is q2, and on 1 input the next state will be q1 or q2.
  • 10. DFA refers to deterministic finite automata. Deterministic refers to the uniqueness of the computation. The finite automata are called deterministic finite automata if the machine is read an input string one symbol at a time DFA
  • 11. Formal Definition of DFA A DFA is a collection of 5-tuples same as we described in the definition of NFA. 1.Q: finite set of states 2.∑: finite set of the input symbol 3.q0: initial state 4.F: final state 5.δ: Transition function Transition function can be defined as: 1.δ: Q x ∑→Q
  • 12. Graphical Representation of DFA A DFA can be represented by digraphs called state diagram. In which: 1.The state is represented by vertices. 2.The arc labeled with an input character show the transitions. 3.The initial state is marked with an arrow. 4.The final state is denoted by a double circle.
  • 13. Solution: Transition Diagram: Example 1: 1.Q = {q0, q1, q2} 2.∑ = {0, 1} 3.q0 = {q0} 4.F = {q2}
  • 17. Thank You “Thank you, Everyone for being with us.”