Theory of Computation 2078

Tribhuwan University
Institute of Science and Technology
2078
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC257 )
( Theory of Computation )
Full Marks: 60
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.

Section A

Long Answer Questions.

Attempt any Two questions.    (2x10=20)

1. Give the formal definition of DFA and NFA. How NFA can be converted into eqivalent DFA? Explain with suitable example.

10 marks view

2. Find the minimum state DFA for the given DFA below.


10 marks view

3. Construct a Turing Machine that accepts the language of odd length strings over alphabet {a, b}. Give the complete encoding for this TM as well as its input string w = abb in binary alphabet that is recoginzed by Universal Turing Machine.

10 marks view

Section B

Short Answer Questions.

Attempt any Eight questions.     (8x5=40)

4. Define the term alphabet, prefix and suffix of string, concatenation and Kleen closure with example.

5 marks view

5. Give the regular expressions for the following language over alphabet{a,b},

    a. Set of all strings with substring bab ar abb

    b. Set of all strings whose 3rd symbol is 'a' and 5th symbol is 'b'

5 marks view

6. Show that L = {an | n is a prime number} is not a regular language.

5 marks view

7. Explain about the Chomsky's Hierarchy about the language and grammars.

5 marks view

8. Define a Push Down Automata. Construct a PDA that accept L = {anbn | n>=0}.

5 marks view

9. Convert the following grammar into Chomsky Normal Form.

        S → abSb | a | aAb

        A → bS | aAAb | ε

5 marks view

10. Define Turing Machine and explain its different variations.

5 marks view

11. What do you mean by computational Complexity? Explain about the time and space complexity of a Turing machine.

5 marks view

12. Explain the term Intractability. Is SAT problem is intractable? Justify.

5 marks view