SlideShare a Scribd company logo
1 of 33
Lecture # 7
Automata Theory and formal languages
(CSC-307)
Muhamad Shahzeb
Defining Languages (continued)…
 (Transition Graph)
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 Λ.
Deterministic vs Non-Determeinistic Models
 In deterministic finite automata, there's exactly one state transition for
every input symbol-state pair. There are also no epsilon transitions,
meaning that you're not allowed to change states without consuming
anything from the input.
 In non-deterministic finite automata, there can be 0 or more state
transitions for every input-state pair. You can also have epsilon
transitions.
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.
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
Example Continued …
TG1
TG2
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
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
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
Example Continued …
Multiple paths (options) are visible for Double a.
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.
Example continued …
OR
OR
Note
In the above TG if the states are not labeled then it
may not be considered to be a single TG
Example
Consider the language L of strings, defined over
Σ={a, b}, having (containing) 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
TG
Example Continued …
OR
OR
Example
Consider the language L of strings, 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
TG
Example continued …
Example
Consider the Language L of strings of length
two or more, defined over Σ = {a, b},
beginning with and ending in same letters.
The language L may be expressed by the following
regular expression
a(a + b)*a + b(a + b)*b
This language may be accepted by the following
TG
Example Continued …
Example
Consider the EVEN-EVEN language, defined over
Σ={a, b}.
As discussed earlier that EVEN-EVEN language
can be expressed by a regular expression
( aa + bb + (ab+ba)(aa+bb)*(ab+ba) )*
The language EVEN-EVEN may be accepted by
the following TG
Example continued …
Example
Consider the language L, defined over Σ={a, b}, in
which a’s occur only in even clumps (bundles)
and that ends in three or more b’s.
The language L can be expressed by its regular
expression
(aa)*b ( b+(aa(aa)*b) )* bb
OR
(aa)*b ( b+(aa)+
b )* bb OR Think another RE
The language L may be accepted by the following
TG
Example Continued …
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 …
Or
Example
Consider the language L of strings, defined over
Σ={a,b},that start and ends with different letters.
The language L can be expressed by the following
regular expression
a(a+b)*b + b(a+b)*a
The language L may be accepted by the following
GTG.
Example continued …
Or
Thank You…

More Related Content

What's hot

Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal languageRabia Khalid
 
Chapter1 Formal Language and Automata Theory
Chapter1 Formal Language and Automata TheoryChapter1 Formal Language and Automata Theory
Chapter1 Formal Language and Automata TheoryTsegazeab Asgedom
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computationprasadmvreddy
 
Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2shah zeb
 
Chomsky classification of Language
Chomsky classification of LanguageChomsky classification of Language
Chomsky classification of LanguageDipankar Boruah
 
Automata theory
Automata theoryAutomata theory
Automata theorycolleges
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
Turing Machine
Turing MachineTuring Machine
Turing MachineRajendran
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translationAkshaya Arunan
 
Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expressionAnimesh Chaturvedi
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02hamzamughal39
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free GrammarsMarina Santini
 
Formal language
Formal languageFormal language
Formal languageRajendran
 

What's hot (20)

Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Chapter1 Formal Language and Automata Theory
Chapter1 Formal Language and Automata TheoryChapter1 Formal Language and Automata Theory
Chapter1 Formal Language and Automata Theory
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Lesson 12
Lesson 12Lesson 12
Lesson 12
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2
 
Chomsky classification of Language
Chomsky classification of LanguageChomsky classification of Language
Chomsky classification of Language
 
Language
LanguageLanguage
Language
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translation
 
Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expression
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free Grammars
 
Formal language
Formal languageFormal language
Formal language
 
Automata theory
Automata theoryAutomata theory
Automata theory
 

Similar to Automata Theory Lecture (CSC-307

Similar to Automata Theory Lecture (CSC-307 (20)

Lesson 10
Lesson 10Lesson 10
Lesson 10
 
Lesson 09.ppt
Lesson 09.pptLesson 09.ppt
Lesson 09.ppt
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Chapter Three(2)
Chapter Three(2)Chapter Three(2)
Chapter Three(2)
 
Lesson 04
Lesson 04Lesson 04
Lesson 04
 
To lec 03
To lec 03To lec 03
To lec 03
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 02
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
L_2_apl.pptx
L_2_apl.pptxL_2_apl.pptx
L_2_apl.pptx
 
Regular Expression
Regular ExpressionRegular Expression
Regular Expression
 
Theory of Automata ___ Basis ...........
Theory of Automata ___ Basis ...........Theory of Automata ___ Basis ...........
Theory of Automata ___ Basis ...........
 
Lex analysis
Lex analysisLex analysis
Lex analysis
 
5.ppt
5.ppt5.ppt
5.ppt
 
Regular Expression in Compiler design
Regular Expression in Compiler designRegular Expression in Compiler design
Regular Expression in Compiler design
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
02. chapter 3 lexical analysis
02. chapter 3   lexical analysis02. chapter 3   lexical analysis
02. chapter 3 lexical analysis
 
Chapter Two(1)
Chapter Two(1)Chapter Two(1)
Chapter Two(1)
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 

Automata Theory Lecture (CSC-307

  • 1. Lecture # 7 Automata Theory and formal languages (CSC-307) Muhamad Shahzeb
  • 2. Defining Languages (continued)…  (Transition Graph) 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. Deterministic vs Non-Determeinistic Models  In deterministic finite automata, there's exactly one state transition for every input symbol-state pair. There are also no epsilon transitions, meaning that you're not allowed to change states without consuming anything from the input.  In non-deterministic finite automata, there can be 0 or more state transitions for every input-state pair. You can also have epsilon transitions.
  • 4. 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.
  • 5. 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
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. Example Continued … Multiple paths (options) are visible for Double a.
  • 11. 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.
  • 13. OR
  • 14. OR
  • 15. Note In the above TG if the states are not labeled then it may not be considered to be a single TG
  • 16. Example Consider the language L of strings, defined over Σ={a, b}, having (containing) 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 TG
  • 18. OR
  • 19. OR
  • 20. Example Consider the language L of strings, 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 TG
  • 22. Example Consider the Language L of strings of length two or more, defined over Σ = {a, b}, beginning with and ending in same letters. The language L may be expressed by the following regular expression a(a + b)*a + b(a + b)*b This language may be accepted by the following TG
  • 24. Example Consider the EVEN-EVEN language, defined over Σ={a, b}. As discussed earlier that EVEN-EVEN language can be expressed by a regular expression ( aa + bb + (ab+ba)(aa+bb)*(ab+ba) )* The language EVEN-EVEN may be accepted by the following TG
  • 26. Example Consider the language L, defined over Σ={a, b}, in which a’s occur only in even clumps (bundles) and that ends in three or more b’s. The language L can be expressed by its regular expression (aa)*b ( b+(aa(aa)*b) )* bb OR (aa)*b ( b+(aa)+ b )* bb OR Think another RE The language L may be accepted by the following TG
  • 28. 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
  • 29. 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.
  • 31. Example Consider the language L of strings, defined over Σ={a,b},that start and ends with different letters. The language L can be expressed by the following regular expression a(a+b)*b + b(a+b)*a The language L may be accepted by the following GTG.

Editor's Notes

  1. bbaabbb ??