Flat Mid2 CSW
Flat Mid2 CSW
Flat Mid2 CSW
SET-1
1. Construct a PDA to accept the language L ={a n b2n | n >= 1} by a final state. Draw
the graphical representation of the PDA. Also show the moves made by the PDA for the
string aaabbbbbb. ?
2. Construct a Turing Machine that accepts the language L = {0 n1n | n ≥1}. Give the
transition diagram for the Turing Machine obtained and also show the moves made by the
Turing machine for the string 000111. ?
3. Explain about post correspondence problem?
4. Write the closure properties and decision properties of CFL?
5. Construct the CFG for the PDA M =({q0,q1}, {0,1}, {R,Z0}, δ, q0, Z0, Φ )
And δ is given by
δ(q0,1,Z0)=(q0,RZ0)
δ(q0,1,R)=(q0,RR)
δ(q0,0,R)=(q1,R)
δ(q1,0, Z0)=(q0, Z0)
δ(q0,ε, Z0)=(q0,ε)
δ(q1,1,R)=(q1,ε)
SET-3
1. Discuss the Pumping lemma for Context Free Languages concept with example?
2. Construct a Turing Machine that accepts the language L = {WcWR| W in (a+b) *}. ?
S aSa | bSb | a | b | aa | bb
5. Explain the importance of Turing Machines and also give descriptions of various types
a)Compiler
b) Language expression
c) Language translator
d) None of the above
a) Union
b) Kleen star
c) Concatenation
d) All of the above
a) Parse tree
b) Syntax tree
c) Both a and b
d) None
4. Let G=(V, T, P, S)
where a production can be written as:
S->aAS|a
A->SbA|ba|SS
Which of the following string is produced by the grammar?
a) aabbaab
b) aabbaa
c) baabab
d) None of the mentioned
5. abb*c denotes which of the following?
a) {a bn c|n=0}
b) {ab n c|n>=1}
c) {a n bc|n=0}
d) {abcn |n>0}
3. The ability for a system of instructions to simulate a Turing Machine is called _________
8. In a n-track Turing machine, _________ head/heads read and write on all tracks
simultaneously.
UNIT- 5
a) tractable
b) intractable
c)computational
a) decidable
b) undecidable
c)can’t say
d) none
1. A Turing machine that has the length of its tape limited to the length of the input string
then the language is called as___________