SlideShare a Scribd company logo
Finite Automata:Finite Automata:
Two categories of Finite Automata:
 Deterministic Finite Automata (DFA)
The machine can exist in only one state at any
given time
 Non-deterministic Finite Automata (NFA)
The machine can exist in multiple states at the
same time
1
Deterministic FiniteDeterministic Finite
Automata (DFA):Automata (DFA):
A Deterministic Finite Automaton (DFA) is a finite
state machine that accepts/rejects finite strings
(sequence of symbols or alphabets) and perform
unique computation for each input string.
Deterministic refers to the uniqueness of the
computation.
2
Deterministic FiniteDeterministic Finite
Automata (DFA):Automata (DFA):
A DFA is defined by the 5-tuples:
{Q, ∑ , q0,F, δ }
It consists of:
Q ==> a finite set of states
∑ ==> a finite set of input symbols (alphabets)
q0 ==> a start state (q0 ∈∈ Q)
F ==> set of final states (subset of Q)
δ ==> a transition function, from Q x ∑ ==> Q
3
DFA Computation [1/3]:
 Let us consider an example, where a string is given
and have to calculate that the string is present in
the language or not ?
 Given, L is a Finite language;
∑ = { a, b }
L1 = Set of all strings starts with “a”
={ a, aa, ab, aaa,…. }
String, S = aab
The DFA for this calculation is given in next slide:
4
DFA Computation [2/3]:
5
A B
C
a
b
a,b
a,b
DFA Computation [3/3]:
 Steps:Steps:
Start from the “start state/ initial state”
For every input symbol in the string we do the
following:
Compute the next state from the current state, given the
current input symbol from the string and the transition
function
After all symbols in that strings are calculated, if the
current state is one of the final states (F) then we can say
the string will be accepted by that DFA;
 Otherwise, the string will be rejected.6
DFA Computation:
Let us consider another example, where a string is
given and have to calculate that the string is present
in the language or not ?
 Given, L is a infinite language;
∑ = { a, b }
L1 = Set of all strings starts with “a”
={ a, aa, ab, aaa,…. }
String, S = bba
Here, S = bba is not present in the language and it is invalid
operation for computation.
7
Construct a DFA:Construct a DFA:
Build a DFA for the following language:
L = {w | w is a binary string that contains 01 as a
substring}
Steps for building a DFA:
∑ = {0,1}
Decide on the states: Q
Designate start state and final state(s)
δ: Decide on the transitions
Final states == accepting states
Other states == non-accepting states
8
9
DFA for strings containingDFA for strings containing
{01}{01}
q0
start
q1
0
1 0,10
1
q2
Final
state
• Q = {q0,q1,q2}
• ∑ = {0,1}
• start state = q0
• F = {q2}
Transition Table
q2q2*q2
q2q1q1
q0q1q0
10
states
symbols
State Diagram
Construct a DFA:Construct a DFA:
Build a DFA for the following language:
W ∈∈{a,b}; |W | ≥ 2|W | ≥ 2
Solution:Solution:
∑∑ = {a,b}= {a,b}
L = {aa, ab, ba, bb, aaa…, bbb….}L = {aa, ab, ba, bb, aaa…, bbb….}
State Diagram:State Diagram:
10
A B Ca, b
a , b
a, b
Example of DFA:Example of DFA:
11
Example of DFA:Example of DFA:
12
13
End of SlidesEnd of Slides

More Related Content

What's hot

Regular Grammar
Regular GrammarRegular Grammar
Regular Grammar
Ruchika Sinha
 
NFA & DFA
NFA & DFANFA & DFA
NFA & DFA
Akhil Kaushik
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa
Sampath Kumar S
 
Pda
PdaPda
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
Samita Mukesh
 
Automata theory
Automata theoryAutomata theory
Automata theory
Pardeep Vats
 
push down automata
push down automatapush down automata
push down automata
Christopher Chizoba
 
finite automata
 finite automata finite automata
finite automata
sabiya sabiya
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
Farooq Mian
 
Types of grammer - TOC
Types of grammer - TOCTypes of grammer - TOC
Types of grammer - TOC
AbhayDhupar
 
Nondeterministic Finite Automata
Nondeterministic Finite AutomataNondeterministic Finite Automata
Nondeterministic Finite AutomataAdel Al-Ofairi
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,8neutron8
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
deepinderbedi
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Mohammad Ilyas Malik
 
TOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite AutomataTOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite Automata
Mohammad Imam Hossain
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR
Zahid Parvez
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
Ratnakar Mikkili
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
Radhakrishnan Chinnusamy
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
Mohammad Ilyas Malik
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 

What's hot (20)

Regular Grammar
Regular GrammarRegular Grammar
Regular Grammar
 
NFA & DFA
NFA & DFANFA & DFA
NFA & DFA
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa
 
Pda
PdaPda
Pda
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
push down automata
push down automatapush down automata
push down automata
 
finite automata
 finite automata finite automata
finite automata
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Types of grammer - TOC
Types of grammer - TOCTypes of grammer - TOC
Types of grammer - TOC
 
Nondeterministic Finite Automata
Nondeterministic Finite AutomataNondeterministic Finite Automata
Nondeterministic Finite Automata
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
 
TOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite AutomataTOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite Automata
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 

Viewers also liked

Principles of Compiler Design
Principles of Compiler DesignPrinciples of Compiler Design
Principles of Compiler Design
Babu Pushkaran
 
Hima1
Hima1Hima1
Hima1
Babul Miah
 
Nfa to-dfa
Nfa to-dfaNfa to-dfa
Nfa to-dfa
rsivashankari
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
Shiraz316
 
Cynthia Caceres Research Journal Article
Cynthia Caceres Research Journal ArticleCynthia Caceres Research Journal Article
Cynthia Caceres Research Journal ArticleCynthia Caceres
 
Blockchain Salesforce Executive Club 2016 09-07
Blockchain Salesforce Executive Club 2016 09-07Blockchain Salesforce Executive Club 2016 09-07
Blockchain Salesforce Executive Club 2016 09-07
Lykle de Vries
 
Adaptive marketing
Adaptive marketingAdaptive marketing
Adaptive marketing
Promodo
 
Social Media for Builders and Contractors
Social Media for Builders and ContractorsSocial Media for Builders and Contractors
Social Media for Builders and ContractorsKarenEman
 
822 tnda karen
822 tnda karen822 tnda karen
822 tnda karencmiguel7
 
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...specialbaek
 
8o mat 9o_mat_exerc
8o mat 9o_mat_exerc8o mat 9o_mat_exerc
8o mat 9o_mat_exerc
João Carlos Calado
 
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
pontiakilelapa ΠοντιακήΛέλαπα
 
5 Traits de Personnalité faciles à Développer pour vendre Plus
5 Traits de Personnalité faciles à Développer pour vendre Plus5 Traits de Personnalité faciles à Développer pour vendre Plus
5 Traits de Personnalité faciles à Développer pour vendre Plus
Dexem
 
9 de julio.pps
9 de julio.pps9 de julio.pps
9 de julio.pps
21693303
 
The Northern Renaissance
The Northern RenaissanceThe Northern Renaissance
The Northern Renaissance
Geoffrey Krawczyk
 
Beautiful Quotes To Live By
Beautiful Quotes To Live ByBeautiful Quotes To Live By
Beautiful Quotes To Live By
himanianand89
 
How to Prepare Your Social Program for Christmas in July
How to Prepare Your Social Program for Christmas in July How to Prepare Your Social Program for Christmas in July
How to Prepare Your Social Program for Christmas in July
Spredfast
 

Viewers also liked (19)

Principles of Compiler Design
Principles of Compiler DesignPrinciples of Compiler Design
Principles of Compiler Design
 
Hima1
Hima1Hima1
Hima1
 
Nfa to-dfa
Nfa to-dfaNfa to-dfa
Nfa to-dfa
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Cynthia Caceres Research Journal Article
Cynthia Caceres Research Journal ArticleCynthia Caceres Research Journal Article
Cynthia Caceres Research Journal Article
 
Blockchain Salesforce Executive Club 2016 09-07
Blockchain Salesforce Executive Club 2016 09-07Blockchain Salesforce Executive Club 2016 09-07
Blockchain Salesforce Executive Club 2016 09-07
 
Blue Ocean Strategy 3573
Blue Ocean Strategy 3573Blue Ocean Strategy 3573
Blue Ocean Strategy 3573
 
Adaptive marketing
Adaptive marketingAdaptive marketing
Adaptive marketing
 
Social Media for Builders and Contractors
Social Media for Builders and ContractorsSocial Media for Builders and Contractors
Social Media for Builders and Contractors
 
822 tnda karen
822 tnda karen822 tnda karen
822 tnda karen
 
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...
Preliminary Study of Indoor Ultrawideband Localization for At-Home Patient Mo...
 
8o mat 9o_mat_exerc
8o mat 9o_mat_exerc8o mat 9o_mat_exerc
8o mat 9o_mat_exerc
 
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
8.2.2015 Στέγνâν και Πογάζ’ η Στράτα μ’,Χαριτίδης Κ. Ιωάννης, Χαρίτον.
 
5 Traits de Personnalité faciles à Développer pour vendre Plus
5 Traits de Personnalité faciles à Développer pour vendre Plus5 Traits de Personnalité faciles à Développer pour vendre Plus
5 Traits de Personnalité faciles à Développer pour vendre Plus
 
9 de julio.pps
9 de julio.pps9 de julio.pps
9 de julio.pps
 
The Northern Renaissance
The Northern RenaissanceThe Northern Renaissance
The Northern Renaissance
 
Beautiful Quotes To Live By
Beautiful Quotes To Live ByBeautiful Quotes To Live By
Beautiful Quotes To Live By
 
How to Prepare Your Social Program for Christmas in July
How to Prepare Your Social Program for Christmas in July How to Prepare Your Social Program for Christmas in July
How to Prepare Your Social Program for Christmas in July
 
Career Path
Career PathCareer Path
Career Path
 

Similar to Finite automata

finiteautomata-160104102657.pptx
finiteautomata-160104102657.pptxfiniteautomata-160104102657.pptx
finiteautomata-160104102657.pptx
StudyvAbhi
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
AmayJaiswal4
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
Meghnadh
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
A. S. M. Shafi
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
ranjan317165
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
amara jyothi
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
Lec1.pptx
Lec1.pptxLec1.pptx
Lec1.pptx
ziadk6872
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton
Sampath Kumar S
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
MadniFareed1
 
Theory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite AcceptorsTheory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite Acceptors
Rushabh2428
 
Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
NAMRATA BORKAR
 
Finite Automata fgyft rtrt rr uuy y.pptx
Finite Automata fgyft rtrt  rr uuy y.pptxFinite Automata fgyft rtrt  rr uuy y.pptx
Finite Automata fgyft rtrt rr uuy y.pptx
AsadBaig49
 
MidtermI-review.pptx
MidtermI-review.pptxMidtermI-review.pptx
MidtermI-review.pptx
amara jyothi
 
Finals-review.pptx
Finals-review.pptxFinals-review.pptx
Finals-review.pptx
amara jyothi
 
flat unit1
flat unit1flat unit1
flat unit1
Janhavi Vishwanath
 
Finite automata
Finite automataFinite automata
Finite automata
ManishTadhiyal
 
Nondeterministic Finite Automat
Nondeterministic Finite AutomatNondeterministic Finite Automat
Nondeterministic Finite AutomatAdel Al-Ofairi
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition Diagram
Abdullah Jan
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
TANZINTANZINA
 

Similar to Finite automata (20)

finiteautomata-160104102657.pptx
finiteautomata-160104102657.pptxfiniteautomata-160104102657.pptx
finiteautomata-160104102657.pptx
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
 
Lec1.pptx
Lec1.pptxLec1.pptx
Lec1.pptx
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
 
Theory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite AcceptorsTheory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite Acceptors
 
Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
 
Finite Automata fgyft rtrt rr uuy y.pptx
Finite Automata fgyft rtrt  rr uuy y.pptxFinite Automata fgyft rtrt  rr uuy y.pptx
Finite Automata fgyft rtrt rr uuy y.pptx
 
MidtermI-review.pptx
MidtermI-review.pptxMidtermI-review.pptx
MidtermI-review.pptx
 
Finals-review.pptx
Finals-review.pptxFinals-review.pptx
Finals-review.pptx
 
flat unit1
flat unit1flat unit1
flat unit1
 
Finite automata
Finite automataFinite automata
Finite automata
 
Nondeterministic Finite Automat
Nondeterministic Finite AutomatNondeterministic Finite Automat
Nondeterministic Finite Automat
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition Diagram
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
 

More from Bipul Roy Bpl

Specification and complexity - algorithm
Specification and complexity - algorithmSpecification and complexity - algorithm
Specification and complexity - algorithm
Bipul Roy Bpl
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital Electronics
Bipul Roy Bpl
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Bipul Roy Bpl
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testing
Bipul Roy Bpl
 
DFD level-0 to 1
DFD level-0 to 1DFD level-0 to 1
DFD level-0 to 1
Bipul Roy Bpl
 
Garment management system
Garment management systemGarment management system
Garment management system
Bipul Roy Bpl
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
Bipul Roy Bpl
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
Bipul Roy Bpl
 

More from Bipul Roy Bpl (8)

Specification and complexity - algorithm
Specification and complexity - algorithmSpecification and complexity - algorithm
Specification and complexity - algorithm
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital Electronics
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testing
 
DFD level-0 to 1
DFD level-0 to 1DFD level-0 to 1
DFD level-0 to 1
 
Garment management system
Garment management systemGarment management system
Garment management system
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 

Recently uploaded

A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 

Recently uploaded (20)

A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 

Finite automata

  • 1. Finite Automata:Finite Automata: Two categories of Finite Automata:  Deterministic Finite Automata (DFA) The machine can exist in only one state at any given time  Non-deterministic Finite Automata (NFA) The machine can exist in multiple states at the same time 1
  • 2. Deterministic FiniteDeterministic Finite Automata (DFA):Automata (DFA): A Deterministic Finite Automaton (DFA) is a finite state machine that accepts/rejects finite strings (sequence of symbols or alphabets) and perform unique computation for each input string. Deterministic refers to the uniqueness of the computation. 2
  • 3. Deterministic FiniteDeterministic Finite Automata (DFA):Automata (DFA): A DFA is defined by the 5-tuples: {Q, ∑ , q0,F, δ } It consists of: Q ==> a finite set of states ∑ ==> a finite set of input symbols (alphabets) q0 ==> a start state (q0 ∈∈ Q) F ==> set of final states (subset of Q) δ ==> a transition function, from Q x ∑ ==> Q 3
  • 4. DFA Computation [1/3]:  Let us consider an example, where a string is given and have to calculate that the string is present in the language or not ?  Given, L is a Finite language; ∑ = { a, b } L1 = Set of all strings starts with “a” ={ a, aa, ab, aaa,…. } String, S = aab The DFA for this calculation is given in next slide: 4
  • 5. DFA Computation [2/3]: 5 A B C a b a,b a,b
  • 6. DFA Computation [3/3]:  Steps:Steps: Start from the “start state/ initial state” For every input symbol in the string we do the following: Compute the next state from the current state, given the current input symbol from the string and the transition function After all symbols in that strings are calculated, if the current state is one of the final states (F) then we can say the string will be accepted by that DFA;  Otherwise, the string will be rejected.6
  • 7. DFA Computation: Let us consider another example, where a string is given and have to calculate that the string is present in the language or not ?  Given, L is a infinite language; ∑ = { a, b } L1 = Set of all strings starts with “a” ={ a, aa, ab, aaa,…. } String, S = bba Here, S = bba is not present in the language and it is invalid operation for computation. 7
  • 8. Construct a DFA:Construct a DFA: Build a DFA for the following language: L = {w | w is a binary string that contains 01 as a substring} Steps for building a DFA: ∑ = {0,1} Decide on the states: Q Designate start state and final state(s) δ: Decide on the transitions Final states == accepting states Other states == non-accepting states 8
  • 9. 9 DFA for strings containingDFA for strings containing {01}{01} q0 start q1 0 1 0,10 1 q2 Final state • Q = {q0,q1,q2} • ∑ = {0,1} • start state = q0 • F = {q2} Transition Table q2q2*q2 q2q1q1 q0q1q0 10 states symbols State Diagram
  • 10. Construct a DFA:Construct a DFA: Build a DFA for the following language: W ∈∈{a,b}; |W | ≥ 2|W | ≥ 2 Solution:Solution: ∑∑ = {a,b}= {a,b} L = {aa, ab, ba, bb, aaa…, bbb….}L = {aa, ab, ba, bb, aaa…, bbb….} State Diagram:State Diagram: 10 A B Ca, b a , b a, b
  • 13. 13 End of SlidesEnd of Slides