0
999views
Theory of Computer Science Question Paper - Dec 18 - Computer Engineering (Semester 5) - Mumbai University (MU)
1 Answer
0
3views

Theory of Computer Science - Dec 18

Computer Engineering (Semester 5)

Total marks: 80
Total time: 3 Hours
INSTRUCTIONS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Draw neat diagrams wherever necessary.

1.a. Explain Chomsky Hierarchy.
(5 marks) 00

1.b. Differentiate between PDA and NPDA.
(5 marks) 00

1.c. Define regular expression and give regular expression for

i)set of all strings over{0,1} that end with 1 has no substring 00

(5 marks) 00

1.d. Explain Halting Problem.
(5 marks) 00

2.a. Design a finite state machine to determine ternary number (base 3) is divisible 5.
(10 marks) 00

2.b. Give the definiton of Pumping Lemma for regular language and prove that following language is not regular .

$\mathrm{L}=\left\{\mathrm{a}^{\mathrm{m}} \mathrm{b}^{\mathrm{m}-1} | \mathrm{m}\gt0\right\}$

(10 marks) 00

3.a. Construct PDA accepting the language $\mathrm{L}=\left\{\mathrm{a}^{2 \mathrm{n}} \mathrm{b}^{\mathrm{n}} | \mathrm{n} \geq 0\right\}$
(10 marks) 00

3.b. Consider the following grammar

$\mathrm{S} \rightarrow \mathrm{iCtS} | \mathrm{iCtS}$ e S|a

$\mathrm{C} \rightarrow \mathrm{b}$

for the string 'ibtacibta' find the following :

i) Leftmost derivation

ii)Rightmost derivation

iii)Parse tree

iv)Clock if above grammar is ambiguous.

(10 marks) 00

4.a. Construct TM to check wellformedness of parenthesis.
(10 marks) 00

4.b. Convert following CFG and CNF

$\mathrm{S} \rightarrow \mathrm{ASA} | \mathrm{aB}$

$\mathrm{A} \rightarrow \mathrm{B} | \mathrm{S}$

$\mathrm{B} \rightarrow \mathrm{b} | \in$

(10 marks) 00

5.a. Convert (0+1) (10)*(0+1) into NFA with $\epsilon$-moves and obtain DFA.
(10 marks) 00

5.b. Construct moore and mealy machine to convert each occurence of 100 by 101.
(10 marks) 00

6 Write short note on any four:
(20 marks) 00

6.a. Closure properties of context free language
(5 marks) 00

6.b. Applications of regular expression and finite automata
(5 marks) 00

6.c. Rice's Theorem.
(5 marks) 00

6.d. Moore and Mealy Machine.
(5 marks) 00

6.e. Universal Turing Machine.
(5 marks) 00

Please log in to add an answer.