Beruflich Dokumente
Kultur Dokumente
PART A (10*2=20)
1. What is the difference between NFA and DFA?
2. Define ε-closure of a State
3. For the grammar SA1B,A0A/Є,B0B/1B/Є,give leftmost and right most
derivation for the string 00101.
4. Construct CFG to generate {anbn /nЄZ+}
5. Is it true that deterministic push down automata and non deterministic push down
automata are equivalent in the sense of language of acceptances?
6. Define instantaneous description of a PDA
7. Define basic Turing machine.
8. Explain multitape Turing machine model
9. When a problem is said to be un decidable? Give an example of an undecidable
problem.
10. Show that the union of recursive language is recursive.
PART-B-(5*16=80)
11. (a) (i) Prove that language L is accepted by some NFA if and only if L is accepted
by some DFA . (8)
(ii) Consider the following Є-NFA .Compute the closure of each state and find
its equivalent DFA.
Є a B c
p {q} {p} Ф Ф
q {r} Ф {q} Ф
*r Ф Ф Ф {r}
Or
(b) (i) P rove that a language L is accepted by some DFA iff L is accepted by some
NFA.
(ii) Convert the following NFA to its equivalent DFA.
0 1
p {p,q} {p}
q {r} {r}
r {s} Ф
*s {s} {s}
12. (a) (i) Construct an NFA equivalent to the following regular expression
((10)+(0+1))*01.
(ii) Check whether the language L={ 0n2/nЄZ+ } is regular or not?
(Or)
(b) (i) Construct DFA equivalent to the NFA given below
0 1
p {p,q} {p}
q {r} Ф
*r Ф Ф
(ii) Prove that if L=L(A) for some DFA then there is a regular expression
R such that L=L( R).
13. (a) (i) Prove that if L is a context-free language then there exists a PDA such
that L=N(M).
(ii) Explain different types of acceptance of a PDA .Are they equivalent
in sense of language acceptance? Justify your answer.
(or)
(b) If L is N(M) for some PDA M ,then prove that L is context free language