Documente Academic
Documente Profesional
Documente Cultură
MS080400040
CS701
Question No: 1
:Formal Description
We are going to design a Turing Machine M that decides the language L =
{0n1n: n1}. This language consist of the strings starting with 0 and
.having equal number of 0's and 1's
Some valid strings that are in this language are: { 01,0011,000111, }
Some strings that are not in the language are: {001, 0001111, 00000,
.}
Now we have understood our language for which we have to desing the
.Turing machine. We will define 7 members of the machine
M = {Q , , , qa ,qr , q0, }
:Now we will define each member of the machine one by one
1234567-
Current
State
q0
q0
q1
q1
q1
q2
q2
q2
q2
1,
Tape 1
Tape 2
Repla
ce
With
0
1
1
1
1
1
1
Symb
ol
2,
Symb
Move
ol
R
S
R
S
S
S
Repla
ce
With
0
Move
R
R
R
S
L
L
S
S
S
Next
State
q1
qr2
q1
qr1
q2
q2
qr2
qr1
qa
Question No: 2