0
315views
Theory of Computation Question Paper - Dec 17 - Information Technology (Semester 5) - Pune University (PU)
1 Answer
0
0views

Theory of Computation - Dec 17

Information Technology (Semester 5)

Total marks: 70

Total time: 2 Hours 30 min

INSTRUCTIONS

(1) Attempts questions Q.1 or Q.2, Q.3 or Q.4 , Q.5 or Q,6 and Q.7 or Q.8 .

(2) Neat diagrams must be drawn whenever necessary.

(3) Assume suitable data , if necessary.

1.a. Design Moore machine for divisibility by 3 tester for binary number.
(6 marks) 00

1.b. Discuss Applications of FA & regular expressions.
(4 marks) 00

OR

2.a. Using Pumping lemma, Prove that L = enter image description here is not- regular
(6 marks) 00

2.b. Design Finite Automata to accept strings ending with 00 or 11.
(4 marks) 00

3.a. Simplify the following Grammar

S→a | Xb | aYa

X → Y|∈

Y → b|X

(5 marks) 00

3.b. Write an equivalent left-linear grammar for the right-linear grammar, which is defined as :

S → 0A | 1B

A → 0C|1A|0

B → 0|0A

(5 marks) 00

OR

4.a. Check whether or not the following grammar is ambiguous; if it is ambiguous, remove the ambiguity and write an equivalent unambiguous grammar.

S → aS | aSbS | ∈

(6 marks) 00

4.b. Write Short Note on Chomsky Hierarchy.
(4 marks) 00

5.a. Construct PDA that accepts language.

L = {aⁿ bᵐ cⁿ | m, n ≥ 1}

(8 marks) 00

5.b. Construct PDA to check for well formedness of paranthesis. Write ID for

i. (() ())

ii. (())

(8 marks) 00

OR

6.a. Construct Post Machine which accepts the string over Σ = {a, b} containing odd length & the element at the centre as 'a'.

Writ simulation for string abbabba

(8 marks) 00

6.b. Convert the following CFG into CNF & construct PDA for the same.

S → 0A1 | 0BA

A→S01|0

B → 1B|N

(8 marks) 00

7.a. Design a TM that multiplies two unary numbers.

Write simulation for the strings.

11 & 111

(10 marks) 00

7.b. Compare FA and TM.
(4 marks) 00

7.c. Define Recursive languages & Recursively enumerable languages with example
(4 marks) 00

OR

8.a. Design TM to find 2's compliment.
(6 marks) 00

8.b. Construct a TM to compute

f (a, b) = a − b where a > b

= 0 where a ≤ b

(10 marks) 00

8.c. Explain Multitape TM
(2 marks) 00

9.a. Prove that, following are decidable languages

i. enter image description here = {⟨G,w⟩| Where G is a CFG that generates string w}

ii. enter image description here - {⟨G, w⟩| where G is a CFG and L(G) = enter image description here}

(10 marks) 00

9.b. Write short note on NP completeness with examples.
(6 marks) 00

OR

10.a. Prove that,

enter image description here= {⟨M, w⟩| M is TM & M halts on input w} is undecidable.

(8 marks) 00

10.b. Write short notes on

i. PCP

ii. Measuring Complexity

(8 marks) 00

Please log in to add an answer.