SlideShare a Scribd company logo
Finite Automata
by
Manish Tadhiyal
Content
• Finite automata
• Types of finite automata
• Finite state diagram
• Deterministic finite automata(DFA)
• Example of DFA
• Non-deterministic finite automata(NFA)
• Example of NFA
Finite Automata
A finite automata (FA) is a simple idealized
machine used to recognize patterns within input
taken from some character set (or alphabet) C.
the job of an FA is to accept or reject a input
depending on whether the pattern defined by the FA
occurs in the input.
Types of finite automata
Finite automata without output
Deterministic finite automata
Non-deterministic finite automata
Finite automata with output
Mealy machine
Moore machine
Finite State Diagram
• A graphic representation of a finite automata
A finite state diagram is a directed graph, where
nodes represent elements in Q (i.e., states) and arrows
are characters in  such that:
qa qb Indicates: transmission between qa to qb
with a.
The initial state is marked with: >
The final state(s) are marked with:
a
Deterministic finite automata
For each pair of states and possible input
chars, there is a unique next state (as specified
by the transitions), then the FA is
deterministic finite automata.
That means the DFA follow single path with
single transmission.
Deterministic finite automata
Q:Finite set of states
: Finite Alphabet
d: Transition function
- a total function from Qx to Q
q0:Initial/Start State
F :Set of final/accepting state
),,,,( 0 FqQM d
Example
Set of strings over {a,b} that contain “bb”
q2q0 q1
a b
a
b
a
b
d a b
q0 q0 q1
q1 q0 q2
q2 q2 q2
}2{
},{
}2,1,0{
qF
ba
qqqQ



],1[],0[ *
qaabq 
Another Example
Build a FA to accept strings of even length
q1
a,b
a,b
q0
Non-Deterministic finite automata
For each pair of states and possible input
chars, there may be more then one next state
(as specified by the transitions), then the FA is
non-deterministic finite automata.
Conceptually, a nondeterministic FA can
follow many paths simultaneously.
Non-deterministic finite automata
(NDFA) or (NFA)
M = (Q,, , s, F) where
Q= Finite set of states
= Input alphabet
 = Q x  2^Q
s = Initial state
F = Final state
Difference between DFA and NFA
qi qj
qkq
qi qj
a a
a
DFA
NFA
a
String having alphabet =(a,b)
• String accept language start with a and end
with a.
q0
qf q1
a b
a
b a b
q2
Another Example
Build a FA to accept strings of even length
q0
q1 q2
a,b a,b


Finite automata

More Related Content

PPTX
Moore Mealy Machine Conversion
PPTX
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
PPTX
Push down automata
PDF
Practica+1+binario+y+decimal
PPTX
Lecture 15 monkey banana problem
PPT
Nondeterministic Finite Automata
PPTX
Theory of computation Lec2
PPT
Minimization of DFA
Moore Mealy Machine Conversion
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push down automata
Practica+1+binario+y+decimal
Lecture 15 monkey banana problem
Nondeterministic Finite Automata
Theory of computation Lec2
Minimization of DFA

What's hot (20)

PDF
Jflap İle Otomata Teorisi
PPT
Regular Languages
PDF
Digital and Logic Design Chapter 1 binary_systems
PPT
NFA or Non deterministic finite automata
PPTX
Propositional logic
PPTX
Chapter 6: Sequential Logic
PPT
Binary logic
PPTX
AI-09 Logic in AI
PPTX
Types of grammer - TOC
PPTX
Moore and mealy machines
PDF
TOC 3 | Different Operations on DFA
PDF
Finite automata
PPTX
Theory of Automata and formal languages unit 1
PDF
Formal Languages and Automata Theory Unit 1
PPTX
Automata theory - NFA ε to DFA Conversion
PPTX
Pushdown Automata Theory
PPTX
mealy and moore machines
PPTX
Moore and mealy machine
PDF
Theory of Computation Grammar Concepts and Problems
PPT
Finite State Machine by M. Arokiasamy
Jflap İle Otomata Teorisi
Regular Languages
Digital and Logic Design Chapter 1 binary_systems
NFA or Non deterministic finite automata
Propositional logic
Chapter 6: Sequential Logic
Binary logic
AI-09 Logic in AI
Types of grammer - TOC
Moore and mealy machines
TOC 3 | Different Operations on DFA
Finite automata
Theory of Automata and formal languages unit 1
Formal Languages and Automata Theory Unit 1
Automata theory - NFA ε to DFA Conversion
Pushdown Automata Theory
mealy and moore machines
Moore and mealy machine
Theory of Computation Grammar Concepts and Problems
Finite State Machine by M. Arokiasamy
Ad

Similar to Finite automata (20)

PDF
Finite Automata
PPTX
Formal language and automata theoryLAT Class notes.pptx
PPTX
Automata introduction to FA_ Anurag Kumar.pptx
PDF
5. NFA & DFA.pdf
PPTX
Chapter-twoChapter-three automata and complexity theory .pptx
PPTX
vai pdf name change kore de.pptx
PDF
Deterministic Finite Automata (DFA) Lecture
PPTX
LectIntroduction to Finite Automata.pptx
PDF
Theory of computation and automata
PDF
Theory of computation and automata
PPTX
Deterministic Finite Automata (DFA).pptx
PDF
flat unit1
PDF
deterministicfiniteautomatondfa-181008145215 (1).pdf
PPTX
FINITE AUTOMATA
PPT
finitw automata2, Computer theory computure science
PDF
Automata theory
PPTX
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
PDF
TCS GOLDEN NOTES THEORY OF COMPUTATION .pdf
PPTX
NFA and DFA
Finite Automata
Formal language and automata theoryLAT Class notes.pptx
Automata introduction to FA_ Anurag Kumar.pptx
5. NFA & DFA.pdf
Chapter-twoChapter-three automata and complexity theory .pptx
vai pdf name change kore de.pptx
Deterministic Finite Automata (DFA) Lecture
LectIntroduction to Finite Automata.pptx
Theory of computation and automata
Theory of computation and automata
Deterministic Finite Automata (DFA).pptx
flat unit1
deterministicfiniteautomatondfa-181008145215 (1).pdf
FINITE AUTOMATA
finitw automata2, Computer theory computure science
Automata theory
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
TCS GOLDEN NOTES THEORY OF COMPUTATION .pdf
NFA and DFA
Ad

Recently uploaded (20)

PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPTX
introduction to high performance computing
PPTX
Amdahl’s law is explained in the above power point presentations
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Current and future trends in Computer Vision.pptx
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
737-MAX_SRG.pdf student reference guides
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPT
Total quality management ppt for engineering students
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
introduction to high performance computing
Amdahl’s law is explained in the above power point presentations
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Current and future trends in Computer Vision.pptx
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
737-MAX_SRG.pdf student reference guides
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
distributed database system" (DDBS) is often used to refer to both the distri...
Total quality management ppt for engineering students

Finite automata

  • 2. Content • Finite automata • Types of finite automata • Finite state diagram • Deterministic finite automata(DFA) • Example of DFA • Non-deterministic finite automata(NFA) • Example of NFA
  • 3. Finite Automata A finite automata (FA) is a simple idealized machine used to recognize patterns within input taken from some character set (or alphabet) C. the job of an FA is to accept or reject a input depending on whether the pattern defined by the FA occurs in the input.
  • 4. Types of finite automata Finite automata without output Deterministic finite automata Non-deterministic finite automata Finite automata with output Mealy machine Moore machine
  • 5. Finite State Diagram • A graphic representation of a finite automata A finite state diagram is a directed graph, where nodes represent elements in Q (i.e., states) and arrows are characters in  such that: qa qb Indicates: transmission between qa to qb with a. The initial state is marked with: > The final state(s) are marked with: a
  • 6. Deterministic finite automata For each pair of states and possible input chars, there is a unique next state (as specified by the transitions), then the FA is deterministic finite automata. That means the DFA follow single path with single transmission.
  • 7. Deterministic finite automata Q:Finite set of states : Finite Alphabet d: Transition function - a total function from Qx to Q q0:Initial/Start State F :Set of final/accepting state ),,,,( 0 FqQM d
  • 8. Example Set of strings over {a,b} that contain “bb” q2q0 q1 a b a b a b d a b q0 q0 q1 q1 q0 q2 q2 q2 q2 }2{ },{ }2,1,0{ qF ba qqqQ    ],1[],0[ * qaabq 
  • 9. Another Example Build a FA to accept strings of even length q1 a,b a,b q0
  • 10. Non-Deterministic finite automata For each pair of states and possible input chars, there may be more then one next state (as specified by the transitions), then the FA is non-deterministic finite automata. Conceptually, a nondeterministic FA can follow many paths simultaneously.
  • 11. Non-deterministic finite automata (NDFA) or (NFA) M = (Q,, , s, F) where Q= Finite set of states = Input alphabet  = Q x  2^Q s = Initial state F = Final state
  • 12. Difference between DFA and NFA qi qj qkq qi qj a a a DFA NFA a
  • 13. String having alphabet =(a,b) • String accept language start with a and end with a. q0 qf q1 a b a b a b q2
  • 14. Another Example Build a FA to accept strings of even length q0 q1 q2 a,b a,b  