Lec 20
Lec 20
Theory Transition
of Graph (TG)
Automata • What is TG?
• How to
construct TG?
Lecture 20: Transition Graph (TG) – What is it and how to construct? [email protected]
q2
b q2
q3 b
Lecture 20: Transition Graph (TG) – What is it and how to construct? [email protected]
4. Can read more than one character at a time
(i.e., it allows substring transition)
a q2
a,b a
a q1
a,b
1 q0 q3
b
q4
q5
b
b
Lecture 20: Transition Graph (TG) – What is it and how to construct? [email protected]
4. Can read more than one character at a time a,b
(i.e., it allows substring transition) a,b
q0 aaa
Q: Draw TG that accepts all words with triple q1
aaa or bbb over ∑={a,b} R=(a+b)*(aaa+bbb)(a+b)* a,b
5 a,b
a,b q2 bbb
q4
a,b
3 q0 aaa, bbb q4
a,b
a,b a,b q0 aaa a,b
aaa
2 q0
q1
4 a,b q1
a,b bbb
bbb q2 q2
Lecture 20: Transition Graph (TG) – What is it and how to construct? [email protected]
a b a b
ε aa b aa
q0 q1 q2 q0 q1 q2
aa
a b
q0 ^ q1
aa
q2
Lecture 20: Transition Graph (TG) – What is it and how to construct? [email protected]
1. Finite number of states in which at least one initial state and finite state
(i.e., can have more than one initial/final state)
of Thank you
Subscribe
Automata
By: Ali Hassan Soomro
BSCS from UBIT, University of Karachi
DAE in Electronics from SBTE
Facebook: www.facebook.com/AliiHassanSoomro
Gmail: [email protected]