SlideShare a Scribd company logo
Lecture # 10 Recap lecture 9
 TGs accepting the languages: containing aaa
or bbb, beginning and ending in different
letters, beginning and ending in same letters,
EVEN-EVEN, a’s occur in even clumps and
ends in three or more b’s, example showing
different paths traced by one string,
Definition of GTG
Task Solution …
Build a TG accepting the language L of
strings, defined over Σ={a, b}, beginning
with and ending in the same letters
Solution:The language L may be expressed
by
a+b+a(a + b)*
a + b(a + b)*
b
The language L may be accepted by the
following TG
Task Solution
b
b
3+
a
1-
a
a
a
a
4+
b
2-
.b
b
a
b
5 6
Generalized Transition Graphs
A generalized transition graph (GTG) is a
collection of three things
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) Directed edges connecting some pair of
states labeled with regular expression.
It may be noted that in GTG, the labels of
transition edges are corresponding
regular expressions
Example
Consider the language L of strings, defined
over Σ={a , b}, containing double a or double
b. The language L can be expressed by the
following regular expression
(a + b)*
(aa + bb) (a + b)*
The language L may be accepted by the
following GTG.
Example continued …
aa + bb
a+b
a+b
+
-
(a + b)* (aa + bb) (a + b)*
+
-
Example
 Consider the Language L of strings, defined
over Σ = {a, b}, beginning with and ending
in same letters.
The language L may be expressed by the
following regular expression
(a + b) + a(a + b)*
a + b(a + b)*
b
This language may be accepted by the
following GTG
Example
b+
+
a+
a+
+
b+
b+
a+
–
b+
a+
+
+
– +
(a+b) + a(a+b)*a +b(a+b)*b
Example
Consider the language L of strings of, defined
over Σ = {a, b}, beginning and ending in
different letters.
The language L may be expressed by RE
a(a + b)*
b + b(a + b)*
a
The language L may be accepted by the
following GTG
Example Continued …
b(a+b)*
a
a( a+b)*
b
+
-
+
The language L may be accepted by the
following GTG as well
Example Continued …
b(a+b)*
a + a( a+b)*
b
- +
Example
Consider the language L of strings, defined
over Σ={a, b}, having triple a or triple b.
The language L may be expressed by RE
(a+b)*
(aaa + bbb) (a+b)*
This language may be accepted by the
following GTG
Example Continued …
aaa+bbb
a+b
a+b
+
-
(a+b)*
(aaa+bbb)(a+b)*
+
-
OR
Nondeterminism
 TGs and GTGs provide certain relaxations i.e.
there may exist more than one path for a
certain string or there may not be any path
for a certain string, this property creates
nondeterminism and it can also help in
differentiating TGs or GTGs from FAs. Hence
an FA is also called a Deterministic Finite
Automaton (DFA).
Kleene’s Theorem
 If a language can be expressed by
1. FA or
2. TG or
3. RE
then it can also be expressed by other two
as well.
It may be noted that the theorem is proved,
proving the following three parts
Kleene’s Theorem continued …
Kleene’s Theorem Part I
If a language can be accepted by an FA then it
can be accepted by a TG as well.
Kleene’s Theorem Part II
If a language can be accepted by a TG then it
can be expressed by an RE as well.
Kleene’s Theorem Part III
If a language can be expressed by a RE then it
can be accepted by an FA as well.
Kleene’s Theorem continued …
Proof(Kleene’s Theorem Part I)
Since every FA can be considered to be a TG
as well, therefore there is nothing to prove.
Summing Up
 Definition of GTG, examples of GTG accepting
the languages of strings: containing aa or bb,
beginning with and ending in same letters,
beginning with and ending in different
letters, containing aaa or bbb,
 Nondeterminism, Kleene’s theorem (part I,
part II, part III), proof of Kleene’s theorem
part I

More Related Content

PPT
PPT
Lecture 7
PPT
PPT
Lesson 09.ppt
PDF
Lesson 07 GTG-Kleens Theorem.ppt.pdf for Masters
PPT
PPT
Lecture 8
PPT
Lecture 6
Lecture 7
Lesson 09.ppt
Lesson 07 GTG-Kleens Theorem.ppt.pdf for Masters
Lecture 8
Lecture 6

Similar to Lesson_10.pptx data science technology to create self-driving cars (20)

PPT
Theory of Automata Power Point Slides Lecture 05.ppt
PPT
PPT
Chapter Three(2)
PPT
Lecture 5
PPTX
Lesson_3.pptx database management of employee
PPT
Lec 03-Regular Expression.pptLec 01-IntroductionLec 01-IntroductionLec 01-Int...
PPT
Lecture 3,4
PPT
Lecture 3,4
PDF
Equal regular expression / for theory of automsta.pdf
PPT
PPT
Lesson 02.ppt computer science data analysis
PPT
PPT
PPT
Lesson 02
PPT
PPT
To lec 03
PPT
PPT
Lesson 03
PPTX
L_2_apl.pptx
DOC
Generalized transition graphs
Theory of Automata Power Point Slides Lecture 05.ppt
Chapter Three(2)
Lecture 5
Lesson_3.pptx database management of employee
Lec 03-Regular Expression.pptLec 01-IntroductionLec 01-IntroductionLec 01-Int...
Lecture 3,4
Lecture 3,4
Equal regular expression / for theory of automsta.pdf
Lesson 02.ppt computer science data analysis
Lesson 02
To lec 03
Lesson 03
L_2_apl.pptx
Generalized transition graphs
Ad

Recently uploaded (20)

PDF
The scientific heritage No 166 (166) (2025)
PDF
Sciences of Europe No 170 (2025)
PDF
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PDF
Looking into the jet cone of the neutrino-associated very high-energy blazar ...
PPTX
Microbiology with diagram medical studies .pptx
PPTX
BIOMOLECULES PPT........................
PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PDF
Placing the Near-Earth Object Impact Probability in Context
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PDF
HPLC-PPT.docx high performance liquid chromatography
PPTX
neck nodes and dissection types and lymph nodes levels
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PDF
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
PDF
lecture 2026 of Sjogren's syndrome l .pdf
PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
PDF
. Radiology Case Scenariosssssssssssssss
PPTX
ECG_Course_Presentation د.محمد صقران ppt
The scientific heritage No 166 (166) (2025)
Sciences of Europe No 170 (2025)
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
Looking into the jet cone of the neutrino-associated very high-energy blazar ...
Microbiology with diagram medical studies .pptx
BIOMOLECULES PPT........................
POSITIONING IN OPERATION THEATRE ROOM.ppt
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Placing the Near-Earth Object Impact Probability in Context
Phytochemical Investigation of Miliusa longipes.pdf
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
HPLC-PPT.docx high performance liquid chromatography
neck nodes and dissection types and lymph nodes levels
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
lecture 2026 of Sjogren's syndrome l .pdf
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
. Radiology Case Scenariosssssssssssssss
ECG_Course_Presentation د.محمد صقران ppt
Ad

Lesson_10.pptx data science technology to create self-driving cars

  • 1. Lecture # 10 Recap lecture 9  TGs accepting the languages: containing aaa or bbb, beginning and ending in different letters, beginning and ending in same letters, EVEN-EVEN, a’s occur in even clumps and ends in three or more b’s, example showing different paths traced by one string, Definition of GTG
  • 2. Task Solution … Build a TG accepting the language L of strings, defined over Σ={a, b}, beginning with and ending in the same letters Solution:The language L may be expressed by a+b+a(a + b)* a + b(a + b)* b The language L may be accepted by the following TG
  • 4. Generalized Transition Graphs A generalized transition graph (GTG) is a collection of three things 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) Directed edges connecting some pair of states labeled with regular expression. It may be noted that in GTG, the labels of transition edges are corresponding regular expressions
  • 5. Example Consider the language L of strings, defined over Σ={a , b}, containing double a or double b. The language L can be expressed by the following regular expression (a + b)* (aa + bb) (a + b)* The language L may be accepted by the following GTG.
  • 6. Example continued … aa + bb a+b a+b + - (a + b)* (aa + bb) (a + b)* + -
  • 7. Example  Consider the Language L of strings, defined over Σ = {a, b}, beginning with and ending in same letters. The language L may be expressed by the following regular expression (a + b) + a(a + b)* a + b(a + b)* b This language may be accepted by the following GTG
  • 9. Example Consider the language L of strings of, defined over Σ = {a, b}, beginning and ending in different letters. The language L may be expressed by RE a(a + b)* b + b(a + b)* a The language L may be accepted by the following GTG
  • 10. Example Continued … b(a+b)* a a( a+b)* b + - + The language L may be accepted by the following GTG as well
  • 12. Example Consider the language L of strings, defined over Σ={a, b}, having triple a or triple b. The language L may be expressed by RE (a+b)* (aaa + bbb) (a+b)* This language may be accepted by the following GTG
  • 14. Nondeterminism  TGs and GTGs provide certain relaxations i.e. there may exist more than one path for a certain string or there may not be any path for a certain string, this property creates nondeterminism and it can also help in differentiating TGs or GTGs from FAs. Hence an FA is also called a Deterministic Finite Automaton (DFA).
  • 15. Kleene’s Theorem  If a language can be expressed by 1. FA or 2. TG or 3. RE then it can also be expressed by other two as well. It may be noted that the theorem is proved, proving the following three parts
  • 16. Kleene’s Theorem continued … Kleene’s Theorem Part I If a language can be accepted by an FA then it can be accepted by a TG as well. Kleene’s Theorem Part II If a language can be accepted by a TG then it can be expressed by an RE as well. Kleene’s Theorem Part III If a language can be expressed by a RE then it can be accepted by an FA as well.
  • 17. Kleene’s Theorem continued … Proof(Kleene’s Theorem Part I) Since every FA can be considered to be a TG as well, therefore there is nothing to prove.
  • 18. Summing Up  Definition of GTG, examples of GTG accepting the languages of strings: containing aa or bb, beginning with and ending in same letters, beginning with and ending in different letters, containing aaa or bbb,  Nondeterminism, Kleene’s theorem (part I, part II, part III), proof of Kleene’s theorem part I