R19 Flat Material
R19 Flat Material
R19 Flat Material
oE
(Affiliated to JNTUK, Kakinada - Approved by AICTE - Accredited by NAAC)
RC
STUDY MATERIAL
CR
FORMAL LANGUAGES AND AUTOMATA THEORY
Prepared by
P Naga Deepthi
Assistant Professor
Dept. CSE
oE
L T P C
II Year – II Semester
3 0 0 3
FORMAL LANGUAGES AND AUTOMATA THEORY
Course Objectives:
To learn fundamentals of Regular and Context Free Grammars and Languages
To understand the relation between Regular Language and Finite Automata and machines
To learn how to design Automata’s and machines as Acceptors, Verifiers and Translators
To understand the relation between Contexts free Languages, PDA and TM
To learn how to design PDA as acceptor and TM as Calculators
RC
Course Outcomes:
By the end of the course students can
Classify machines by their power to recognize languages.
Summarize language classes & grammars relationship among them with the help of
Chomsky hierarchy
Employ finite state machines to solve problems in computing
Illustrate deterministic and non-deterministic machines
Quote the hierarchy of problems arising in the computer science
UNIT I
Finite Automata: Need of Automata theory, Central Concepts of Automata Theory, Automation,
Finite Automation, Transition Systems, Acceptance of a String, DFA, Design of DFAs, NFA,
Design of NFA, Equivalence of DFA and NFA, Conversion of NFA into DFA, Finite Automata
CR
with Є-Transitions, Minimization of Finite Automata, Finite Automata with output-Mealy and
Moore Machines, Applications and Limitation of Finite Automata.
UNIT II
Regular Expressions, Regular Sets, Identity Rules, Equivalence of two RE, Manipulations of REs,
Finite Automata and Regular Expressions, Inter Conversion, Equivalence between FA and RE,
Pumping Lemma of Regular Sets, Closure Properties of Regular Sets, Grammars, Classification
of Grammars, Chomsky Hierarchy Theorem, Right and Left Linear Regular Grammars,
Equivalence between RG and FA, Inter Conversion.
UNIT III
Formal Languages, Context Free Grammar, Leftmost and Rightmost Derivations, Parse Trees,
Ambiguous Grammars, Simplification of Context Free Grammars-Elimination of Useless
Symbols, Є-Productions and Unit Productions, Normal Forms-Chomsky Normal Form and
Greibach Normal Form, Pumping Lemma, Closure Properties, Applications of Context Free
Grammars.
Sir
UNIT IV
Pushdown Automata, Definition, Model, Graphical Notation, Instantaneous Description,
Language Acceptance of Pushdown Automata, Design of Pushdown Automata, Deterministic and
Non – Deterministic Pushdown Automata, Equivalence of Pushdown Automata and Context Free
Grammars, Conversion, Two Stack Pushdown Automata, Application of Pushdown Automata.
R-19 Syllabus for CSE. JNTUK w. e. f. 2019-20
oE
UNIT V
Turning Machine: Definition, Model, Representation of TMs-Instantaneous Descriptions,
Transition Tables and Transition Diagrams, Language of a TM, Design of TMs, Types of TMs,
Church’s Thesis, Universal and Restricted TM, Decidable and Un-decidable Problems, Halting
Problem of TMs, Post’s Correspondence Problem, Modified PCP, Classes of P and NP, NP-Hard
and NP-Complete Problems.
Text Books:
1) Introduction to Automata Theory, Languages and Computation, J. E. Hopcroft, R.
Motwani and J. D. Ullman, 3rd Edition, Pearson, 2008
2) Theory of Computer Science-Automata, Languages and Computation, K. L. P. Mishra and
RC
N. Chandrasekharan, 3rd Edition, PHI, 2007
Reference Books:
1) Elements of Theory of Computation, Lewis H.P. & Papadimition C.H., Pearson /PHI
2) Theory of Computation, V. Kulkarni, Oxford University Press, 2013
3) Theory of Automata, Languages and Computation, Rajendra Kumar, McGraw Hill, 2014
e-Resources:
1) https://nptel.ac.in/courses/106/104/106104028/
CR
Sir
SHEDULE PLAN
NUMBER OF
SNO DESCRIPTION CLASSES
oE
REQUIRED
Finite Automata: Need of Automata theory, Central
Concepts of Automata Theory, Automation,
Finite Automation, Transition Systems, Acceptance of a
String, DFA, Design of DFAs, NFA,
Design of NFA, Equivalence of DFA and NFA, Conversion
1 14
of NFA into DFA, Finite Automata
with Є-Transitions, Minimization of Finite Automata, Finite
Automata with output-Mealy and
Moore Machines, Applications and Limitation of Finite
RC
Automata.
Regular Expressions, Regular Sets, Identity Rules,
Equivalence of two RE, Manipulations of REs,
Finite Automata and Regular Expressions, Inter Conversion,
Equivalence between FA and RE,
2 Pumping Lemma of Regular Sets, Closure Properties of 10
Regular Sets, Grammars, Classification
of Grammars, Chomsky Hierarchy Theorem, Right and Left
Linear Regular Grammars,
Equivalence between RG and FA, Inter Conversion.
Formal Languages, Context Free Grammar, Leftmost and
Rightmost Derivations, Parse Trees,
CR
Ambiguous Grammars, Simplification of Context Free
Grammars-Elimination of Useless
3 Symbols, Є-Productions and Unit Productions, Normal 12
Forms-Chomsky Normal Form and
Greibach Normal Form, Pumping Lemma, Closure
Properties, Applications of Context Free
Grammars.
Pushdown Automata, Definition, Model, Graphical Notation,
Instantaneous Description,
Language Acceptance of Pushdown Automata, Design of
Pushdown Automata, Deterministic and
4 12
Non – Deterministic Pushdown Automata, Equivalence of
Pushdown Automata and Context Free
Grammars, Conversion, Two Stack Pushdown Automata,
Application of Pushdown Automata.
Sir
oE
S. No Topic Page no
8
Conversions and Equivalence :
28-32
46-52
53-58
59-64
CR
9 FA:RLG,LLG, Sentential forms 65-72
RC
CR
Sir
oE
RC
CR
Sir
oE
RC
CR
Sir
oE
RC
CR
Sir
oE
RC
CR
Sir