SlideShare a Scribd company logo
1 of 23
1
RECAP Lecture 7
FA of EVEN EVEN, FA corresponding to finite
languages(using both methods), Transition
graphs.
2
Recap Definition of TG continued …
Definition: A Transition graph (TG), is a
collection of the followings
1)Finite number of states, at least one of which
is start state and some (maybe none) final
states.
2)Finite set of input letters (Σ) from which input
strings are formed.
3)Finite set of transitions that show how to go
from one state to another based on reading
specified substrings of input letters, possibly
even the null string (Λ).
3
Note
It is to be noted that in TG there may exist more
than one paths for certain string, while there
may not exist any path for certain string as well.
If there exists at least one path for a certain
string, starting from initial state and ending in a
final state, the string is supposed to be accepted
by the TG, otherwise the string is supposed to
be rejected. Obviously collection of accepted
strings is the language accepted by the TG.
4
Example
Consider the Language L , defined over
Σ = {a, b} of all strings including Λ. The
language L may be accepted by the following
TG
The language L may also be accepted by the
following TG
a,b
+
Λ
a,b
-
5
Example Continued …
TG1
TG2
a,b
±
a,b
+±
a,b
6
Example
Consider the following TGs
-
-
a,b
-
a,b
a,b
TG3
TG2
TG1
1
1
7
Example Continued …
It may be observed that in the first TG, no
transition has been shown. Hence this TG does
not accept any string, defined over any
alphabet. In TG2
there are transitions for a and b
at initial state but there is no transition at state 1.
This TG still does not accept any string. In TG3
there are transitions at both initial state and
state 1, but it does not accept any string.
8
Example Continued …
Thus none of TG1
, TG2
andTG3
accepts any string,
i.e. these TGs accept empty language. It may
be noted that TG1
and TG2
are TGs but not FA,
while TG3
is both TG and FA as well.
It may be noted that every FA is a TG as well, but
the converse may not be true, i.e. every TG may
not be an FA.
9
Example
Consider the language L of strings, defined over
Σ={a, b}, starting with b. The language L
may be expressed by RE b(a + b)*
, may be
accepted by the following TG
b–– +
a,b
10
Example
Consider the language L of strings, defined over
Σ={a, b}, not ending in b. The language L
may be expressed by RE Λ + (a + b)*
a, may be
accepted by the following TG
a–– +
a,b
+
Λ
11
Task solution …
Using the technique discussed by Martin, build
an FA accepting the following language
L = {w  {a,b}*
: length(w)  2 and second letter of
w, from right is a}.
Solution:The language L may be
expressed by the regular expression
(a+b)*
(aa+ab)
This language may be accepted by the
following FA
12
Task continued …
a
a
b
a
b
Λ
a
ba
a
a
b
b
b
b
ab
ab
ba
bb
aa
13
Task solution …
Using the technique discussed by Martin, build
an FA accepting the following language
L = {w  {a,b}*
: w neither ends in ab nor in ba}.
Solution:The language L may be expressed by
the regular expression
Λ + a + b + (a+b)*
(aa+bb)
This language may be accepted by the following
FA
14
Task continued …
a
a
b
a
a
b
a
a
b
b
b
b
ab
ab
ba
b
a
Λ
bb
aa
15
TASK
Build a TG accepting the language of strings,
defined over Σ={a, b}, ending in b.
16
Example
Consider the Language L of strings,
defined over Σ = {a, b}, containing
double a.
The language L may be expressed by the
following regular expression
(a+b)*
(aa) (a+b)*
.
This language may be accepted by the
following TG
17
Example Continued …
b,a
1- 2+
b,a
aa
18
Example
Consider the language L of strings, defined over
Σ={a, b}, having double a or double b.
The language L can be expressed by RE
(a+b)*
(aa + bb) (a+b)*.
The above language may also be expressed by
the following TGs.
19
a
b
a
b
a,b
–– +
x
y
a,b
Example continued …
20
OR
aa,bb
a,ba,b
+-
21
OR
aa
a,ba,b
2+1-
bb
a,ba,b
4+3-
22
Note
In the above TG if the states are not labeled
then it may not be considered to be a single TG
23
Summing Up
TG definition, Examples:accepting all
strings, accepting none, starting with b,
not ending in b, containing aa,
containing aa or bb

More Related Content

What's hot

What's hot (20)

Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Lesson 12
Lesson 12Lesson 12
Lesson 12
 
Regular Expression Examples.pptx
Regular Expression Examples.pptxRegular Expression Examples.pptx
Regular Expression Examples.pptx
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
2.1 & 2.2 grammar introduction – types of grammar
2.1 & 2.2 grammar introduction – types of grammar2.1 & 2.2 grammar introduction – types of grammar
2.1 & 2.2 grammar introduction – types of grammar
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Generalized transition graphs
Generalized transition graphsGeneralized transition graphs
Generalized transition graphs
 
Language
LanguageLanguage
Language
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 

Similar to Recap Lecture 7 FA and TG concepts

CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...parmeet834
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghggggggggggggggggggggggggggggggggggadugnanegero
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxRaviAr5
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptxHarisPrince
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.pptArwaKhallouf
 
Chapter Three(2)
Chapter Three(2)Chapter Three(2)
Chapter Three(2)bolovv
 
Pushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docxPushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docxwoodruffeloisa
 
flatPresentation.pdf
flatPresentation.pdfflatPresentation.pdf
flatPresentation.pdfSohebMohammad
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 028threspecter
 
Lesson 01.ppt
Lesson 01.pptLesson 01.ppt
Lesson 01.pptImXaib
 

Similar to Recap Lecture 7 FA and TG concepts (20)

Lesson 09.ppt
Lesson 09.pptLesson 09.ppt
Lesson 09.ppt
 
5.ppt
5.ppt5.ppt
5.ppt
 
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
 
Hwsoln03 toc
Hwsoln03 tocHwsoln03 toc
Hwsoln03 toc
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptx
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.ppt
 
To lec 03
To lec 03To lec 03
To lec 03
 
Chapter Three(2)
Chapter Three(2)Chapter Three(2)
Chapter Three(2)
 
Pushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docxPushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docx
 
L_2_apl.pptx
L_2_apl.pptxL_2_apl.pptx
L_2_apl.pptx
 
flatPresentation.pdf
flatPresentation.pdfflatPresentation.pdf
flatPresentation.pdf
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 02
 
QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
 
Lesson 01.ppt
Lesson 01.pptLesson 01.ppt
Lesson 01.ppt
 

Recently uploaded

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 

Recap Lecture 7 FA and TG concepts

  • 1. 1 RECAP Lecture 7 FA of EVEN EVEN, FA corresponding to finite languages(using both methods), Transition graphs.
  • 2. 2 Recap Definition of TG continued … Definition: A Transition graph (TG), is a collection of the followings 1)Finite number of states, at least one of which is start state and some (maybe none) final states. 2)Finite set of input letters (Σ) from which input strings are formed. 3)Finite set of transitions that show how to go from one state to another based on reading specified substrings of input letters, possibly even the null string (Λ).
  • 3. 3 Note It is to be noted that in TG there may exist more than one paths for certain string, while there may not exist any path for certain string as well. If there exists at least one path for a certain string, starting from initial state and ending in a final state, the string is supposed to be accepted by the TG, otherwise the string is supposed to be rejected. Obviously collection of accepted strings is the language accepted by the TG.
  • 4. 4 Example Consider the Language L , defined over Σ = {a, b} of all strings including Λ. The language L may be accepted by the following TG The language L may also be accepted by the following TG a,b + Λ a,b -
  • 6. 6 Example Consider the following TGs - - a,b - a,b a,b TG3 TG2 TG1 1 1
  • 7. 7 Example Continued … It may be observed that in the first TG, no transition has been shown. Hence this TG does not accept any string, defined over any alphabet. In TG2 there are transitions for a and b at initial state but there is no transition at state 1. This TG still does not accept any string. In TG3 there are transitions at both initial state and state 1, but it does not accept any string.
  • 8. 8 Example Continued … Thus none of TG1 , TG2 andTG3 accepts any string, i.e. these TGs accept empty language. It may be noted that TG1 and TG2 are TGs but not FA, while TG3 is both TG and FA as well. It may be noted that every FA is a TG as well, but the converse may not be true, i.e. every TG may not be an FA.
  • 9. 9 Example Consider the language L of strings, defined over Σ={a, b}, starting with b. The language L may be expressed by RE b(a + b)* , may be accepted by the following TG b–– + a,b
  • 10. 10 Example Consider the language L of strings, defined over Σ={a, b}, not ending in b. The language L may be expressed by RE Λ + (a + b)* a, may be accepted by the following TG a–– + a,b + Λ
  • 11. 11 Task solution … Using the technique discussed by Martin, build an FA accepting the following language L = {w  {a,b}* : length(w)  2 and second letter of w, from right is a}. Solution:The language L may be expressed by the regular expression (a+b)* (aa+ab) This language may be accepted by the following FA
  • 13. 13 Task solution … Using the technique discussed by Martin, build an FA accepting the following language L = {w  {a,b}* : w neither ends in ab nor in ba}. Solution:The language L may be expressed by the regular expression Λ + a + b + (a+b)* (aa+bb) This language may be accepted by the following FA
  • 15. 15 TASK Build a TG accepting the language of strings, defined over Σ={a, b}, ending in b.
  • 16. 16 Example Consider the Language L of strings, defined over Σ = {a, b}, containing double a. The language L may be expressed by the following regular expression (a+b)* (aa) (a+b)* . This language may be accepted by the following TG
  • 18. 18 Example Consider the language L of strings, defined over Σ={a, b}, having double a or double b. The language L can be expressed by RE (a+b)* (aa + bb) (a+b)*. The above language may also be expressed by the following TGs.
  • 22. 22 Note In the above TG if the states are not labeled then it may not be considered to be a single TG
  • 23. 23 Summing Up TG definition, Examples:accepting all strings, accepting none, starting with b, not ending in b, containing aa, containing aa or bb