Theory of Computation 2072

Tribhuwan University
Institute of Science and Technology
2072
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.  Define the term: Kleene closure, union, concatenation and power of an alphabet with example.

4 marks view

2.  Construct a DFA that accepts only the strings ab, abb and baa not more from {a, b}*.

4 marks view

3.  Find the regular expression corresponding to the following languages over {0, 1}*.

a)       The language of all strings containing exactly two 0's.

b)       The language of all strings containing 00 or 101 as substrings.

4 marks view

4.  Construct the FA recognizing the language corresponding to the following regular expressions.

a) (11 + 10)*01

b) (111 + 100)*10

4 marks view

5.  State the pumping lemma for regular language. Show by example, how can you use it to prove that a language is not regular.

4 marks view

6.  Explain the method to convert a given CFG into equivalent PDA.

4 marks view

7.  What do you mean by problem reduction? Also explain about NP-Completeness.

4 marks view

8.  What is the role of a Turing machine? Explain.

4 marks view

                                                                Group B                                                         (6x8=48)

9.  What is finite automata? Describe its different variations with suitable examples.

8 marks view

10.  Describe the method of subset construction to convert a given NFA into equivalent DFA with suitable example.

8 marks view

11.  Give the formal definition of Push Down Automata. Construct a PDA accepting the language

L = {0n1n | n > 0}

8 marks view

12.  Given the following grammar,

S → AAC |

A → aAb | ab | ɛ

C → aC | a | ɛ

Simplify the grammar and convert it into equivalent grammar in CNF.

8 marks view

13.  Define Turing Machine. Construct the Turing machine that accepts the languages

                L={anbn | n>=0}

8 marks view

14.  Write short notes on (Any two):

a)       Unrestricted Grammar

b)       Universal Turing Machine

c)       CNF-SAT problem Complexity

8 marks view