NFA to DFA Conversion - PowerPoint PPT Presentation

About This Presentation
Title:

NFA to DFA Conversion

Description:

NFA to DFA Conversion Rabin and Scott (1959) Prasad L12NFA2DFA * Prasad L12NFA2DFA * Removing Nondeterminism By simulating all moves of an NFA- in parallel using a DFA. – PowerPoint PPT presentation

Number of Views:1242
Avg rating:3.0/5.0
Slides: 15
Provided by: cecsWrig9
Learn more at: http://cecs.wright.edu
Category:
Tags: dfa | nfa | conversion

less

Transcript and Presenter's Notes

Title: NFA to DFA Conversion


1
NFA to DFA Conversion
  • Rabin and Scott (1959)

2
Removing Nondeterminism
  • By simulating all moves of an NFA-? in parallel
    using a DFA.
  • ?-closure of a state is the set of states
    reachable using only the ?-transitions.

3
NFA-?
p2
?
p1
a
p3
q1
?
?
p5
?
q2
a
p4
4
(No Transcript)
5
Transition Function
6
(No Transcript)
7
Equivalence Construction
  • Given NFA-? M, construct a DFA DM such that L(M)
    L(DM).
  • Observe that
  • A node of the DFA Set of nodes of NFA-?
  • Transition of the DFA Transition among set of
    nodes of NFA- ?

8
q1,,qn
p1,,pm
a
For every pi, there exists qj such that
9
Start state of DFA
Final/Accepting state of DFA All subsets of
states of NFA-? that contain an accepting state
of the NFA-?
Dead state of DFA
10
Example
a
b
q1
a
q0
acb
?
a
q2
c
11
q0,q1,q2
a
b
c
f
12
a
b
q1
c
q1,q2
a,b,c
13
c
q1
b
q1,q2
a
f
14
Equivalent DFA
a
a
q0
q0,q1,q2
c
c
q1,q2
b
b
b,c
b
a,c
q1
f
a
a,b,c
Write a Comment
User Comments (0)
About PowerShow.com