SlideShare a Scribd company logo
2
Most read
7
Most read
8
Most read
KANIMOZHI S
BE(CSE)
q1q0
q2
FS
a
b
simple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilon
Step1:
want to take a epsilon closure for all states
because it contains empty states
Step2:
Then check the inputs with all states .while
checking the with the input it will produce new
some states
Step3:
Then construct a transition table for the
respective outputs.
Step1:
Epsilon closure of q0={q0}
Because it not move to next state with epsilon
closure
For taking epsilon closure it contains the current
state then new state
Epsilon closure of q1={q1,q2}
Here it contains two state because the q1 is move
to next state with epsilon closure.
Epsilon closure of q2={q2}
Epsilon closure (q0)={q0}
Epsilon closure(q1)={q1,q2}
Epsilon closure(q2)={q2}
’(q0,a)=epsilon closure( (q0,a))
=e-closure( (q0,epsilon),a)
=e-closure(e-closure(q0),a)[here e-closure of q0 is
only q0 so we can take e-closure of q0 is q0 alone]
=e-closure(q0,a)
=e-closure(q1) [finally the state q1 contains two
states q1,q2 as e-closure so we can take it]
={q1,q2}
’(q0,b)=epsilon closure( (q0,b))
=e-closure( (q0,epsilon),b)
=e-closure(e-closure(q0),b)[here e-closure of q0 is
only q0 so we can take e-closure of q0 is q0 alone]
=e-closure(q0,b)[here no input for q0,b so simply
write it as ]
=e-closure( )[no e-closure for so no states]
={ }
’(q1,a)=epsilon closure( (q1,a))
=e-closure( (q1,epsilon),a)
=e-closure(e-closure(q1),a)[here e-closure of q1 is q1,q2 so we
can take e-closure of q1 is q1,q2]
= e-closure( (q1,q2),a)
= e-closure((q1,a)U(q2,a))
=e-closure( U ) [finally from the two states there is no input so
that is empty]
={ }
’(q1,b)=epsilon closure( (q1,b))
=e-closure( (q1,epsilon),b)
=e-closure(e-closure(q1,q2),b)[here e-closure of q1 is q1,q2 so we
can take e-closure of q1 is q1q2 alone]
=e-closure(q1,b)U(q2,b)[here for input (q1,b)is (q2,b) is q2 so
simply write as ( Uq2]
=e-closure(q2)[ e-closure for q2 is q2]
={q2}
’(q2,a)=epsilon closure( (q2,a))
=e-closure( (q2,epsilon),a)
=e-closure(e-closure(q2),a)[here e-closure of q2 is q2
alone so take q2 only]
= e-closure( (q2),a)
= e-closure( )
=e-closure( ) [finally from the state there is no input
so that is empty]
={ }
’(q2,b)=epsilon closure( (q2,b))
=e-closure( (q2,epsilon),b)
=e-closure(e-closure(q2),b)[here e-closure of q2 is q2 so
we can take e-closure of q2 is q2 alone]
=e-closure(q2,b)[here for input (q2,b)is q2 so simply
write as (q2)]
=e-closure(q2)[ e-closure for q2 is q2]
={q2}
TRANSITION TABLE
a b
q0 (q1,q2)
q1
q2 q2
In the table the row it will denotes about
the states
The column it will denotes about the input
By the input checking process we can
construct the table
TRANSITION DIAGRAM
b
a b
q0 q1 q2
a
We can construct a transition
diagram using the transition table
simple problem to convert NFA with epsilon to without epsilon

More Related Content

PPTX
Automata Theory - Turing machine
PDF
Artificial Intelligence Notes Unit 2
PPTX
Turing machine
PDF
Automata theory
PPTX
RECURSIVE DESCENT PARSING
PPT
NFA or Non deterministic finite automata
PPTX
Types of grammer - TOC
Automata Theory - Turing machine
Artificial Intelligence Notes Unit 2
Turing machine
Automata theory
RECURSIVE DESCENT PARSING
NFA or Non deterministic finite automata
Types of grammer - TOC

What's hot (20)

PPT
Finite automata examples
PPTX
Church Turing Thesis
PPTX
Introduction TO Finite Automata
PPTX
Minimization of DFA.pptx
PPTX
Turing machine-TOC
PPTX
CFG to CNF
PPT
Recursion tree method
PPTX
LINEAR BOUNDED AUTOMATA (LBA).pptx
PPTX
All pair shortest path
PPTX
8 queens problem using back tracking
PPT
Chapter 5 Syntax Directed Translation
PPTX
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
PPTX
Equivalence of DFAs and NFAs.pptx
PPTX
Regular Expression to Finite Automata
PPTX
NFA & DFA
PPTX
Loop optimization
PPT
Np cooks theorem
PPTX
Ambiguous & Unambiguous Grammar
PDF
Deterministic Finite Automata (DFA)
PDF
Syntax Directed Definition and its applications
Finite automata examples
Church Turing Thesis
Introduction TO Finite Automata
Minimization of DFA.pptx
Turing machine-TOC
CFG to CNF
Recursion tree method
LINEAR BOUNDED AUTOMATA (LBA).pptx
All pair shortest path
8 queens problem using back tracking
Chapter 5 Syntax Directed Translation
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Equivalence of DFAs and NFAs.pptx
Regular Expression to Finite Automata
NFA & DFA
Loop optimization
Np cooks theorem
Ambiguous & Unambiguous Grammar
Deterministic Finite Automata (DFA)
Syntax Directed Definition and its applications
Ad

Similar to simple problem to convert NFA with epsilon to without epsilon (17)

PPTX
Automata theory - NFA ε to DFA Conversion
PPTX
Theory of Automata and formal languages unit 1
PPT
FiniteAutomata-DFA and NFA from Theory of Computation.ppt
PPT
FiniteAutomata (1).ppt
PPT
FiniteAutomata.ppt
PDF
Formal Languages and Automata Theory Unit 1
PDF
Finite automata
PDF
Inmo 2010 problems and solutions
PPTX
Materi 3 Finite State Automata
PDF
Teori automata lengkap
PPT
Finite automata
PDF
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
PPT
0227 regularlanguages
DOCX
Deterministic finite automata
PDF
Prin digcommselectedsoln
PPT
NFAvsDFA.ppt
Automata theory - NFA ε to DFA Conversion
Theory of Automata and formal languages unit 1
FiniteAutomata-DFA and NFA from Theory of Computation.ppt
FiniteAutomata (1).ppt
FiniteAutomata.ppt
Formal Languages and Automata Theory Unit 1
Finite automata
Inmo 2010 problems and solutions
Materi 3 Finite State Automata
Teori automata lengkap
Finite automata
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
0227 regularlanguages
Deterministic finite automata
Prin digcommselectedsoln
NFAvsDFA.ppt
Ad

Recently uploaded (20)

PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
DOCX
573137875-Attendance-Management-System-original
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
composite construction of structures.pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Project quality management in manufacturing
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Digital Logic Computer Design lecture notes
PPTX
Sustainable Sites - Green Building Construction
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
Lecture Notes Electrical Wiring System Components
Foundation to blockchain - A guide to Blockchain Tech
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
573137875-Attendance-Management-System-original
R24 SURVEYING LAB MANUAL for civil enggi
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
composite construction of structures.pdf
CH1 Production IntroductoryConcepts.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
UNIT 4 Total Quality Management .pptx
Project quality management in manufacturing
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Digital Logic Computer Design lecture notes
Sustainable Sites - Green Building Construction
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding
Operating System & Kernel Study Guide-1 - converted.pdf

simple problem to convert NFA with epsilon to without epsilon

  • 5. Step1: want to take a epsilon closure for all states because it contains empty states Step2: Then check the inputs with all states .while checking the with the input it will produce new some states Step3: Then construct a transition table for the respective outputs.
  • 6. Step1: Epsilon closure of q0={q0} Because it not move to next state with epsilon closure For taking epsilon closure it contains the current state then new state Epsilon closure of q1={q1,q2} Here it contains two state because the q1 is move to next state with epsilon closure. Epsilon closure of q2={q2}
  • 7. Epsilon closure (q0)={q0} Epsilon closure(q1)={q1,q2} Epsilon closure(q2)={q2}
  • 8. ’(q0,a)=epsilon closure( (q0,a)) =e-closure( (q0,epsilon),a) =e-closure(e-closure(q0),a)[here e-closure of q0 is only q0 so we can take e-closure of q0 is q0 alone] =e-closure(q0,a) =e-closure(q1) [finally the state q1 contains two states q1,q2 as e-closure so we can take it] ={q1,q2} ’(q0,b)=epsilon closure( (q0,b)) =e-closure( (q0,epsilon),b) =e-closure(e-closure(q0),b)[here e-closure of q0 is only q0 so we can take e-closure of q0 is q0 alone] =e-closure(q0,b)[here no input for q0,b so simply write it as ] =e-closure( )[no e-closure for so no states] ={ }
  • 9. ’(q1,a)=epsilon closure( (q1,a)) =e-closure( (q1,epsilon),a) =e-closure(e-closure(q1),a)[here e-closure of q1 is q1,q2 so we can take e-closure of q1 is q1,q2] = e-closure( (q1,q2),a) = e-closure((q1,a)U(q2,a)) =e-closure( U ) [finally from the two states there is no input so that is empty] ={ } ’(q1,b)=epsilon closure( (q1,b)) =e-closure( (q1,epsilon),b) =e-closure(e-closure(q1,q2),b)[here e-closure of q1 is q1,q2 so we can take e-closure of q1 is q1q2 alone] =e-closure(q1,b)U(q2,b)[here for input (q1,b)is (q2,b) is q2 so simply write as ( Uq2] =e-closure(q2)[ e-closure for q2 is q2] ={q2}
  • 10. ’(q2,a)=epsilon closure( (q2,a)) =e-closure( (q2,epsilon),a) =e-closure(e-closure(q2),a)[here e-closure of q2 is q2 alone so take q2 only] = e-closure( (q2),a) = e-closure( ) =e-closure( ) [finally from the state there is no input so that is empty] ={ } ’(q2,b)=epsilon closure( (q2,b)) =e-closure( (q2,epsilon),b) =e-closure(e-closure(q2),b)[here e-closure of q2 is q2 so we can take e-closure of q2 is q2 alone] =e-closure(q2,b)[here for input (q2,b)is q2 so simply write as (q2)] =e-closure(q2)[ e-closure for q2 is q2] ={q2}
  • 11. TRANSITION TABLE a b q0 (q1,q2) q1 q2 q2
  • 12. In the table the row it will denotes about the states The column it will denotes about the input By the input checking process we can construct the table
  • 14. We can construct a transition diagram using the transition table