SlideShare une entreprise Scribd logo
1  sur  2
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.

Contenu connexe

Tendances

Theory of Automata
Theory of AutomataTheory of Automata
Theory of AutomataFarooq Mian
 
Push down automata
Push down automataPush down automata
Push down automataSomya Bagai
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languagesSOMNATHMORE2
 
push down automata
 push down automata push down automata
push down automatanadiatariq6
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular setsSampath Kumar S
 
Introduction To Autumata Theory
 Introduction To Autumata Theory Introduction To Autumata Theory
Introduction To Autumata TheoryAbdul Rehman
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Akila Krishnamoorthy
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR Zahid Parvez
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4shah zeb
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsRajendran
 
Ch3 4 regular expression and grammar
Ch3 4 regular expression and grammarCh3 4 regular expression and grammar
Ch3 4 regular expression and grammarmeresie tesfay
 

Tendances (20)

Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
NFA & DFA
NFA & DFANFA & DFA
NFA & DFA
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Push down automata
Push down automataPush down automata
Push down automata
 
Chomsky Normal Form
Chomsky Normal FormChomsky Normal Form
Chomsky Normal Form
 
Pda
PdaPda
Pda
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
push down automata
 push down automata push down automata
push down automata
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
 
Introduction To Autumata Theory
 Introduction To Autumata Theory Introduction To Autumata Theory
Introduction To Autumata Theory
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal Forms
 
Ch3 4 regular expression and grammar
Ch3 4 regular expression and grammarCh3 4 regular expression and grammar
Ch3 4 regular expression and grammar
 
Specification-of-tokens
Specification-of-tokensSpecification-of-tokens
Specification-of-tokens
 

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.