Professional Documents
Culture Documents
T^ G,
Paper I Subject Code: 31901 / Theorl' of Conrputer Science [UoV -2oL"
(b) Find Lcftmost derivation" Rightmost derivation arrd drarv Parsc tree for the
follolving gramnlar. Also clieck if dre granltrar is anrbiguoLls or not: l0
S-+aXbX, X-+aYlbYle , \'-+Xlciz
5. (a) Design a Turing Machine for the subtraction ol trvo positive integers (rn ,n) in
unary representation: if (m>n). ourtput X; else if (rn<n.), olrtput Y; elsc cutput Z on
the tape. l0
(b) Determine it there is a solution using PCP, for given tu,o lists of strings A and B:
,{:{00,001.1000}. B:{0.ll,Ull}. 10
13191 Page 1 of 1