FLAT Mid-2 Questions From From 4-Sets
FLAT Mid-2 Questions From From 4-Sets
If PDA does not stop on an accepting state and the stack is not empty ,the string
f)
is_________________.
A decision problem that can be solved by an algorithm is said to be
g
) _______________.
h A DPDA is a PDA in which no state P has ________________ outgoing transitions.
)
i) ___________ method is used to prove the undecidability of halting problem.
_________ theorem says that all non-trivial properties about the language of a TM are
j)
undecidable.
Q. Questions
No
(a)Illustrate the components of Pushdown Automata
(b) Construct a PDA from the following CFG. G = ({S, X}, {a, b}, P, S) where the
2
S → XS | ∈ , A → aXb | Ab | ab.
productions are given below.
Q. Questions
No
a) Construct a PDA from the following CFG. G = ({S, X}, {a, b}, P, S) where the
S → XS | ∈ , A → aXb | Ab | ab
productions are given below.
Q.
Multiple Choice Questions
No
1 a In CFG normal of forms are represented in _____ ways
)
b Defne Greibach Normal Form
)
c A push down automaton employs ________ data structure.
)
d Push down automata accepts _________ languages.
) a) Type 3 b) Type 2 c) Type 1 d) Type 0
A PDA machine configuration (p, w, y) can be correctly represented as:
a) (current state, unprocessed input, stack content)
e
b) (unprocessed input, stack content, current state)
)
c) (current state, stack content, unprocessed input)
d) none of the mentioned
Which of the operations are eligible in PDA?
f) a) Push b) Delete
c) Insert d) Add
Which of the functions are performed by the turing machine after reading a symbol?
a) writes the symbol
g
b) moves the tape one cell left/right
)
c) proceeds with next instruction or halts
d) none of the mentioned
h A language L is said to be ____________ if there is a turing machine M such that
) L(M)=L and M halts at every point.
i) The language accepted by a turing machine is called ____________
j) PCP stands for?
Q. Questions
No
a) Construct NPDA for L = { W WR /W ϵ ( 0 + 1)*} M = ({q1,q2},{0,1}.
{R,B,G},δ,q1,R,ϕ}
2
Illustrate about the notation of PDA and its Instantaneous description?
Construct CFG for the PDA = ({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)
3 δ(q1,0, Z0)=(q0, Z0)
δ(q0,ε, Z0)=(q0,ε)
δ(q1,1,R)=(q1,ε)
b) Contrast between DPDA and NPDA
a) Convert the following grammar to Greibach Normal Form S→ABA | AB | BA | AA |
B
4 A→aA | a B→bB | b
b) Convert the following Context Free Grammar into Chomsky Normal Form S→aaaaS
| aaaa
a) Simulate a TM to recognize the language L= {0 n 1 n 0 n | n ≥ 1}.
5
b) Determine the Universal Turning Machine and Restricted Turing machine?
a) Explain TM halting problem.
6
b) Express the properties of recursive and recursively enumerable languages
a) Explain about post correspondence problem in detail
7
b) Discuss about P, NP, NP complete and NP hard problems.
Q.
Multiple Choice Questions
No
1 The pumping lemma is often used to prove that a language is:
a
a) Not context free b) Not regular
)
c) a & b d) None of the above
Which of the following grammars are in Chomsky Normal Form:
a) S->AB|BC|CD, A->0, B->1, C->2, D->3
b
b) S->AB, S->BCA|0|1|2|3
)
c) S->ABa, A->aab, B->Ac
d) All of the above
The moves in the PDA is technically termed as:
c
a) Turnstile b) Shifter
)
c) Router d) None of the above
d Statement: Every context free grammar can be transformed into an equivalent NPDA.
) a) true b) false
e A push down automata is said to be _________ if it has atmost one transition around
) all configurations.
f) A string is accepted by a PDA when
a) Stack is not empty b) Acceptance state
c) Both the above d) None of the above
g _________________ can accept even palindromes over the input alphabet {a,b}
)
Halting problem has states are of two types.
h
a) Accept and Reject b) Reject and Allow
)
c) Start and Reject d) None of the above
According to the rice’s theorem, If P is a non trivial property, Lp is :
i) a) infinite b) decidable
c) undecidable d) loop forever
An algorithm is called efficient if it runs in ____________ time on a serial computer.
j)
Q. Questions
No
a) Construct a PDA to accept the language
L ={ anbn | n >= 1} by a final state. Draw the graphical representation of the
PDA.
2
b) Verify the above language to show the Instantaneous Description by the PDA for the
string aaabbb