TOC Unit 5 QB
TOC Unit 5 QB
Q.6 Construct a TM for checking ifa given set of parentheses are well-formed .Check the
acceptance of string (00
Construct a TM that replaces every occurrence of abb by baa.for all strings over fa,b}
Q.7
Constructa Turing machine Mto recognize the language {a" b' c"|n >=1}
Q.8
Construct a Turing machine to obtain the reverse string from the given input string over
Q.9 E= {a, b}*
Given twO unary numbers, find the Greatest Common Divisor (GCD) of the two numbers.
Q.10
|).39
Compare between TM and FA
Construct a Turing Machine for checking if a given set of parentheses are wellformed
Q.40
Design a TM that accepts the language of odd integers written in binary.
Q.41
Q.42 Construct a Turing machine to compute 'n mod 2' where n is represented in the tape in
unary form consisting of only 0's
Q.43 Construct a NTM to accept a Language L= WWwhere wis a string over {a,b}
Q.44 List and explain any two variants of Turing Machine. How is their power cquivalent to
that of a Turing Machine -explain.
Q.45 Explain in brief- Recursive Languages and Recursively Enumerable Languages
Q.46 Design a Turing Machine that reads a string representing a binary number
and erases all leading 0's in the string. However, if the string comprises of
only 0's it keeps one O
Q.47 Here transition function of Non deterministic Turing Machine
M({Qo.QiQ:}. {0.1}.{0,1.B}6.qo,B.42}) is given,
0 1 B
Q0 (Qo1,R) (Q0,R)
(Q10,R), (Q11,R), (Q B,R)
(Qo0,L) (Qo1,L)
Q