Professional Documents
Culture Documents
CSC 361 Finite Automata 1
CSC 361 Finite Automata 1
0 0 1
q1
CSC 361 Finite Automata 4
Associating Language with the DFA
Machine configuration:
[q, ] where q Q,
Yields relation:
[q, a ] *
M [ ( q, a ), ]
Language:
{ | [q0 , ] M [q, ] q F }
* *
M (Q, , , q0 , F )
Q:Finite set of states
: Finite Alphabet
: Transition function
- a total function from Qx to Q
q0 :Initial/Start State
F :Set of final/accepting state
CSC 361 Finite Automata 6
Finite State Diagram
•A graphic representation of a finite automaton
Deterministic
: {a,b}
: (q0 , a) = qf Is the string a in the language?
(q0 , b) = qt
(qt , a) = qt (qt , b) = qt
(qf , a) = qf (qf , b) = q1
(q1 , a) = qf (q1 , b) = q1
a b
q0 qf a q1
a b
b
qt
a,b
Q {q0, q1, q 2} a b
{a , b} q0 q0 q1
F {q 2} q1 q0 q2
b
[Ea,Eb] [Ea,Ob]
b
a a a a
b
[Oa,Eb] [Oa,Ob]
b
L(A) = {w * : w is accepted by A}
Non-Deterministic
a b
q0 qf a q1
a b
b
qt
a,b
q0 q1 q2
q0 q1 q2
a,b
q0 q1 q2
CSC 361 Finite Automata 33