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.10
List the applications of Pumping Lemma. Minimize the following DFA using the Table Filling Algorithm
[figure in the original paper]
- 2.10
Define yield in parse tree with example. Convert the following grammar to CNF:
- 3.10
Distinguish between multi-tape and multi-track Turing Machine. Design a TM that accepts a string over the alphabet , such that .
Group B
Attempt any EIGHT(8 × 5 = 40)
- 4.5
Why do we need asymptotic notation? Discuss about alphabet and power of alphabet.
- 5.5
Define ambiguous grammar. How do you use parse tree to show the ambiguity of a grammar?
- 6.5
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:
- 7.5
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.
- 8.5
Differentiate between Moore and Mealy machines.
- 9.5
Design a DFA that accepts odd length binary strings.
- 10.5
How do you convert CFG to PDA? Explain.
- 11.5
Why do we need ε transition? Give the formal definition of PDA.
- 12.5
Describe abstract, decision and optimization problems.
Answer comingAlso asked in 2080
— The End —