Finite Automata: Automaton
Finite Automata: Automaton
Output
“Accept”
Finite
or
A utomaton
“ Reject”
q5
a,b
b a a b
initial
state q0 a q1 b q2 b q3 a q 4
q5
a,b
b a a b
q0 a q1 b q2 b q3 a q 4
q5
a,b
b a a b
q0 a q1 b q2 b q3 a q 4
a b b a
a,b
q5
a,b
b a a b
q0 a q1 b q2 b q3 a q 4
a b b a
a,b
q5
a,b
b a a b
q0 a q1 b q2 b q3 a q 4
a b b a
a,b
q5
a,b
b a a b
q0 a q1 b q2 b q3 a q 4
a b b a
a,b
q5
a,b
b a a b
q 0
a q 1
b q 2
b q 3
a q 4 Output: Ac ce p te d
/baa+!/
baa!
All RE can be represented as baaa!
baaaa!
FSA baaaaa
!
....
a
b a a !
q0
q0 q1
q1 q2 q3 q4
State Input
a b a !
b a a ! 0(null) 1 Ø Ø
1 Ø 2 Ø
q0 q1 q2 q3 q4
2 Ø 3 Ø
3 Ø 3 4
4: Ø Ø Ø
... ... ... b a a a ! ... ... ... ... ... ... ... ...
b a a !
q0 q1 q2 q
3 q4
! ! b
b ! b !
b
?
a
c a
qf
Dictionary Lookup
Spelling Conventions
Approximate methods
Has right set of letters (any order).
Has right sounds (Soundex).
Random (suprimposed) coding (Unix Spell)
Hashing
Finite-state automata
Composition:
If T1 is a transducer from I1 to O1 and T2 is a transducer
from I2 to O2, then T1 T2 is a transducer from I1 to O2.
Composition:
If T1 is a transducer from I1 to O1 and T2 is a transducer
from I2 to O2, then T1 T2 is a transducer from I1 to O2.