CSC262 Theory of Computation

Theory of Computation TU Board 2079 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 4 · TU Board 2079

Course Title: Theory of Computation (CSC262)

Full Marks: 60Pass Marks: 24Time: 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.

Group A

Attempt any TWO questions(2 × 10 = 20)

  1. 1.

    Show that, For any NFA N=(Q, ∑, δ, q0, F) accepting language L=∑, There is a DFA D= (Q', ∑', q0′, δ', F') accepting the same language L.

    10
  2. 2.

    State and prove the Pumping Lemma for regular languages. How can you show with example that pumping lemma is used to prove that a given language is not a regular? Explain.

    10
  3. 3.

    Given the following expression grammar for simple arithematic expression with operator + and *.

    E→ E+T | T

    T → T+F | F

    F → (E) | a

    Remove the left recursion from this grammar then simplify and convert to CNF.

    10

Group B

Attempt any EIGHT questions(8 × 5 = 40)

  1. 4.

    Explain the ε-closure of states on an ε-NFA with suitable examples.

    5
  2. 5.

    Convert the following regular expression into equivalent Finite Automata

    • a) (0+1)*10(1+0)

    • b) 1*0(0+1)*1

    5
  3. 6.

    Define the term: Parse Tree, left-most and right-most derivation, sentential form and ambiguity with example.

    5
  4. 7.

    Give the formal definiton of Push Down Automata. How CFG can be converted into equivalent PDA. Explain with an example.

    5
  5. 8.

    Define regular grammar. Also explain the method of converting right linear grammar into equivalent finite automata.

    5
  6. 9.

    Construct a Turing machine that accepts the language, L = { a^n b^n | n≥0}

    5
  7. 10.

    Define Turing machine and its roles.

    5
  8. 11.

    Explain about the complexity classes p, NP and NP-Complete.

    5
  9. 12.

    Write short notes ( Any two ) :

    • a) Big Oh, Big Omega and Big Theta

    • b) Tractable and Intractable Problems

    • c) Chomsky Hierarchy

    5

— The End —