TOC Paper 4
TOC Paper 4
Semester V
Write your Roll No. onihe topimnediately on receipt of this question paper,)
Instructions for Candidates
(1) Allquestions from Part Aare compulsory. Attempt any
four questions from Part B.
(2) AssumeE= {a b} is the underlying alphabet unless
mentioned otherwise. Parts of a.question must be
answered together.
Part A
languaue
(c) Show that (ab)*a and a(ba)* defines the sane
3
over alplhabet {a b}.
that have
() Build an FA that accepts only th0se words
do not
(e) Build an FA that accepts only those words that
4
end with ba.
count={sanghs)
Find a CFG for the language Trailing
4
for all s in (a+b)*}.
language
ig) Use the pumping lemma to show that the
4
Square-{a where n is a square} is non-regular.
4
L,tl,, LL, and .*.
4
!2 3..........
>L URaL4
3 S2
Part B
(5) Build a reguiar expression tor all words that have odd
(c) Build an FA that accepts all strings that start and end
with different letters.
ambiguous : 4
S->aSb | Sb| Sa a.
4. (a) Use the pumping lemma to show that the language aba"
where. n-1 23... is non-regular. 4
fr. n !
also recursively
6. (a) Prove that a recursive language is
enumerable.
language ab'a"b
(b) Using pumping lemma prove that the
4
for n 23 .... is non-context free.
language a"b'c where
7. (a) Design a turing machine for the
6
n=12 3
4
(6) Describe "Universal Turing Machine".
C.
a,
4 1,400
S2