Theory of Computation
Theory of Computation
Theory of Computation
Goal: To gain understanding of the abstract models of computation and formal language
approach to computation.
Course contents:
Unit 1: 14 Hrs.
Finite State Machine with output – Moore machine and Mealy machine-
general concepts.
1
1.3 Regular Expressions and Languages 6 Hrs
Unit 2:
11 Hrs.
2
Unit 3: 10 Hrs.
Turing Machines
Unit 4: 10 Hrs.
3
Text Book:
References:
Homework Assignments:
Homework assignments will be given through out the semester covering the lecture materials in
each unit. The homework assignment will cover the 30% of the internal evaluation.
The evaluation and grading includes the 20% weitage for homework assignments and 2 mid term
exam and 80 % weitage for final semester exam. The grading of the 20% internal evalua tion will
be as:
4
Bachelor of Science in Computer Science and Information Technology
Model Question 2009
Course Title: Theory of Co mputation
Course No: CSC -251 F.M : 80
Cred it Hours: 3 P.M : 32
Attempt all questions
Group A [8 × 4 =32]
5. How a CFG can be converted into PDA? Convert the follo wing CFG into PDA.
S aAB, A aS | bS | a, B Sa | Sb | b
7. Construct a Turing Machine accepting a language of palindro me over {a,b}* with each string of eve n length.
Group B:[ 6 × 8 = 48 ]
9. Define a NFA with epsilon transition. Exp lain how a -NFA is converted into DFA? Convert the follo wing
-NFA into equivalent DFA.
a b
B D A
F b
A H
b a
C E A
G
10. State and prove the pumping lemma for regular language. Show that the language L {a m b m | m 1} is not
a regular language.
11. Define Context Free Grammar. Given the following grammar,
S aB | bA
A a | aS | bAA
B b | bS | aBB |
For the string aabbbaabaaab, find the left-most, right-most derivation and construct a parse tree.
5
12. Define the PDA and its language with suitable example. Explain how a PDA accepting by empty stack can be
converted in to PDA accepting by Final stack?
13. Exp lain mu lti-tape Turing Machine. Show that every language accepted by a mult i-tape Turing Machine is
recursively enumerable.
End
Marks Distribution:
Note: Each questions may be asked by breaking down into more then one questions.
Subject Expert:
1. Hemanta GC Patan Multiple Campus / ASCOL
Partici pants
1. Dhiraj Kedar Pandey Siddanath Science Campus, Mahaendra nagar