Theory of Computation 2075

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

Attempt all the questions.

                                                                Group A                                                         (8x4=32)

1.  How can you represent a finite Automata? Explain.

4 marks view

2.  Construct a DFA that accepts the strings over alphabet {0,1} with odd number of 0's and even number of 1's.

4 marks view

3.  Define the ε-closure of a state of ε-NFA with an example.

4 marks view

4.  Write regular expression for the following regular languages.

        a) The set of strings over a alphabet {a, b} containing at least one 'a' and at least one 'b'.

        b) The set of strings over {0, 1} whose 5th symbol from right end is 1.

4 marks view

5.  Given the following grammar

          

        Remove the immediate left recursion from the grammar.

4 marks view

6.  How can you convert a CFG into equivalent PDA? Explain with example.

4 marks view

7.  What is a Turing Machine? Give formal definition. How it differ from FA?

4 marks view

8.  What do you mean by tractable and intractable problems? Is intractable problems are solvable by Turing machine?

4 marks view

                                                                Group B                                                         (6x8=48)

9.  Convert the following regular expression into ε-NFA.

        a) 01*                    b) (0+1)01*                    c) 00+(0+1)*100*

8 marks view

10.  Convert the following NFA into equivalent DFA using subset construction and also show the transition diagram for this DFA.

                

8 marks view

11.  Convert the following grammar into Chomsky Normal Form.

            S→ ASB|ε

            A →aAS|bAS|a

            B→SbS|A|CS|bb

8 marks view

12.  Construct a Push Down Automata that accepts all the strings from alphabet {0, 1} with equal number of 0 and 1. Show that 0110 is accepted by this PDA and 01101 is not.

8 marks view

13.  How can you show that the one tape Turing machine and multi-tape Turing machine are equivalent? Explain in detail.

8 marks view

14.  Explain the term Turing acceptable and Turing decidable. Show that if L is recursive language then complement of L is also recursive.

8 marks view