Beruflich Dokumente
Kultur Dokumente
DFA
CSC 361
Called NFA-
L1 U L 2
(union)
L1 L2
(concatenation)
L1 *
(Kleene star)
CSC 361
M1
M2
L(M)*
L(M1) U L(M2)
M1
M2
L(M1) L(M2)
CSC 361
CSC 361
DFA vs NFA
Deterministic vs nondeterministic
CSC 361
DFA vs NFA
Deterministic vs nondeterministic
CSC 361
Removing
Nondeterminism
NFA-
p2
p1
q1
p3
q2
p5
a
p4
Closure
Selected closures
q1: {q1,q2}
p1: {p1,p2,p3}
q2: {q2}
CSC 361
Equivalence Construction
Observe that
CSC 361
10
- closure ({q0 })
11
Example
a
q1
q0
q2
c
CSC 361
12
Example
Identify -closures
q0: {q0}
q1: {q1}
q2: {q1,q2}
CSC 361
13
Example
Identify transitions
a: {q0,q1,q2}
Next slide
Find destinations from any node in the set for each of the
three alphabet symbols
Subsequent slide
CSC 361
14
b
c
CSC 361
{q0,q1,q2}
15
{q0,q1,q2}
{q1}
c
b
c
{q1,q2}
a,b,c
CSC 361
16
a,c
c
b
{q1,q2}
CSC 361
{q1}
17
Equivalent DFA
a
{q0}
{q0,q1,q2}
b
b,c
a,c
c
b
{q1,q2}
a
{q1}
a,b,c
CSC 361
18
CSC 361
19
Limitations of Finite
Automata
L(M)=(aibi | i n)
L(M)=(aibi | i > 0)
CSC 361
20
p1
q1
p3
q2
p5
a
p4
CSC 361
21