SlideShare a Scribd company logo
1 of 22
Convert RE to DFA
1
a
2 b
4
5 6
c
7
𝜀
𝜀
𝜀
8
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
Dstates
𝜀
Transition table of DFA
Given RE = (ab+c)*
Equivalent NFA-ε is:
Convert RE to DFA
𝜀
NFA States
DFA
State
Next State
a b c
Dstates
Transition table of DFA
Initial state of NFA is {9}
Ε-closure(9)={9,7,1,5,10} ------
Where A is the initial state of DFA
A
Mark state A
1
a
2 b
4
5 6
c
7
𝜀
𝜀
𝜀
8
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A   
Dstates
𝜀
Next need to find transition of (A,a) (A,b) (A,c)
Compute 𝜀-closure(move(A, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A
Dstates
𝜀
δ( A,a) = δ( (9,7,1,5,10),a) = {2}
=Ε-closure(2) = {2} ------ B
Compute 𝜀-closure(move(A, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B
{2} B
Dstates
𝜀
δ( A,a) = δ( (9,7,1,5,10),a) = {2}
Ε-closure(2) = {2} ------ B
Compute 𝜀-closure(move(A, b))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B -
{2} B
Dstates
𝜀
Compute 𝜀-closure(move(A, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B -
{2} B
Dstates
𝜀
δ( A,c) = δ( (9,7,1,5,10),c) = {6}
Ε-closure(6) = {6,8,10,7,1,5} ------ C

Mark move(A, c)) C
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B
{6,8,10,7,1,5} C
Dstates
𝜀
Compute 𝜀-closure(move(B, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B -
{6,8,10,7,1,5} C
Dstates
𝜀

Compute 𝜀-closure(move(B, b))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B -
{6,8,10,7,1,5} C
Dstates
𝜀
δ( B,b) = δ( (2,b) = {4}
Ε-closure(4) = {4,8,10,7,1,5} ------ D

Mark (move(B, b))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A  B - C
{2} B  - D
{6,8,10,7,1,5} C
{4,8,7,1,5,10} D
Dstates
𝜀
Mark - (move(B, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C
{4,8,7,1,5,10} D
Dstates
𝜀
Compute 𝜀-closure(move(C, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B
{4,8,7,1,5,10} D
Dstates
𝜀
B
δ( C,a) = δ( (6,8,10,7,1,5)),a) = {2}
Ε-closure(2) = {2} ------
Mark (move(C, b))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B -
{4,8,7,1,5,10} D
Dstates
𝜀
Compute 𝜀-closure(move(C, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B -
{4,8,7,1,5,10} D
Dstates
𝜀
δ( C,c) = δ( (6,8,10,7,1,5)),a) = {6}
Ε-closure(6) = {6,8,10,7,1,5} ------ C
Mark (move(C, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D
Dstates
𝜀
Compute 𝜀-closure(move(D, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D
Dstates
𝜀
δ( D,a) = δ( (6,8,10,7,1,5)),a) = {2}
Ε-closure(2) = {2} ------ B
Mark (move(D, a))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D B
Dstates
𝜀
Mark (move(D, b))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D B -
Dstates
𝜀
Compute 𝜀-closure(move(D, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D B
Dstates
𝜀
C
( D,c) = δ( (4,8,7,1,5,10)),c) = {6}
Ε-closure(6) = {6,8,10,7,1,5} ------
Mark (move(D, c))
1
a
2 b
4
5 6
c
7
𝜀
𝜀
8
𝜀
𝜀
9 𝜀 𝜀
𝜀
10
NFA States
DFA
State
Next State
a b c
{9,7,1,5,10} A B - C
{2} B - D -
{6,8,10,7,1,5} C B - C
{4,8,7,1,5,10} D B - C
Dstates
𝜀
Resultant DFA is
a
B
c
a b
A a D
c
C
c
Transition table Transition diagram is

More Related Content

What's hot

Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
minimization the number of states of DFA
minimization the number of states of DFAminimization the number of states of DFA
minimization the number of states of DFAArchana Gopinath
 
NFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushikNFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushikMudsaraliKhushik
 
Fuzzy logic-introduction
Fuzzy logic-introductionFuzzy logic-introduction
Fuzzy logic-introductionWBUTTUTORIALS
 
Theory of computing
Theory of computingTheory of computing
Theory of computingRanjan Kumar
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmHema Kashyap
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHMMd Mosharof Hosen
 
stacks in algorithems and data structure
stacks in algorithems and data structurestacks in algorithems and data structure
stacks in algorithems and data structurefaran nawaz
 
Dinive conquer algorithm
Dinive conquer algorithmDinive conquer algorithm
Dinive conquer algorithmMohd Arif
 
Amortized Analysis of Algorithms
Amortized Analysis of Algorithms Amortized Analysis of Algorithms
Amortized Analysis of Algorithms sathish sak
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFAkunj desai
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prologRakhi Sinha
 
Array operations
Array operationsArray operations
Array operationsRazzaaa
 
TOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite AutomataTOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite AutomataMohammad Imam Hossain
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notationsEhtisham Ali
 
Generating code from dags
Generating code from dagsGenerating code from dags
Generating code from dagsindhu mathi
 

What's hot (20)

Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
minimization the number of states of DFA
minimization the number of states of DFAminimization the number of states of DFA
minimization the number of states of DFA
 
NFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushikNFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushik
 
Fuzzy logic-introduction
Fuzzy logic-introductionFuzzy logic-introduction
Fuzzy logic-introduction
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHM
 
stacks in algorithems and data structure
stacks in algorithems and data structurestacks in algorithems and data structure
stacks in algorithems and data structure
 
Dinive conquer algorithm
Dinive conquer algorithmDinive conquer algorithm
Dinive conquer algorithm
 
Amortized Analysis of Algorithms
Amortized Analysis of Algorithms Amortized Analysis of Algorithms
Amortized Analysis of Algorithms
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
 
Array operations
Array operationsArray operations
Array operations
 
Nfa vs dfa
Nfa vs dfaNfa vs dfa
Nfa vs dfa
 
TOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite AutomataTOC 4 | Non-deterministic Finite Automata
TOC 4 | Non-deterministic Finite Automata
 
Optimal binary search tree dynamic programming
Optimal binary search tree   dynamic programmingOptimal binary search tree   dynamic programming
Optimal binary search tree dynamic programming
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Generating code from dags
Generating code from dagsGenerating code from dags
Generating code from dags
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 

Similar to Convert RE (ab+c)* to DFA

4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...
4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...
4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...venkatapranaykumarGa
 
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007
Sesión de aprendizaje de Radicación Algebra pre u ccesa007Demetrio Ccesa Rayme
 
Running Free with the Monads
Running Free with the MonadsRunning Free with the Monads
Running Free with the Monadskenbot
 
Lecture 17- F19.pdf
Lecture 17- F19.pdfLecture 17- F19.pdf
Lecture 17- F19.pdfAbrar11535
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1zukun
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfSergioUlisesRojasAla
 
Mid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docxMid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docxannandleola
 
Ch03 lexical analysis nfa_2_dfa_2019
Ch03 lexical analysis nfa_2_dfa_2019Ch03 lexical analysis nfa_2_dfa_2019
Ch03 lexical analysis nfa_2_dfa_2019Bushra Al-Anesi
 
Lecture 03 lexical analysis
Lecture 03 lexical analysisLecture 03 lexical analysis
Lecture 03 lexical analysisIffat Anjum
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfAdiseshaK
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfAdiseshaK
 
pot fracciones log etc.pdf
pot fracciones log etc.pdfpot fracciones log etc.pdf
pot fracciones log etc.pdfadelaleston
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automatonSampath Kumar S
 

Similar to Convert RE (ab+c)* to DFA (20)

4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...
4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...
4-Regular expression to Deterministic Finite Automata (Direct method)-05-05-2...
 
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
 
Running Free with the Monads
Running Free with the MonadsRunning Free with the Monads
Running Free with the Monads
 
Lecture 17- F19.pdf
Lecture 17- F19.pdfLecture 17- F19.pdf
Lecture 17- F19.pdf
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 1
 
kmaps
 kmaps kmaps
kmaps
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
 
Mid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docxMid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docx
 
Ch03 lexical analysis nfa_2_dfa_2019
Ch03 lexical analysis nfa_2_dfa_2019Ch03 lexical analysis nfa_2_dfa_2019
Ch03 lexical analysis nfa_2_dfa_2019
 
Lecture 03 lexical analysis
Lecture 03 lexical analysisLecture 03 lexical analysis
Lecture 03 lexical analysis
 
Strongly Connected Components
Strongly Connected Components Strongly Connected Components
Strongly Connected Components
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdf
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 
pot fracciones log etc.pdf
pot fracciones log etc.pdfpot fracciones log etc.pdf
pot fracciones log etc.pdf
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton
 

More from Akila Krishnamoorthy

More from Akila Krishnamoorthy (13)

Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 
Automata theory -RE to NFA-ε
Automata theory -RE to  NFA-εAutomata theory -RE to  NFA-ε
Automata theory -RE to NFA-ε
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Automata theory - NFA to DFA Conversion
Automata theory - NFA to DFA ConversionAutomata theory - NFA to DFA Conversion
Automata theory - NFA to DFA Conversion
 
Automata theory -- NFA and DFA construction
Automata theory -- NFA and DFA  constructionAutomata theory -- NFA and DFA  construction
Automata theory -- NFA and DFA construction
 
Intro to automata theory
Intro to automata theoryIntro to automata theory
Intro to automata theory
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfa
 
Automata theory - CFG and normal forms
Automata theory - CFG and normal formsAutomata theory - CFG and normal forms
Automata theory - CFG and normal forms
 
Slr parser
Slr parserSlr parser
Slr parser
 
CLR AND LALR PARSER
CLR AND LALR PARSERCLR AND LALR PARSER
CLR AND LALR PARSER
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
 
Keypoints c strings
Keypoints   c stringsKeypoints   c strings
Keypoints c strings
 

Recently uploaded

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 

Recently uploaded (20)

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 

Convert RE (ab+c)* to DFA

  • 1. Convert RE to DFA 1 a 2 b 4 5 6 c 7 𝜀 𝜀 𝜀 8 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c Dstates 𝜀 Transition table of DFA Given RE = (ab+c)* Equivalent NFA-ε is:
  • 2. Convert RE to DFA 𝜀 NFA States DFA State Next State a b c Dstates Transition table of DFA Initial state of NFA is {9} Ε-closure(9)={9,7,1,5,10} ------ Where A is the initial state of DFA A
  • 3. Mark state A 1 a 2 b 4 5 6 c 7 𝜀 𝜀 𝜀 8 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A    Dstates 𝜀 Next need to find transition of (A,a) (A,b) (A,c)
  • 4. Compute 𝜀-closure(move(A, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A Dstates 𝜀 δ( A,a) = δ( (9,7,1,5,10),a) = {2} =Ε-closure(2) = {2} ------ B
  • 5. Compute 𝜀-closure(move(A, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B {2} B Dstates 𝜀 δ( A,a) = δ( (9,7,1,5,10),a) = {2} Ε-closure(2) = {2} ------ B
  • 6. Compute 𝜀-closure(move(A, b)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - {2} B Dstates 𝜀
  • 7. Compute 𝜀-closure(move(A, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - {2} B Dstates 𝜀 δ( A,c) = δ( (9,7,1,5,10),c) = {6} Ε-closure(6) = {6,8,10,7,1,5} ------ C 
  • 8. Mark move(A, c)) C 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B {6,8,10,7,1,5} C Dstates 𝜀
  • 9. Compute 𝜀-closure(move(B, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - {6,8,10,7,1,5} C Dstates 𝜀 
  • 10. Compute 𝜀-closure(move(B, b)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - {6,8,10,7,1,5} C Dstates 𝜀 δ( B,b) = δ( (2,b) = {4} Ε-closure(4) = {4,8,10,7,1,5} ------ D 
  • 11. Mark (move(B, b)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A  B - C {2} B  - D {6,8,10,7,1,5} C {4,8,7,1,5,10} D Dstates 𝜀
  • 12. Mark - (move(B, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C {4,8,7,1,5,10} D Dstates 𝜀
  • 13. Compute 𝜀-closure(move(C, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B {4,8,7,1,5,10} D Dstates 𝜀 B δ( C,a) = δ( (6,8,10,7,1,5)),a) = {2} Ε-closure(2) = {2} ------
  • 14. Mark (move(C, b)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - {4,8,7,1,5,10} D Dstates 𝜀
  • 15. Compute 𝜀-closure(move(C, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - {4,8,7,1,5,10} D Dstates 𝜀 δ( C,c) = δ( (6,8,10,7,1,5)),a) = {6} Ε-closure(6) = {6,8,10,7,1,5} ------ C
  • 16. Mark (move(C, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D Dstates 𝜀
  • 17. Compute 𝜀-closure(move(D, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D Dstates 𝜀 δ( D,a) = δ( (6,8,10,7,1,5)),a) = {2} Ε-closure(2) = {2} ------ B
  • 18. Mark (move(D, a)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D B Dstates 𝜀
  • 19. Mark (move(D, b)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D B - Dstates 𝜀
  • 20. Compute 𝜀-closure(move(D, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D B Dstates 𝜀 C ( D,c) = δ( (4,8,7,1,5,10)),c) = {6} Ε-closure(6) = {6,8,10,7,1,5} ------
  • 21. Mark (move(D, c)) 1 a 2 b 4 5 6 c 7 𝜀 𝜀 8 𝜀 𝜀 9 𝜀 𝜀 𝜀 10 NFA States DFA State Next State a b c {9,7,1,5,10} A B - C {2} B - D - {6,8,10,7,1,5} C B - C {4,8,7,1,5,10} D B - C Dstates 𝜀
  • 22. Resultant DFA is a B c a b A a D c C c Transition table Transition diagram is