SlideShare a Scribd company logo
1
RECAP Lecture 7
FA of EVEN EVEN, FA corresponding to finite
languages(using both methods), Transition
graphs.
2
Recap Definition of TG continued …
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
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.
4
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
a,b
+
Λ
a,b
-
5
Example Continued …
TG1
TG2
a,b
±
a,b
+±
a,b
6
Example
Consider the following TGs
-
-
a,b
-
a,b
a,b
TG3
TG2
TG1
1
1
7
Example Continued …
It may be observed that in the first TG, no
transition has been shown. Hence this TG does
not accept any string, defined over any
alphabet. In TG2
there are transitions for a and b
at initial state but there is no transition at state 1.
This TG still does not accept any string. In TG3
there are transitions at both initial state and
state 1, but it does not accept any string.
8
Example Continued …
Thus none of TG1
, TG2
andTG3
accepts any string,
i.e. these TGs accept empty language. It may
be noted that TG1
and TG2
are TGs but not FA,
while TG3
is both TG and FA as well.
It may be noted that every FA is a TG as well, but
the converse may not be true, i.e. every TG may
not be an FA.
9
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
b–– +
a,b
10
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
a–– +
a,b
+
Λ
11
Task solution …
Using the technique discussed by Martin, build
an FA accepting the following language
L = {w  {a,b}*
: length(w)  2 and second letter of
w, from right is a}.
Solution:The language L may be
expressed by the regular expression
(a+b)*
(aa+ab)
This language may be accepted by the
following FA
12
Task continued …
a
a
b
a
b
Λ
a
ba
a
a
b
b
b
b
ab
ab
ba
bb
aa
13
Task solution …
Using the technique discussed by Martin, build
an FA accepting the following language
L = {w  {a,b}*
: w neither ends in ab nor in ba}.
Solution:The language L may be expressed by
the regular expression
Λ + a + b + (a+b)*
(aa+bb)
This language may be accepted by the following
FA
14
Task continued …
a
a
b
a
a
b
a
a
b
b
b
b
ab
ab
ba
b
a
Λ
bb
aa
15
TASK
Build a TG accepting the language of strings,
defined over Σ={a, b}, ending in b.
16
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
17
Example Continued …
b,a
1- 2+
b,a
aa
18
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.
19
a
b
a
b
a,b
–– +
x
y
a,b
Example continued …
20
OR
aa,bb
a,ba,b
+-
21
OR
aa
a,ba,b
2+1-
bb
a,ba,b
4+3-
22
Note
In the above TG if the states are not labeled
then it may not be considered to be a single TG
23
Summing Up
TG definition, Examples:accepting all
strings, accepting none, starting with b,
not ending in b, containing aa,
containing aa or bb

More Related Content

What's hot

Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2
shah zeb
 
Lesson 09
Lesson 09Lesson 09
Lesson 11
Lesson 11Lesson 11
Lesson 03
Lesson 03Lesson 03
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
shah zeb
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
Farooq Mian
 
Lesson 05
Lesson 05Lesson 05
Turing Machine
Turing MachineTuring Machine
Turing Machine
Rajendran
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free Grammars
Marina Santini
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
Mobeen Mustafa
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
Deepjyoti Kalita
 
Automata theory
Automata theoryAutomata theory
Automata theory
Pardeep Vats
 
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 SolutionsIntroduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
Ashu
 
Turing machine
Turing machineTuring machine
Turing machine
HimanshuSirohi6
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
maamir farooq
 
Chomsky Normal Form
Chomsky Normal FormChomsky Normal Form
Chomsky Normal Form
Jasmine Peniel
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
Animesh Chaturvedi
 
10 Regular VS Non Regular Language.pptx
10 Regular VS Non Regular Language.pptx10 Regular VS Non Regular Language.pptx
10 Regular VS Non Regular Language.pptx
MuhammadFaizanHameed1
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
Marina Santini
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
Rabia Khalid
 

What's hot (20)

Lecture 1,2
Lecture 1,2Lecture 1,2
Lecture 1,2
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Lesson 11
Lesson 11Lesson 11
Lesson 11
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free Grammars
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 SolutionsIntroduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
Introduction to Computer theory Daniel Cohen Chapter 4 & 5 Solutions
 
Turing machine
Turing machineTuring machine
Turing machine
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Chomsky Normal Form
Chomsky Normal FormChomsky Normal Form
Chomsky Normal Form
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
10 Regular VS Non Regular Language.pptx
10 Regular VS Non Regular Language.pptx10 Regular VS Non Regular Language.pptx
10 Regular VS Non Regular Language.pptx
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 

Similar to Lesson 08

Lesson 09.ppt
Lesson 09.pptLesson 09.ppt
Lesson 09.ppt
AbuBakkarShayan
 
5.ppt
5.ppt5.ppt
Hwsoln03 toc
Hwsoln03 tocHwsoln03 toc
Hwsoln03 toc
parmeet834
 
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
parmeet834
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
adugnanegero
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
RaviAr5
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
mukul narayana
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
mukul narayana
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02
hamzamughal39
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
Lesson 02Lesson 02
Lesson 02
maamir farooq
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptx
HarisPrince
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.ppt
ArwaKhallouf
 
To lec 03
To lec 03To lec 03
To lec 03
Hasam Panezai
 
Chapter Three(2)
Chapter Three(2)Chapter Three(2)
Chapter Three(2)
bolovv
 
Pushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docxPushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docx
woodruffeloisa
 
L_2_apl.pptx
L_2_apl.pptxL_2_apl.pptx
L_2_apl.pptx
ReehaamMalikArain
 
flatPresentation.pdf
flatPresentation.pdfflatPresentation.pdf
flatPresentation.pdf
SohebMohammad
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 02
8threspecter
 
QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
MrRRajasekarCSE
 

Similar to Lesson 08 (20)

Lesson 09.ppt
Lesson 09.pptLesson 09.ppt
Lesson 09.ppt
 
5.ppt
5.ppt5.ppt
5.ppt
 
Hwsoln03 toc
Hwsoln03 tocHwsoln03 toc
Hwsoln03 toc
 
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
CS 162 Fall 2015 Homework 1 Problems September 29, 2015 Timothy Johnson 1. Ex...
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptx
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.ppt
 
To lec 03
To lec 03To lec 03
To lec 03
 
Chapter Three(2)
Chapter Three(2)Chapter Three(2)
Chapter Three(2)
 
Pushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docxPushdown AutomataChapter 12Recognizing Context-F.docx
Pushdown AutomataChapter 12Recognizing Context-F.docx
 
L_2_apl.pptx
L_2_apl.pptxL_2_apl.pptx
L_2_apl.pptx
 
flatPresentation.pdf
flatPresentation.pdfflatPresentation.pdf
flatPresentation.pdf
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 02
 
QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
 

Recently uploaded

Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
riddhimaagrawal986
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 

Recently uploaded (20)

Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 

Lesson 08

  • 1. 1 RECAP Lecture 7 FA of EVEN EVEN, FA corresponding to finite languages(using both methods), Transition graphs.
  • 2. 2 Recap Definition of TG continued … 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. 3 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.
  • 4. 4 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 a,b + Λ a,b -
  • 6. 6 Example Consider the following TGs - - a,b - a,b a,b TG3 TG2 TG1 1 1
  • 7. 7 Example Continued … It may be observed that in the first TG, no transition has been shown. Hence this TG does not accept any string, defined over any alphabet. In TG2 there are transitions for a and b at initial state but there is no transition at state 1. This TG still does not accept any string. In TG3 there are transitions at both initial state and state 1, but it does not accept any string.
  • 8. 8 Example Continued … Thus none of TG1 , TG2 andTG3 accepts any string, i.e. these TGs accept empty language. It may be noted that TG1 and TG2 are TGs but not FA, while TG3 is both TG and FA as well. It may be noted that every FA is a TG as well, but the converse may not be true, i.e. every TG may not be an FA.
  • 9. 9 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 b–– + a,b
  • 10. 10 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 a–– + a,b + Λ
  • 11. 11 Task solution … Using the technique discussed by Martin, build an FA accepting the following language L = {w  {a,b}* : length(w)  2 and second letter of w, from right is a}. Solution:The language L may be expressed by the regular expression (a+b)* (aa+ab) This language may be accepted by the following FA
  • 13. 13 Task solution … Using the technique discussed by Martin, build an FA accepting the following language L = {w  {a,b}* : w neither ends in ab nor in ba}. Solution:The language L may be expressed by the regular expression Λ + a + b + (a+b)* (aa+bb) This language may be accepted by the following FA
  • 15. 15 TASK Build a TG accepting the language of strings, defined over Σ={a, b}, ending in b.
  • 16. 16 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
  • 18. 18 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.
  • 22. 22 Note In the above TG if the states are not labeled then it may not be considered to be a single TG
  • 23. 23 Summing Up TG definition, Examples:accepting all strings, accepting none, starting with b, not ending in b, containing aa, containing aa or bb