SlideShare a Scribd company logo
Theory of Computation
by
Savita Baban Ghatte
 Symbol -
e.g. –a,b,c,0,1,2,3,………
 Alphabel -
Collection of symbols denoted by ∑
e.g. {a,b}, {0,1}, {0,1,2}, {a,b,c} ,{b,c,d,e}
 String-
Sequence of symbols
e.g.- a,b,0,1,aa,bb,abcd, 01, 0123
 Language
Set of strings
e.g. ∑= {a,b}
L1= { Set of all strings of length 2}
={aa,bb,ab,ba}
L2={ Set of all strings of length 3}
={aaa,aab,aba,baa,
abb,bba,bbb,bba,bab}
Finite State Machine
 FSM is simplest model of computation
 FSM is an abstract mathematical
model
 It has very limited memory
Finite State Machine
 Mathematically FSM is defined using
Five tuples (Q, ∑, q0, F, δ)
1.Q: finite set of states
2. ∑: finite set of input symbol
3. q0: initial state
4. F: final state
5. δ: Transition function
 Transition function can be define as
 δ: Q x ∑ →Q
 FA has two states:
accept state or reject state.
Types of Finite State Machine
 Finite Automata
 Finite Automata with output
1) Moore Machine
2) Mealy Machine
 Finite Automata without output
1) Deterministic Finite Automata (DFA)
2) Non deterministic Finite Automata
(NFA)
3) Epsilon NFA
DFA
 DFA stands for Deterministic Finite
Automata.
 In DFA, the input character goes to
one state only
 DFA doesn't accept the null move that
means the DFA cannot change state
without any input character.
 DFA is defined using five tuples
 {Q, ∑, q0, F, δ}
DFA
 DFA has five tuples {Q, ∑, q0, F, δ}
 Q: set of all states
∑: finite set of input symbol where
 δ: Q x ∑ →Q
 q0: initial state
 F: final state
 δ: Transition function
NDFA
 NDFA refer to the Non Deterministic
Finite Automata.
 It is used to transit the any number of
states for a particular input.
 NDFA accepts the NULL move that
means it can change state without
reading the symbols.
NDFA
 NDFA also has five states same as
DFA. But NDFA has different transition
function.
 Transition function of NDFA can be
defined as:
 δ: Q x ∑ →2Q
Regular Language
 A language is regular language if
some Finite State Machine (FSM)
recognizes it.
 The memory of Finite State Machine
is very limited.
 FSM cannot store string.
Regular Language
 Not regular language
- The language which require memory
to store string.
- The language which are not
recognized by any Finite state
machine.
- E.g. abab, 011011, anbn
Operations on Regular
Language
 The operations on regular language
are:
 Union: If L1and L2 are two regular
languages then their union L1 U L2 is
also a union.
L1 U L2 = {s | s is in L1 or s is in L2}
 Intersection: If L1 and L2 are two
regular languages then their
intersection is also an intersection.
 L1 ⋂ L2 = {st | s is in L1 and t is in L2}
Operations on Regular
Language
 Kleene closure:
If L is a regular language then its kleene
closure.
L* = Zero or more occurrence of langua
ge L.
Here L is a regular language.

More Related Content

Similar to Theory of Computation.pptx

Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdfAutomata_Theory_and_compiler_design_UNIT-1.pptx.pdf
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
TONY562
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
TANZINTANZINA
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
prasadmvreddy
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 
Chapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfChapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdf
dawod yimer
 
Lex analysis
Lex analysisLex analysis
Lex analysis
Suhit Kulkarni
 
Regular Expression to Finite Automata
Regular Expression to Finite AutomataRegular Expression to Finite Automata
Regular Expression to Finite Automata
Archana Gopinath
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Rushabh2428
 
finiteautomata-160104102657.pptx
finiteautomata-160104102657.pptxfiniteautomata-160104102657.pptx
finiteautomata-160104102657.pptx
StudyvAbhi
 
Automata theory
Automata theoryAutomata theory
Automata theory
Pardeep Vats
 
Finite automata
Finite automataFinite automata
Finite automata
Bipul Roy Bpl
 
Flat notes iii i (1)(7-9-20)
Flat notes iii i (1)(7-9-20)Flat notes iii i (1)(7-9-20)
Flat notes iii i (1)(7-9-20)
saithirumalg
 
language , grammar and automata
language , grammar and automatalanguage , grammar and automata
language , grammar and automata
ElakkiyaS11
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
RaviAr5
 
Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
NAMRATA BORKAR
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
MadniFareed1
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
Dattatray Gandhmal
 
02-Lexical-Analysis.ppt
02-Lexical-Analysis.ppt02-Lexical-Analysis.ppt
02-Lexical-Analysis.ppt
BabanDeep5
 
automata theory bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
automata theory                   bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...automata theory                   bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
automata theory bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
manishatapale
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata
parmeet834
 

Similar to Theory of Computation.pptx (20)

Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdfAutomata_Theory_and_compiler_design_UNIT-1.pptx.pdf
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Chapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfChapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdf
 
Lex analysis
Lex analysisLex analysis
Lex analysis
 
Regular Expression to Finite Automata
Regular Expression to Finite AutomataRegular Expression to Finite Automata
Regular Expression to Finite Automata
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
 
finiteautomata-160104102657.pptx
finiteautomata-160104102657.pptxfiniteautomata-160104102657.pptx
finiteautomata-160104102657.pptx
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Finite automata
Finite automataFinite automata
Finite automata
 
Flat notes iii i (1)(7-9-20)
Flat notes iii i (1)(7-9-20)Flat notes iii i (1)(7-9-20)
Flat notes iii i (1)(7-9-20)
 
language , grammar and automata
language , grammar and automatalanguage , grammar and automata
language , grammar and automata
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
 
Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
 
02-Lexical-Analysis.ppt
02-Lexical-Analysis.ppt02-Lexical-Analysis.ppt
02-Lexical-Analysis.ppt
 
automata theory bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
automata theory                   bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...automata theory                   bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
automata theory bcbcvbcbvcbbbbbbvcbcbvcbcbcbcvbcvbvcbcvbcvb...
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata
 

Recently uploaded

Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 

Recently uploaded (20)

Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 

Theory of Computation.pptx

  • 2.  Symbol - e.g. –a,b,c,0,1,2,3,………  Alphabel - Collection of symbols denoted by ∑ e.g. {a,b}, {0,1}, {0,1,2}, {a,b,c} ,{b,c,d,e}  String- Sequence of symbols e.g.- a,b,0,1,aa,bb,abcd, 01, 0123
  • 3.  Language Set of strings e.g. ∑= {a,b} L1= { Set of all strings of length 2} ={aa,bb,ab,ba} L2={ Set of all strings of length 3} ={aaa,aab,aba,baa, abb,bba,bbb,bba,bab}
  • 4. Finite State Machine  FSM is simplest model of computation  FSM is an abstract mathematical model  It has very limited memory
  • 5. Finite State Machine  Mathematically FSM is defined using Five tuples (Q, ∑, q0, F, δ) 1.Q: finite set of states 2. ∑: finite set of input symbol 3. q0: initial state 4. F: final state 5. δ: Transition function
  • 6.  Transition function can be define as  δ: Q x ∑ →Q  FA has two states: accept state or reject state.
  • 7. Types of Finite State Machine  Finite Automata  Finite Automata with output 1) Moore Machine 2) Mealy Machine  Finite Automata without output 1) Deterministic Finite Automata (DFA) 2) Non deterministic Finite Automata (NFA) 3) Epsilon NFA
  • 8. DFA  DFA stands for Deterministic Finite Automata.  In DFA, the input character goes to one state only  DFA doesn't accept the null move that means the DFA cannot change state without any input character.  DFA is defined using five tuples  {Q, ∑, q0, F, δ}
  • 9. DFA  DFA has five tuples {Q, ∑, q0, F, δ}  Q: set of all states ∑: finite set of input symbol where  δ: Q x ∑ →Q  q0: initial state  F: final state  δ: Transition function
  • 10. NDFA  NDFA refer to the Non Deterministic Finite Automata.  It is used to transit the any number of states for a particular input.  NDFA accepts the NULL move that means it can change state without reading the symbols.
  • 11. NDFA  NDFA also has five states same as DFA. But NDFA has different transition function.  Transition function of NDFA can be defined as:  δ: Q x ∑ →2Q
  • 12. Regular Language  A language is regular language if some Finite State Machine (FSM) recognizes it.  The memory of Finite State Machine is very limited.  FSM cannot store string.
  • 13. Regular Language  Not regular language - The language which require memory to store string. - The language which are not recognized by any Finite state machine. - E.g. abab, 011011, anbn
  • 14. Operations on Regular Language  The operations on regular language are:  Union: If L1and L2 are two regular languages then their union L1 U L2 is also a union. L1 U L2 = {s | s is in L1 or s is in L2}  Intersection: If L1 and L2 are two regular languages then their intersection is also an intersection.  L1 ⋂ L2 = {st | s is in L1 and t is in L2}
  • 15. Operations on Regular Language  Kleene closure: If L is a regular language then its kleene closure. L* = Zero or more occurrence of langua ge L. Here L is a regular language.