CSC262 Theory of Computation

Theory of Computation TU Board 2082 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 4 · TU Board 2082

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(2 × 10 = 20)

  1. 1.

    List the applications of Pumping Lemma. Minimize the following DFA using the Table Filling Algorithm

    [figure in the original paper]

    10
  2. 2.

    Define yield in parse tree with example. Convert the following grammar to CNF:

    10
  3. 3.

    Distinguish between multi-tape and multi-track Turing Machine. Design a TM that accepts a string over the alphabet , such that .

    10

Group B

Attempt any EIGHT(8 × 5 = 40)

  1. 4.

    Why do we need asymptotic notation? Discuss about alphabet and power of alphabet.

    5
  2. 5.

    Define ambiguous grammar. How do you use parse tree to show the ambiguity of a grammar?

    5
  3. 6.

    Given the non-deterministic Turing machine, TM = ({q0, q1, q2, qf}, {0, 1}, {0, 1, B}, δ, q0, B, {qf}) with the following transition rules, describe the language accepted by the given Turing machine:

    5
  4. 7.

    Given two DFAs M1 and M2 over the same alphabet Σ, design a third DFA M3 such that M3 will accept the string w ∈ Σ* if it is accepted by both M1 and M2.

    5
  5. 8.

    Differentiate between Moore and Mealy machines.

    5
  6. 9.

    Design a DFA that accepts odd length binary strings.

    5
  7. 10.

    How do you convert CFG to PDA? Explain.

    5
  8. 11.

    Why do we need ε transition? Give the formal definition of PDA.

    5
  9. 12.

    Describe abstract, decision and optimization problems.

    5

— The End —