CS3103-1 - Toc - Lesson Plan
CS3103-1 - Toc - Lesson Plan
COURSE PLAN
Semester: V Year: 2024-25
Course Title: Theory of Computation Course code: CS3103-1
Teaching Hrs: 40 SEE marks: 50
Examination hrs: 03 CIE marks:50
Lesson plan prepared by Mrs.Shwetha GK Total marks:100
Verified by :
Prerequisites: The subject requires the student to know basic design of machines, the
relation between formal languages and programming languages, and their applications.
Course Objectives:
This Course will enable students to:
1. Outline the theory behind the basic design of machines, the relation between formal
languages and programming languages, and their applications.
2. Make use of regular expressions, find the equivalence between finite automata and
regular languages, and identify non-regular languages.
3. Design context-free grammars along with simplification of grammars.
4. Get the idea of designing pushdown automata, find the equivalence between context-
free languages and pushdown automata, and identify non-context-free languages.
5. Tell how Turing machines solve any computational process carried by present-day
computers, their design, and get the feeling of undecidability concept.
Course Outcomes:
Upon completion of this course, students will be able to:
1. Outline the fundamental understanding of the core concepts in automata theory and
formal languages and its applications. Discover finite automata for different language
classes. Apply the procedure to convert deterministic finite automata to non-deterministic
finite automata.
2. Find the regular expression for a given language and illustrate equivalence between
finite automata and regular languages. Show the properties of regular languages and
minimize the given finite automata.
3. Discover context-free grammars for different language classes. Demonstrate the
ambiguity and unambiguous grammars.
4. Discover Pushdown automata for different language classes.
5. Translate the context-free grammars from one form to another. Discover Turing
machines for different language classes. Explain the class of languages and their
relationship.
COURSE ARTICULATION MATRIX:
UNIT - I
AUTOMATA:
Why study automata theory, Central concepts of automata theory.
FINITE AUTOMATA:
Deterministic Finite automata, Nondeterministic finite automata, An application: Text search,
Finite automata with epsilon-transitions.
REGULAR EXPRESSIONS AND LANGUAGES:
Regular expressions, Finite automata and Regular expressions, Applications of regular
expressions.
PROPERTIES OF REGULAR LANGUAGES:
Proving languages not to be regular.
(Text Book-1: Chapter 1: 1.1, 1.5; Chapter 2: 2.1 to 2.5; Chapter 3: 3.1, 3.2.2, 3.2.3, 3.3;
Chapter 4: 4.1)
15 Hours
UNIT – II
PROPERTIES OF REGULAR LANGUAGES:
Closure properties of regular languages, Equivalence and minimization of automata.
CONTEXT-FREE GRAMMARS AND LANGUAGES
Context free grammars – Examples and Definitions, More Examples, Derivation Trees and
Ambiguity, Unambiguous CFG for algebraic expressions.
PUSHDOWN AUTOMATA
Definition of the Pushdown Automata, Language accepted by a PDA.
(Text Book-1: Chapter 4: 4.2, 4.4; Chapter 6: 6.1, 6.2.1, 6.2.2; Text Book-2: Chapter 6:
6.1, 6.2, 6.4, 6.5) 15 Hours
UNIT – III
PROPERTIES OF CONTEXT-FREE LANGUAGES:
Normal forms for CFGs.
TURING MACHINES:
The Turing machine, Extensions to the Basic Turing Machines.
(Text Book-1: Chapter 7: 7.1; Chapter 8: 8.2, 8.4)
RECURSIVELY ENUMERABLE LANGUAGES
Recursively enumerable languages, The Chomsky hierarchy.
(Text Book-2: Chapter 10: 10.1, 10.4)
10 Hours
TEXTBOOKS:
1. J.P. Hopcroft, Rajeev Motwani, and J.D. Ullman, “Introduction to Automata Theory,
Languages and Computation”, Third Edition, Pearson Education 2012.
2. John C Martin, “Introduction to languages and The Theory of Computation”, Third
Edition, Tata McGraw Hill, 2008.
REFERENCE BOOKS:
1. Peter Linz, “An Introduction to formal languages and Automata”, Fourth Edition,
Narosa Publishing House, 2011.
2. Michael Sipser, “Introduction to the Theory of Computation”, Third Edition, MIT
Press, 2014.
MOOC:
1. http://nptel.ac.in/courses/106106049/
2. http://aduni.org/courses/theory/index.php?view=cw
3. https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-045j-
automata-computability-and-complexity-spring-2011/lecture-note*s/
There will be 8 questions of 20 marks each in the question paper divided into3 Units as
per the syllabi & contact hours and the student will have to answer 5 full questions,
selecting 2 full questions from Unit - I & Unit – II and 1 full question from Unit – III.
Evaluation Scheme:
CIE Scheme
Assessment Weightage in Marks
MSE – 1 20
MSE – 2 20
Tasks 10
Total 50
2– Deterministic 8 2 -
I Finite automata,
Nondeterministic
finite automata,
An application:
Text search,
Finite automata
with epsilon-
transitions.
3. Regular 4 2 -
expressions,
Finite automata
and Regular
expressions,
Applications of
regular
expressions
4. Properties of regular 2 1 -
languages:
Proving languages not
to be regular.
II 1. Closure properties 3 - 2 3
of regular languages,
Equivalence and
minimization of
automata.
2. Context free 4 - 1
grammars – Examples
and Definitions
3. Derivation Trees 4 - 2
and Ambiguity,
Unambiguous CFG
for algebraic
expressions.
4. Definition of the 4 - 1
Pushdown Automata,
Language accepted by
a PDA.
III 1.Normal forms for 2 2
CFGs.
2. The Turing 4
machine, Extensions
to the Basic Turing
Machines.
3. Recursively 4
enumerable languages
and Recursive, The
Chomsky hierarchy.
Note: i) There will be MCQs for 20 marks in part -A ana in part-B there will be questions to
answer where each full question carries 16 marks and may consist of sub-questions.
ii) No mixing of questions is allowed in SEE.
iii) Questions from Unit I, II are generally are asked for MSE – 1 & 2.
Learning objectives:
At the end of this unit, the student will be able to –
1. Write CFG in the normal forms.
2. Define and design TM for a given language.
3. Know the hierarchy of languages and grammars
4. Recursively enumerable languages and Recursive.
Lesson Schedule: Class Portion Covered per hour (estimate)
1. Normal forms for CFGs
2. CNF and GNF
3. The Turing machine definition and design TM for the language
4. Problems
5. Problems
6. Extensions to the Basic Turing Machines.
7. Recursively enumerable languages and Recursive.
8. Recursively enumerable languages and Recursive
9. The Chomsky hierarchy
10.The Chomsky hierarchy
Total number of hours: 10
Model questions:
1. What is CNF and GNF? Obtain the following grammar in CNF:
Unit – II
BT* Bloom’s Taxonomy, L* Level; CO* Course Outcome; PO* Program Outcome
*****************
USN
2. a) Define distinguishable and indistinguishable states. Minimize the following DFA using table
filling algorithm,
6 L3
3
b) Discuss the closure properties of Regular languages. 4 L3
3
BT* Bloom’s Taxonomy, L* Level; CO* Course Outcome; PO* Program Outcome
USN
Decmber 2024
Note:
Part – A: Multiple Choice Questions: Answer all Twenty questions in the OMR Sheet provided. Each question
carries equal marks.
Part – B: Descriptive Answer Questions: Answer Five full questions choosing Two full questions from Unit – I &
Unit – II each and One full question from Unit – III.
8 L3 1 1,3
b) Develop regular expressions for the following Languages.
8 L3 1 1,3
Unit – II
Unit – III