Theory of Computation Nov 2021
Theory of Computation Nov 2021
137219
4
D 11994 (Pages : 2) Name.........................................
Reg. No.....................................
1
THIRD SEMESTER (CBCSS–UG) DEGREE EXAMINATION
NOVEMBER 2021
1
B.C.A.
BCA 3C 06—THEORY OF COMPUTATION
(2019—2020 Admissions)
1
Each question carries 3 marks.
All questions can be attended.
Overall ceiling 24.
4
1. What is Set and explain various ways of describing a set ?
2. What is a mealy machine ?
3. Explain relations. What are its properties ?
1
4. Define one-to-one function with example.
5. Define Grammar.
1
6. Explain parse tree in detail.
7. Define top down parsing.
8. Define Pushdown automata.
1
(8 × 3 = 24 marks)
Section B
4
Answer atleast five questions.
Each question carries 5 marks.
All questions can be attended.
1
Overall ceiling 25.
13. Show that a connected graph G with n vertices and n – 1 edges ( n ≥ 3 ) has at least one leaf.
1
14. Explain Chomsky classification of languages.
Turn over
137219
1
137219
4
2 D 11994
1
16. Explain ambiguous grammars. If G is the grammar S → SbS|a, check G is ambiguous or not.
17. Explain Normal Forms for Context free Grammars.
1
18. Prove the theorem by induction : A tree with n vertices has (n – 1) edges.
19. Define Turing Machine.
(5 × 5 = 25 marks)
Section C
Answer any one question.
Each question carries 11 marks.
20. Prove that the theorem, if L is then there set accepted by NDFA, then there exists a DFA which
1
also accepts L.
21. Define Chomsky normal form. Find a grammar in CNF equivalent to :
S → aAD, A → aB|bAB, B → b, D → d.
4
(1 × 11 = 11 marks)
1 1
1 41
1
137219