Академический Документы
Профессиональный Документы
Культура Документы
Part A
1. Let A, B are finite or infinite sets. Prove Au B = B if A is a subset of B and A (\ B = A.
2. Prove that set of prime numbers is infinite.
6.. Write the turing machine code for M = ({q1' q2' q3}' {O,I}, {O,1, B}, (, q, B, {q2} ) with the
8
www.qpaper.in
following moves :-
Part B
(ii) If s 1 and S2 are finite sets, show th'at IS1 * s21 h Ils21·
2 F
,.
12. Let binary alphabet L
1
= to, l} ternary alphabet L2 = to, 1, 2}. Write the resultant for the following:
(ii) L2·
(i) L*l·
(iv) L1 u L2•
(iii) L1• L2•
* (vi) Ll U L*2'
(v) (Ll U Lz) .
13. Consider G = ({E}, {+, *, id,} P, E), where P consists of E ~ E + E/E* E/id.
(i) Write right most and left most derivation for the string id + id * id.
(ii) Draw the derivation tree of id + id * id.
(iii) If G ambiguous? Justify your answer.
www.qpaper.in
14. Construct a minimal DFA for b (a/b)* a·
15. Design a turing machine for f(m, n) =m- n, m > n.
Or
Or
(12
20. Explain computationally intractable problems.
[5 x 12 = 60