Theory of Computation 2070

Tribhuwan University
Institute of Science and Technology
2070
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC-251 )
( Theory of Computation )
Full Marks: 80
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all the questions.

                                                                Group A                                                         (8x4=32)

1.  Differentiate between deterministic and non-deterministic finite automata.

4 marks view

2.  What do you mean by pumping lemma for regular languages?

4 marks view

3.  Explain the non-deterministic PDA with example.

4 marks view

4.  Define Turing Machines.  Draw NFA - ε corresponding to following regular expression over   = {0,1} 

                    010* + 0(01+10)* 11

4 marks view

5.  Explain about recursive enumerable and recursive language.

4 marks view

6.  Explain the computational complexity with example.

4 marks view

7.  Differentiate between class P and class NP.

4 marks view

8.  Compare FA, NFA and NFA- ε with illustration.

4 marks view

                                                                Group B                                                         (6x8=48)

9.  Define finite automata and draw FA for the strings.

8 marks view

10.  For the following regular expression draw an ε- NFA  recognizing the corresponding languages.

                           i. (00 +1)*(10)*

                           ii. 001*0*11

8 marks view

11.  Define CFG. Prove the following CFG is ambiguous.

S→S+S | S*S | (S) | a

Write the unambiguous CFG for the above grammar.

8 marks view

12.  Draw Turing Machine (TM) to accept  palindromes over {a, b}. (Even as well as odd Palindromes).

8 marks view

13.  Prove that any regular language can be accepted by a finite automata with all details.

8 marks view

14.  Explain the following:

a)      Regular Grammar

b)      Halting problem

c)      Chomsky hierarchy

d)      NP-complete Problem

8 marks view