SlideShare a Scribd company logo
Automata and
Complexity Theory
 Alphabets and Strings: An alphabet is a finite set of symbols, and a string is a
finite sequence of symbols from an alphabet.
 Languages and Grammars: A language is a set of strings, and a grammar is a set
of rules that generate a language.
 Automata:
 Finite Automata: A computational model that recognizes regular languages. It
consists of a set of states, transitions between states, and an input alphabet.
 Deterministic Finite Automata (DFA): A finite automaton where each state and input
symbol uniquely determines the next state.
 Non-deterministic Finite Automata (NFA): A finite automaton where the next state
may not be uniquely determined by the current state and input symbol.
Introduction
 Regular Expressions: A formal notation for describing regular languages.
 Connection between Regular Expression and Regular Languages: Regular expressions
and regular grammars generate the same class of languages, known as regular languages.
 Regular Grammar: A type of formal grammar that generates regular languages.
 Pumping Lemma and Non-Regular Language Grammars: The pumping lemma is a
tool used to prove that certain languages are not regular.
Regular Expression and Regular languages
 Context-Free Languages: A class of formal languages that can be generated by context-
free grammars.
 Parsing and Ambiguity: Parsing is the process of determining the syntactic structure of
a string according to the rules of a grammar. Ambiguity arises when a string has
multiple valid parse trees.
 Sentential Forms and Derivation Tree or Parse Tree: Sentential forms are intermediate
steps in deriving a string from a grammar's start symbol. Derivation trees or parse trees
represent the hierarchical structure of how a string is derived from a grammar.
Context-Free Languages
 Simplification of Context-Free Grammars:
 Methods for Transforming Grammars: Techniques to transform a grammar into an
equivalent but simpler form.
 Chomsky's Hierarchy of Grammars: A classification of formal grammars based on
the restrictions placed on the production rules.
…Context-Free Languages
PDA: A computational model that recognizes context-free languages,
with a stack to store and retrieve information.
Pushdown Automata and Context-Free Languages: Pushdown
automata and context-free grammars recognize the same class of
languages.
Deterministic Pushdown Automata: A special case of pushdown
automata where the next state and stack operation are uniquely
determined.
Deterministic Context-Free Languages: The class of languages
recognized by deterministic pushdown automata.
Push Down Automata
A Turing machine is a mathematical model of computation that
consists of a finite-state control, a read/write head, and an infinite
tape divided into cells.
The tape represents the input, output, and working memory of the
machine.
The finite-state control determines the next action based on the current
state and the symbol under the read/write head.
Turing Machine (TM)
Turing Decidable and Turing Acceptable Languages:
A language is Turing-decidable (or recursive) if there exists a Turing machine
that halts and accepts all strings in the language and rejects all strings not in
the language.
A language is Turing-acceptable (or recursively enumerable) if there exists a
Turing machine that halts and accepts all strings in the language, but may not
halt on strings not in the language.
Undecidable Problems:
•Some problems are not Turing-decidable, meaning there is no Turing machine
that can solve them. These are called undecidable problems.
•The most famous undecidable problem is the Halting Problem,
…Turing Machine (TM)
Turing machines are the fundamental model of computation in
computability theory, and they define the class of Turing-decidable
(recursive) and Turing-acceptable (recursively enumerable)
languages.
Computability
Test Blueprint
The relationship among formal languages, formal grammars, and automata is a fundamental
topic in computer science and the theory of computation.
Formal Languages:
A formal language is a set of strings (sequences of symbols) that are defined by a set of
rules.
Formal languages can be classified into different types, such as regular languages, context-free
languages, and context-sensitive languages, based on the complexity of their underlying
structures.
Acquire insights into the relationship among
formal languages, formal grammars, and
automata.
Formal Grammars:
A formal grammar is a set of rules that define the syntax of a formal language.
Formal grammars can be classified into different types, such as regular grammars, context-
free grammars, and context-sensitive grammars, based on the complexity of the rules they use
to generate the language.
…Acquire insights into the relationship among
formal languages, formal grammars, and
automata.
Automata:
Automata are mathematical models of computation that can recognize and accept formal
languages.
The different types of automata, such as finite-state automata, pushdown automata, and
Turing machines, correspond to the different types of formal languages and grammars.
In summary,
Formal languages, formal grammars, and automata are interconnected concepts in the theory of
computation. Formal grammars provide the rules for generating formal languages, and
automata are the computational models that can recognize and accept those formal languages.
…Acquire insights into the relationship among
formal languages, formal grammars, and
automata.
1.Regular Languages:
1. Formal Grammar: Regular Grammars
2. Automata: Finite-State Automata (FSA)
3. Characteristics: Regular languages are the simplest and most restrictive class of formal
languages. They can be generated by regular grammars and recognized by finite-state
automata.
2.Context-Free Languages:
1. Formal Grammar: Context-Free Grammars (CFG)
2. Automata: Pushdown Automata (PDA)
3. Characteristics: Context-free languages are more expressive than regular languages. They
can be generated by context-free grammars and recognized by pushdown automata.
Identify different formal language classes and
their relationships
3. Context-Sensitive Languages:
1. Formal Grammar: Context-Sensitive Grammars (CSG)
2. Automata: Linear-Bounded Automata (LBA)
3. Characteristics: Context-sensitive languages are more expressive than context-free
languages. They can be generated by context-sensitive grammars and recognized by linear-
bounded automata.
4. Recursively Enumerable Languages:
1. Formal Grammar: Type-0 Grammars (Unrestricted Grammars)
2. Automata: Turing Machines (TM)
3. Characteristics: Recursively enumerable languages are the most expressive class of formal
languages. They can be generated by unrestricted grammars (type-0 grammars) and
recognized by Turing machines.
…Identify different formal language classes and
their relationships
•The relationships among these formal language classes can be summarized as
follows:
– Regular Languages Context-Free Languages Context-Sensitive
⊆ ⊆
Languages Recursively Enumerable Languages
⊆
– This means that every regular language is also a context-free language, every
context-free language is also a context-sensitive language, and every context-
sensitive language is also a recursively enumerable language.
…Identify different formal language classes and
their relationships
Refer Your Note!
Design grammars and recognizer for different
formal languages
Understand Complexity classes, P/NP/PSPACE,
reductions, hardness, completeness, hierarchy,
relationships between complexity classes. complexity
The End

More Related Content

PPTX
Types of Language in Theory of Computation
PDF
ChomskyPresentation.pdf
PPTX
Theory of automata introduction Lecture.pptx
PDF
Fafl notes [2010] (sjbit)
PDF
TOC in 8 hours.pdfvdvbnnhgfsxcvbmnvxsdfvb
PPT
Chomsky classification for types of grammars
PDF
Ch3 4 regular expression and grammar
PPTX
THEORYOFAUTOMATATHEORYOFAUTOMATATHEORYOFAUTOMATA.pptx
Types of Language in Theory of Computation
ChomskyPresentation.pdf
Theory of automata introduction Lecture.pptx
Fafl notes [2010] (sjbit)
TOC in 8 hours.pdfvdvbnnhgfsxcvbmnvxsdfvb
Chomsky classification for types of grammars
Ch3 4 regular expression and grammar
THEORYOFAUTOMATATHEORYOFAUTOMATATHEORYOFAUTOMATA.pptx

Similar to Automata_and_Complexity_Theommmmmmmry-RevisionforExitExam.ppt (20)

PPTX
Natural Language Processing Topics for Engineering students
PPTX
Describing Syntax and Semantics in ppl.pptx
PPTX
Natural Language Processing
PDF
Natural language Processing: Word Level Analysis
PPTX
Regular expression
DOCX
Natural Language Processing
PPTX
Unit-1 PPL PPTvvhvmmmmmmmmmmmmmmmmmmmmmm
PDF
Lecture Notes-Are Natural Languages Regular.pdf
PDF
Chomsky hierarchy
PDF
Mba ebooks ! Edhole
PDF
Free Ebooks Download ! Edhole
PDF
Automata
PPTX
COMPILER DESIGN LECTURES -UNIT-2 ST.pptx
PPTX
Syntactic Structures
DOCX
CS8501 THEORY OF COMPUTATION ...
PPTX
1. Introduction automata throry and intoduction
PPTX
1. Introduction to machine learning and AI
PDF
Introduction to the theory of computation
PPTX
NLP_KASHK: Introduction
PDF
Important Questions For Theory Of Computation
Natural Language Processing Topics for Engineering students
Describing Syntax and Semantics in ppl.pptx
Natural Language Processing
Natural language Processing: Word Level Analysis
Regular expression
Natural Language Processing
Unit-1 PPL PPTvvhvmmmmmmmmmmmmmmmmmmmmmm
Lecture Notes-Are Natural Languages Regular.pdf
Chomsky hierarchy
Mba ebooks ! Edhole
Free Ebooks Download ! Edhole
Automata
COMPILER DESIGN LECTURES -UNIT-2 ST.pptx
Syntactic Structures
CS8501 THEORY OF COMPUTATION ...
1. Introduction automata throry and intoduction
1. Introduction to machine learning and AI
Introduction to the theory of computation
NLP_KASHK: Introduction
Important Questions For Theory Of Computation
Ad

More from jacobdiriba (8)

PPTX
Chapter Two networking.pptxvggggggggggg n n n n n n n n n n n n n n n
PDF
rk ch 4.pdfBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
PDF
AI Chapter 3.pdfvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
PPT
ch01-Introduction Databases and Database Users.ppt
PPTX
SE_Sumerized.pptx nccccccccccmmmmmmmmmmmmmmmmmmmmmmmmmmmm
PDF
All chapters C++ - Copy.pdfyttttttttttttttttttttttttttttt
PDF
2.Security (1).pdfccccccccccccccccccccccccccccccccccccccccccccc
PPTX
chapter 4&5 system analysis ppt.puyyyyyyyyyyyyyyyyyyyyyyyyptx
Chapter Two networking.pptxvggggggggggg n n n n n n n n n n n n n n n
rk ch 4.pdfBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AI Chapter 3.pdfvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
ch01-Introduction Databases and Database Users.ppt
SE_Sumerized.pptx nccccccccccmmmmmmmmmmmmmmmmmmmmmmmmmmmm
All chapters C++ - Copy.pdfyttttttttttttttttttttttttttttt
2.Security (1).pdfccccccccccccccccccccccccccccccccccccccccccccc
chapter 4&5 system analysis ppt.puyyyyyyyyyyyyyyyyyyyyyyyyptx
Ad

Recently uploaded (20)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
master seminar digital applications in india
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Lesson notes of climatology university.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Basic Mud Logging Guide for educational purpose
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
2.FourierTransform-ShortQuestionswithAnswers.pdf
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
Pre independence Education in Inndia.pdf
VCE English Exam - Section C Student Revision Booklet
STATICS OF THE RIGID BODIES Hibbelers.pdf
Anesthesia in Laparoscopic Surgery in India
Lesson notes of climatology university.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Pharma ospi slides which help in ospi learning
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Basic Mud Logging Guide for educational purpose

Automata_and_Complexity_Theommmmmmmry-RevisionforExitExam.ppt

  • 2.  Alphabets and Strings: An alphabet is a finite set of symbols, and a string is a finite sequence of symbols from an alphabet.  Languages and Grammars: A language is a set of strings, and a grammar is a set of rules that generate a language.  Automata:  Finite Automata: A computational model that recognizes regular languages. It consists of a set of states, transitions between states, and an input alphabet.  Deterministic Finite Automata (DFA): A finite automaton where each state and input symbol uniquely determines the next state.  Non-deterministic Finite Automata (NFA): A finite automaton where the next state may not be uniquely determined by the current state and input symbol. Introduction
  • 3.  Regular Expressions: A formal notation for describing regular languages.  Connection between Regular Expression and Regular Languages: Regular expressions and regular grammars generate the same class of languages, known as regular languages.  Regular Grammar: A type of formal grammar that generates regular languages.  Pumping Lemma and Non-Regular Language Grammars: The pumping lemma is a tool used to prove that certain languages are not regular. Regular Expression and Regular languages
  • 4.  Context-Free Languages: A class of formal languages that can be generated by context- free grammars.  Parsing and Ambiguity: Parsing is the process of determining the syntactic structure of a string according to the rules of a grammar. Ambiguity arises when a string has multiple valid parse trees.  Sentential Forms and Derivation Tree or Parse Tree: Sentential forms are intermediate steps in deriving a string from a grammar's start symbol. Derivation trees or parse trees represent the hierarchical structure of how a string is derived from a grammar. Context-Free Languages
  • 5.  Simplification of Context-Free Grammars:  Methods for Transforming Grammars: Techniques to transform a grammar into an equivalent but simpler form.  Chomsky's Hierarchy of Grammars: A classification of formal grammars based on the restrictions placed on the production rules. …Context-Free Languages
  • 6. PDA: A computational model that recognizes context-free languages, with a stack to store and retrieve information. Pushdown Automata and Context-Free Languages: Pushdown automata and context-free grammars recognize the same class of languages. Deterministic Pushdown Automata: A special case of pushdown automata where the next state and stack operation are uniquely determined. Deterministic Context-Free Languages: The class of languages recognized by deterministic pushdown automata. Push Down Automata
  • 7. A Turing machine is a mathematical model of computation that consists of a finite-state control, a read/write head, and an infinite tape divided into cells. The tape represents the input, output, and working memory of the machine. The finite-state control determines the next action based on the current state and the symbol under the read/write head. Turing Machine (TM)
  • 8. Turing Decidable and Turing Acceptable Languages: A language is Turing-decidable (or recursive) if there exists a Turing machine that halts and accepts all strings in the language and rejects all strings not in the language. A language is Turing-acceptable (or recursively enumerable) if there exists a Turing machine that halts and accepts all strings in the language, but may not halt on strings not in the language. Undecidable Problems: •Some problems are not Turing-decidable, meaning there is no Turing machine that can solve them. These are called undecidable problems. •The most famous undecidable problem is the Halting Problem, …Turing Machine (TM)
  • 9. Turing machines are the fundamental model of computation in computability theory, and they define the class of Turing-decidable (recursive) and Turing-acceptable (recursively enumerable) languages. Computability
  • 11. The relationship among formal languages, formal grammars, and automata is a fundamental topic in computer science and the theory of computation. Formal Languages: A formal language is a set of strings (sequences of symbols) that are defined by a set of rules. Formal languages can be classified into different types, such as regular languages, context-free languages, and context-sensitive languages, based on the complexity of their underlying structures. Acquire insights into the relationship among formal languages, formal grammars, and automata.
  • 12. Formal Grammars: A formal grammar is a set of rules that define the syntax of a formal language. Formal grammars can be classified into different types, such as regular grammars, context- free grammars, and context-sensitive grammars, based on the complexity of the rules they use to generate the language. …Acquire insights into the relationship among formal languages, formal grammars, and automata.
  • 13. Automata: Automata are mathematical models of computation that can recognize and accept formal languages. The different types of automata, such as finite-state automata, pushdown automata, and Turing machines, correspond to the different types of formal languages and grammars. In summary, Formal languages, formal grammars, and automata are interconnected concepts in the theory of computation. Formal grammars provide the rules for generating formal languages, and automata are the computational models that can recognize and accept those formal languages. …Acquire insights into the relationship among formal languages, formal grammars, and automata.
  • 14. 1.Regular Languages: 1. Formal Grammar: Regular Grammars 2. Automata: Finite-State Automata (FSA) 3. Characteristics: Regular languages are the simplest and most restrictive class of formal languages. They can be generated by regular grammars and recognized by finite-state automata. 2.Context-Free Languages: 1. Formal Grammar: Context-Free Grammars (CFG) 2. Automata: Pushdown Automata (PDA) 3. Characteristics: Context-free languages are more expressive than regular languages. They can be generated by context-free grammars and recognized by pushdown automata. Identify different formal language classes and their relationships
  • 15. 3. Context-Sensitive Languages: 1. Formal Grammar: Context-Sensitive Grammars (CSG) 2. Automata: Linear-Bounded Automata (LBA) 3. Characteristics: Context-sensitive languages are more expressive than context-free languages. They can be generated by context-sensitive grammars and recognized by linear- bounded automata. 4. Recursively Enumerable Languages: 1. Formal Grammar: Type-0 Grammars (Unrestricted Grammars) 2. Automata: Turing Machines (TM) 3. Characteristics: Recursively enumerable languages are the most expressive class of formal languages. They can be generated by unrestricted grammars (type-0 grammars) and recognized by Turing machines. …Identify different formal language classes and their relationships
  • 16. •The relationships among these formal language classes can be summarized as follows: – Regular Languages Context-Free Languages Context-Sensitive ⊆ ⊆ Languages Recursively Enumerable Languages ⊆ – This means that every regular language is also a context-free language, every context-free language is also a context-sensitive language, and every context- sensitive language is also a recursively enumerable language. …Identify different formal language classes and their relationships
  • 17. Refer Your Note! Design grammars and recognizer for different formal languages
  • 18. Understand Complexity classes, P/NP/PSPACE, reductions, hardness, completeness, hierarchy, relationships between complexity classes. complexity