Theory of Computation 2073

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)

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

4 marks view

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

4 marks view

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

4 marks view

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 view

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

4 marks view

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

4 marks view

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

4 marks view

8.  What is recursive language? Explain.

4 marks view

                                                                Group B                                                         (6x8=48)

9.  Convert the following NFA into equivalent DFA.

                   

8 marks view

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

8 marks view

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

              

8 marks view

12.  Convert the following CFG into CNF.

                 

8 marks view

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 view

14.  Write short notes on:

        a) Turing maching

        b) Classes P and NP

8 marks view