Theory of Computation 2073

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2073
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)

Official Answer
AI Generated Answer

AI is thinking...

1.  What is finite automata? Define DFA  with suitable example.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2.  Differentiate DFA with NFA. Design an NFA  accepting strings over {0, 1} that end in 01.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3.  Give formal notation for an ε-NFA with example.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

4.  Write regular expression for the set of strings of 0's and 1's with at most one pair of consecutive 1's.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5.  What is CFG? Design CFG for palindromes with alphabets {0, 1}.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6.  What is PDA? How is it different from finite automata?

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7.  Design a Turing machine that accepts the language {0n1n|n1} over {0, 1}.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8.  What is recursive language? Explain.

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

                                                                Group B                                                         (6x8=48)

Official Answer
AI Generated Answer

AI is thinking...

9.  Convert the following NFA into equivalent DFA.

                   

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10.  How do you convert a regular expression to automata? Convert the regular expression (0+1)*1(0+1) to auatomata.

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11.  Convert the following DFA into minimum-state equivalent DFA.

              

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12.  Convert the following CFG into CNF.

                 

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

13.  Discuss the equivalent of PDA and CFG. Convert the grammar

           SaAA

           AaS|bS|a

        to a PDA that accepts the same language by empty stack.

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

14.  Write short notes on:

        a) Turing maching

        b) Classes P and NP

8 marks
Details
Official Answer
AI Generated Answer

AI is thinking...