0
315views
Theory of Computation Question Paper - Dec 17 - Information Technology (Semester 5) - Pune University (PU)
1 Answer
0
0views
written 4.9 years ago by |
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 = 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
(5 marks)
00
S→a | Xb | aYa
X → Y|∈
Y → b|X
3.b.
Write an equivalent left-linear grammar for the right-linear grammar, which is defined as :
(5 marks)
00
S → 0A | 1B
A → 0C|1A|0
B → 0|0A
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.
(6 marks)
00
S → aS | aSbS | ∈
4.b.
Write Short Note on Chomsky Hierarchy.
(4 marks)
00
5.a.
Construct PDA that accepts language.
(8 marks)
00
L = {aⁿ bᵐ cⁿ | m, n ≥ 1}
5.b.
Construct PDA to check for well formedness of paranthesis. Write ID for
(8 marks)
00
i. (() ())
ii. (())
OR
6.a.
Construct Post Machine which accepts the string over Σ = {a, b} containing odd length & the element at the centre as 'a'.
(8 marks)
00
Writ simulation for string abbabba
6.b.
Convert the following CFG into CNF & construct PDA for the same.
(8 marks)
00
S → 0A1 | 0BA
A→S01|0
B → 1B|N
7.a.
Design a TM that multiplies two unary numbers.
(10 marks)
00
Write simulation for the strings.
11 & 111
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
(10 marks)
00
f (a, b) = a − b where a > b
= 0 where a ≤ b
8.c.
Explain Multitape TM
(2 marks)
00
9.a.
Prove that, following are decidable languages
(10 marks)
00
i. = {⟨G,w⟩| Where G is a CFG that generates string w}
ii. - {⟨G, w⟩| where G is a CFG and L(G) = }
9.b.
Write short note on NP completeness with examples.
(6 marks)
00
OR
10.a.
Prove that,
(8 marks)
00
= {⟨M, w⟩| M is TM & M halts on input w} is undecidable.
10.b.
Write short notes on
(8 marks)
00
i. PCP
ii. Measuring Complexity
ADD COMMENT
EDIT
Please log in to add an answer.