Theory of Computation 2076

Question Paper Details
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)

Official Answer
AI Generated Answer

AI is thinking...

1.  Define DFA and explain how it differs from NFA.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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

            SABa,    A→ aab,    B→ AC

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

                                                               Group B                                                         (6x8=48)

Official Answer
AI Generated Answer

AI is thinking...

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

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...