Documente Academic
Documente Profesional
Documente Cultură
Level: Master
Semester Spring
Programme: CS/CE
Course: Theory of Computation
Year
: 2010
Full Marks: 100
Pass Marks: 60
Time
: 4hrs.
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.
1.
2.
3.
a)
b)
What do you mean by regular set? State and prove pumping lemma
for regular sets.
a)
Can you relate regular expression and context free grammar? If yes
then how? Explain with an example.
b)
Can we use graph as a problem solving tool? If yes how? What type
of problem can be solved using spanning tree? Explain.
a)
S
b)
abSb | a | aAb, A
bS | aAAb
5.
a)
b)
a)
b)
6.
7.
a)
"A DFA can simulate the behavior of NFA by increasing the number
of states". Justify this statement with an example.
b)
25
a)
b)
c)
======
POKHARA UNIVERSITY
Level: Master
Programme: MCS/MCE
Semester Fall
Year
: 2012
Full Marks: 100
Pass Marks : 60
Time
: 4 hrs
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.
8.
10
9.
For every regular expression there exists finite automata and for every
finite automaton there exists a regular expression. Justify this statement
with an example.
10
10.
11.
12.
B->aSB|bBX
X->SBD|aBx|ad
13.
14.
15.
16.
10
17.
18.
19.
============
POKHARA UNIVERSITY
Level: Master
Semester Fall
Programme: CS/CE
Course: Theory of Computation
Year
: 2013
Full Marks: 100
Pass Marks: 60
Time
: 4hrs.
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.
20.
21.
22.
10
10
10
23.
24.
25.
26.
27.
28.
29.
10
10
10
10
10
10
10
=======
POKHARA UNIVERSITY
Level: Master
Semester Spring
Programme: ME
Course: Theory of Computation
Year
: 2013
Full Marks: 100
Pass Marks: 60
Time
: 4 hrs.
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.
30.
31.
32.
10
10
10
33.
34.
35.
36.
37.
38.
39.
Define CNF and GNF. Consider G with the production of S->aAB , A> bC , B->b, C->c. Construct an equivalent grammar in CNF and
GNF.
Explain the process of eliminating useless symbols and productions from
a CFG. Simplify the following grammar, eliminating both unit
productions and useless productions and symbols.
S A | Bb
AC|a
B aBa | b
C aSa
When is a grammar ambiguous? Prove that the following grammar is
ambiguous. E E * E E + E E - E x y
Why is PDA functionally stronger than FA? Explain. Design a PDA that
processes the language L containing equal number of 0s and 1s over =
{0,1} and check whether the string w=001011 is accepted or not.
What do you mean Instantaneous Description? Design a Turing machine
which accepts all the string of even length over }.
Differentiate between class P and class NP problems with examples. Do
they reflect the notion of decidable and undecidable problems? Explain.
Briefly discuss the recursive function theory with examples.
10
10
10
10
10
10
10
=========
POKHARA UNIVERSITY
Level: Master
Semester Fall
Programme: ME CE/S.Sc.CS
Course: Theory of computation
Year
: 2014
Full Marks: 100
Pass Marks: 60
Time
: 4hrs.
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.
40.
41.
42.
43.
How can you tie up regular expression and grammar? Explain with an example.
For every finite automata there exists an equivalent regular expression. Justify
this statement with an example.
State and proof the closure properties for Regular language.
Define derivation tree. When is a grammar ambiguous? Show that the following
5
8
10
10
10
grammar is ambiguous.
S->AB|aaB
A->a|Aa
B->b
Why do we need to simplify a grammar? Explain the process of eliminating null
production from a grammar. Simplify the following grammar.
44.
S->AB|C
A->B
B->aB|Bb||a
C->aCb
How can you decide whether a language is context free language or not? Explain
with an example.
45.
46.
47.
48.
49.
50.
10
8
10
8
8
10
======
POKHARA UNIVERSI TY
Level: Master
Semester: Fall
Programme: M.Sc. CE/ CS
Course: Theory of Computation
Year
: 2015
Full Marks: 100
Pass Marks: 60
Time
: 4hrs.
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:
1.
2.
10
10
3.
4.
5.
6.
7.
8.
9.
10.
10
10
10
10
10
10
10
10
10
10