SlideShare a Scribd company logo
Generalized Transition Graphs
                           (GTG)
                         Definition
A generalized transition graph (GTG) is a collection of
three things:
   1. A finite set of states, of which at least one is a start
      state and some (maybe none) are final states.
   2. An alphabet ∑ of input letters.
   3. Directed edges connecting some pairs of states, each
      labeled with a regular expression.
                            Example
   • Consider this GTG:




  • This GTG accepts all strings without a double b.
  • Note that the word containing the single letter b can
    take the free ride along the Λ-edge from start to
    middle, and then have letter b read to go to the final
    state.
  • Typo in textbook: The first edge should be labeled
     (ba + a)* as in the figure above, not (ab + a)*.
  • Note that there is no difference between the Kleene
    star closure for regular expressions and a loop in
    transition graphs, as illustrated in the following figure.
• In the first picture we may loop in the middle state or
  go to the third state. To not loop corresponds to taking
  the Λ choice from the b*-edge in the second picture.

More Related Content

What's hot

Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
Farooq Mian
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
Marina Santini
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
SOMNATHMORE2
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
Rajendran
 
Types of Parser
Types of ParserTypes of Parser
Types of Parser
SomnathMore3
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
shah zeb
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
Ratnakar Mikkili
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
Mobeen Mustafa
 
Lesson 12
Lesson 12Lesson 12
Automata theory
Automata theoryAutomata theory
Automata theory
colleges
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
shah zeb
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
Bipul Roy Bpl
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
Ehatsham Riaz
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
prasadmvreddy
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...
Tayeen Ahmed
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
Mobeen Mustafa
 
Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2
shah zeb
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
hodcsencet
 
Lesson 03
Lesson 03Lesson 03
Flat unit 3
Flat unit 3Flat unit 3
Flat unit 3
VenkataRaoS1
 

What's hot (20)

Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Types of Parser
Types of ParserTypes of Parser
Types of Parser
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Lesson 12
Lesson 12Lesson 12
Lesson 12
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Flat unit 3
Flat unit 3Flat unit 3
Flat unit 3
 

Generalized transition graphs

  • 1. Generalized Transition Graphs (GTG) Definition A generalized transition graph (GTG) is a collection of three things: 1. A finite set of states, of which at least one is a start state and some (maybe none) are final states. 2. An alphabet ∑ of input letters. 3. Directed edges connecting some pairs of states, each labeled with a regular expression. Example • Consider this GTG: • This GTG accepts all strings without a double b. • Note that the word containing the single letter b can take the free ride along the Λ-edge from start to middle, and then have letter b read to go to the final state. • Typo in textbook: The first edge should be labeled (ba + a)* as in the figure above, not (ab + a)*. • Note that there is no difference between the Kleene star closure for regular expressions and a loop in transition graphs, as illustrated in the following figure.
  • 2. • In the first picture we may loop in the middle state or go to the third state. To not loop corresponds to taking the Λ choice from the b*-edge in the second picture.