Consider
the finite state, machine with the following characteristics:
Set
of states: Q = {q0, q1, q2, q3}
ALPHABET:
Where the input string comes from ∑ = {a, b}
INITIAL STATE: Where the start head
starts at first element q0 = {q0}
SET OF CAPITAL/ACCEPT STATE: if we stop
there we accept the input the input F = {q0, q1, q2}
TRANSITION FUNCTION δ: Rules how to form state. The
following are the transition rules:
From state q0
and with input a, go to state q0
δ (q0, a) = q0
From state q0
and with input b, go to state q1
δ (q0, b) = q1
From state q1
and with input a, go to state q2
δ (q1, a) = q0
From state q1
and with input b, go to state q0
δ (q1, a) = q2
From state q2
and with input a, go to state q0
δ (q2, a) = q0
From state q2
and with input b, go to state q0
δ (q2, b) = q2
From state q3
and with any input go to state q3
δ (q3, a) = q3
(or) δ (q3, b) = q3
The
transitions are given in the following table and diagram.
Transition table:
|
States
|
Parent
inputs
|
|
|
A
|
b
|
|
|
è *q0
|
q0
|
q1
|
|
*q1
|
q0
|
q2
|
|
*q2
|
q0
|
q3
|
|
q3
|
q3
|
q3
|

No comments:
Post a Comment