Theory of Computation 2067-II

Tribhuwan University
Institute of Science and Technology
2067-II
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC-251 )
( Theory of Computation )
Full Marks: 80
Pass Marks: 32
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.  What is DFA? How it differ with a NFA? Explain.

4 marks view

2.  Give the DFA for language of strings over {0, 1} in which each strings end with 11.

4 marks view

3.  For a regular expression (a+b)*baa, construct ε-NFA.

4 marks view

4.  Define the term parse tree, regular grammar, sequential form and ambiguous grammar.

4 marks view

5.  Give the formal definition of NPDA. How it differs with DPDA? Explain.

4 marks view

6.  Construct a Turning Machine that accepts a language of strings over (a, b) with each string of even length. Show how it accepts string abab.

4 marks view

7.  Give the formal definition of Turning Machine. How it differs from PDA?

4 marks view

8.  Explain about the Unrestricted Grammar.

4 marks view

                                                                Group B                                                         (6x8=48)

9.  Show that a language L is accepted by some DFA if and only if L is accepted by some NFA.

8 marks view

10.  State and prove pumping lemma for regular language. Show by example how it can be used to prove a language is not a regular.

8 marks view

11.  Define Context Free Grammar. Given the following CFG.

S 0AS | 0, A → SIA| SS | 10

        For the string 001001100, Give the left most and right most derivation and also construct a parse tree

8 marks view

12.  Define deterministic PDA. Design a PDA that accept a language L = {anbn | n>0}. You may accept either by empty stack or by final state.

8 marks view

13.  Describe a Universal Turing Machine and its operations. What types of languages are accepted by Universal TM?

8 marks view

14.  Explain about the Chomsky Hierarchy of the language.

8 marks view