Theory of Computation 2076

Tribhuwan University
Institute of Science and Technology
2076
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC257 )
( 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 DFA and explain how it differs from NFA.

4 marks view

2.  Define the term: alphabet, substring/Prefix/Suffix of a string with example.

4 marks view

3.  What do you mean by ε-closure of a state in NFA with epsilon moves. Explain with an example.

4 marks view

4.  Give the regular expression for the following languages over alphabet {a, b}

        a. Set of all strings ending with substring ab.

        b. Set of all strings with 2nd and 4th symbol is b.

4 marks view

5.  What do you mean by a CNF grammar? Convert following grammar into CNF.

            SABa,    A→ aab,    B→ AC

4 marks view

6.  Construct a PDA accepting L={w | w has equal no. of a's and b's}.

4 marks view

7.  Describe the Turing machine. Construct a TM that accepts even length strings from alphabet {0, 1}.

4 marks view

8.  What do you mean by Intractability? Explain in brief.

4 marks view

                                                               Group B                                                         (6x8=48)

9.  Explain about sub-set construction method to convert a NFA into equivalent DFA with suitable example.

8 marks view

10.  State and prove the pumping lemma for regular language. Explain about its application.

8 marks view

11.  Explain about the closure properties of regular languages. Show that for any regular languages L1 and L2, L1∪L2 is also regualr.

8 marks view

12.  What is a regular grammar? Explain with example, about the method of converting a regular grammar into equivalent Finite Automata.

8 marks view

13.  Define PDA. Explain how a PDA accepting by empty stack is converted into equivalent PDA accepting same language by final state.

8 marks view

14.  What is Universal Turing machine? Explain about the working mechanism of Universal Turing machine for processing the binary code input for (T, w) where T is specific Turing machine and w is input to T.

8 marks view