



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CMSC 330 2
CMSC 330 3
CMSC 330 4
“String” “String”
“String”
“String”
“String”
“String”
Yes
No
CMSC 330 5
Machine starts in start or initial state Repeat until the end of the string is reached
States
Start state (^) Final state
Transition on 1
CMSC 330 6
CMSC 330 7
accepted
CMSC 330 8
not accepted
CMSC 330 9
CMSC 330 10
(a,b,c notation shorthand for three self loops)
acba S3 N
ε S0 Y
aa S0 Y
aabbb S1 Y
bbc S2 Y
acc S2 Y
aabcc S2 Y
accepts ?
state at end
string
CMSC 330 11
CMSC 330 12
is short for
CMSC 330 19
δ 0 1
CMSC 330 20
a a
CMSC 330 21
CMSC 330 22
CMSC 330 23
CMSC 330 24
CMSC 330 25
can transform
can transform
can transform
CMSC 330 26
= ({a}, {S0, S1}, S0, {S1}, {(S0, a, S1)} )
CMSC 330 27
<ε> = (ε, {S0}, S0, {S0}, ∅)
CMSC 330 28
CMSC 330 29
CMSC 330 30