SlideShare a Scribd company logo
1
Recap lecture 19
NFA corresponding to Closure of FA,
Examples, Memory required to recognize
a language, Example, Distinguishing one
string from another, Example, Theorem,
Proof
2
Task
Consider the language L of strings of
length three or more, defined over  =
{0,1}, ending in 011 then determine
which of the following pairs are
distinguishable or indistinguishable w.r.t.
L.
1. 001011, 11001111
2. 01001111, 1100001111
3
Solution of the Task
1. It can be observed that taking z = , 001011z
belongs to L while 11001111z does not belong to
L, which shows that 001011 and 11001111 are
distinguishable w.r.t. L.
2. It can be observed that both 01001111 and
1100001111 don’t belong to L. It can also be
observed that for z  *
either both 01001111z
and 1100001111z belong to L or both don’t.
hence 01001111 and 1100001111 are
indistinguishable w.r.t. L.
4
Example
Let L20={w  {0,1}*
: |w|  20 and the 20th
letter of w, from right is, 1}. Let S be the set of
all strings of length 20, defined over , any
two of which are distinguishable w.r.t. L20.
Obviously the number of strings belonging to
S, is 220
. Let x and y be any two distinct strings
i.e. they differ in ith letter,i=1,2,3,…20, from
left. For i=1, they differ by first letter from left.
5
Example continued …
Then by definition of L20, one is in L20
while other is not as shown below
So they are distinct w.r.t. L20 for z =  i.e.
one of xz and yz belongs to L20.
.
…
.
0
.
…
.
1
6
Example continued …
Similarly if i=2 they differ by 2nd letter from
left and are again distinguishable and hence
for z belonging to *
, |z|=1, either xz or yz
belongs to L20 because in this case the 20th
letter from the right of xz and yz is exactly
the 2nd letter from left of x and y as shown
below
.
…
0
.
.
…
1
.
z
z
7
Example continued …
Hence x and y will be distinguishable
w.r.t. L20 for i=2, as well. Continuing the
process it can be shown that any pair of
strings x and y belonging to S, will be
distinguishable w.r.t. L20. Since S
contains 220
strings, any two of which are
distinguishable w.r.t. L20, so using the
theorem any FA accepting L20 must have
at least 220
states.
8
Note
It may be observed from the above example
that using Martin’s method, there exists an
FA having 220+1
-1=2,097,151 states. This
indicates the memory required to recognize
L20 will be the memory of a computer that
can accommodate 21-bits i.e.the computer
can be in 221
possible states.
9
Finite Automaton with output
Finite automaton discussed so far, is just
associated with the RE or the language.
There is a question whether does there exist an FA
which generates an output string corresponding to
each input string ? The answer is yes. Such
machines are called machines with output.
There are two types of machines with output.
Moore machine and Mealy machine
10
Moore machine
A Moore machine consists of the
following
1. A finite set of states q0, q1, q2, … where q0 is
the initial state.
2. An alphabet of letters  = {a,b,c,…} from
which the input strings are formed.
3. An alphabet ={x,y,z,…} of output
characters from which output strings are
generated.
11
Moore machine continued …
4. A transition table that shows for each
state and each input letter what state is
entered the next.
5. An output table that shows what
character is printed by each state as it is
entered.
12
Moore machine continued …
Note: It is to be noted that since in Moore machine
no state is designated to be a final state, so there is
no question of accepting any language by Moore
machine. However in some cases the relation
between an input string and the corresponding
output string may be identified by the Moore
machine. Moreover, the state to be initial is not
important as if the machine is used several times
and is restarted after some time, the machine will
be started from the state where it was left off.
Following are the examples
13
Example
Consider the following Moore machine
having the states q0, q1, q2, q3 where q0 is
the start state and
 = {a,b},
={0,1}
the transition table follows as
14
Example continued …
Old
States
New States after
reading
a b
q0- q1 q3
q1 q3 q1
q2 q0 q3
q3 q3 q2
1
0
0
1
Characters
to be
printed
15
Example continued …
the transition diagram corresponding to the
previous transition table may be
a
b
b
a
q0/1
a
b
q1/0
q2/0 q3/1 a
b
16
Example continued …
It is to be noted that the states are labeled
along with the characters to be printed.
Running the string abbabbba over the above
machine, the corresponding output string
will be 100010101, which can be
determined by the following table as well
a
b
b
a
q0/1
a
b
q1/0
q2/0 q3/1 a
b
17
Example continued …
1
0
1
0
1
0
0
0
1
output
q0
q2
q3
q2
q3
q1
q1
q1
q0
State
a
b
b
b
a
b
b
a
Input
It may be noted that the length of output
string is l more than that of input string as
the initial state prints out the extra character
1, before the input string is read.
18
Summing Up
Recap Theorem, Example, Finite
Automaton with output, Moore machine,
Examples

More Related Content

Similar to Lesson 20.ppt

DFA
DFA DFA
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------
MIGUELANGEL2672
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! Edhole
Edhole.com
 
Resumen material MIT
Resumen material MITResumen material MIT
Resumen material MIT
Rawel Luciano
 
RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
Ezhumalai p
 
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
 Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S... Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
parmeet834
 
Lesson 08
Lesson 08Lesson 08
Lesson 12
Lesson 12Lesson 12
flat unit1
flat unit1flat unit1
flat unit1
Janhavi Vishwanath
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
mukul narayana
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
mukul narayana
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
Prof. Dr. K. Adisesha
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
Prof. Dr. K. Adisesha
 
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
ArjunMehra32
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
Srimatre K
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
RaviAr5
 
Flat unit 1
Flat unit 1Flat unit 1
Flat unit 1
VenkataRaoS1
 
Finite automata
Finite automataFinite automata
Finite automata
Rajesh Yaramadi
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptx
ssuser47f7f2
 

Similar to Lesson 20.ppt (20)

DFA
DFA DFA
DFA
 
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! Edhole
 
Resumen material MIT
Resumen material MITResumen material MIT
Resumen material MIT
 
RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
 
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
 Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S... Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
 
Lesson 08
Lesson 08Lesson 08
Lesson 08
 
Lesson 12
Lesson 12Lesson 12
Lesson 12
 
flat unit1
flat unit1flat unit1
flat unit1
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
 
Mod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptxMod 2_RegularExpressions.pptx
Mod 2_RegularExpressions.pptx
 
Flat unit 1
Flat unit 1Flat unit 1
Flat unit 1
 
Finite automata
Finite automataFinite automata
Finite automata
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptx
 

More from ZainabShahzad9

lecture8-final.pdf ( analysis and design of algorithm)
lecture8-final.pdf ( analysis and design of algorithm)lecture8-final.pdf ( analysis and design of algorithm)
lecture8-final.pdf ( analysis and design of algorithm)
ZainabShahzad9
 
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithmmaxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
ZainabShahzad9
 
Chache memory ( chapter number 4 ) by William stalling
Chache memory ( chapter number 4 ) by William stallingChache memory ( chapter number 4 ) by William stalling
Chache memory ( chapter number 4 ) by William stalling
ZainabShahzad9
 
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdfMicrosoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
ZainabShahzad9
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
ZainabShahzad9
 
Lec 3.pdf
Lec 3.pdfLec 3.pdf
Lec 3.pdf
ZainabShahzad9
 
Lec-1.pdf
Lec-1.pdfLec-1.pdf
Lec-1.pdf
ZainabShahzad9
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
ZainabShahzad9
 
Presentation2-2.pptx
Presentation2-2.pptxPresentation2-2.pptx
Presentation2-2.pptx
ZainabShahzad9
 
OS 7.pptx
OS 7.pptxOS 7.pptx
OS 7.pptx
ZainabShahzad9
 
OS 6.pptx
OS 6.pptxOS 6.pptx
OS 6.pptx
ZainabShahzad9
 
111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx
ZainabShahzad9
 
Project Presentation.pptx
Project Presentation.pptxProject Presentation.pptx
Project Presentation.pptx
ZainabShahzad9
 

More from ZainabShahzad9 (13)

lecture8-final.pdf ( analysis and design of algorithm)
lecture8-final.pdf ( analysis and design of algorithm)lecture8-final.pdf ( analysis and design of algorithm)
lecture8-final.pdf ( analysis and design of algorithm)
 
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithmmaxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
maxflow.4up.pdf for the Maximam flow to solve using flord fulkerson algorithm
 
Chache memory ( chapter number 4 ) by William stalling
Chache memory ( chapter number 4 ) by William stallingChache memory ( chapter number 4 ) by William stalling
Chache memory ( chapter number 4 ) by William stalling
 
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdfMicrosoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
Microsoft PowerPoint - Lec 04 - Decision Tree Learning.pdf
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
 
Lec 3.pdf
Lec 3.pdfLec 3.pdf
Lec 3.pdf
 
Lec-1.pdf
Lec-1.pdfLec-1.pdf
Lec-1.pdf
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Presentation2-2.pptx
Presentation2-2.pptxPresentation2-2.pptx
Presentation2-2.pptx
 
OS 7.pptx
OS 7.pptxOS 7.pptx
OS 7.pptx
 
OS 6.pptx
OS 6.pptxOS 6.pptx
OS 6.pptx
 
111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx111803154 - Assignment 5 Normalisation.docx
111803154 - Assignment 5 Normalisation.docx
 
Project Presentation.pptx
Project Presentation.pptxProject Presentation.pptx
Project Presentation.pptx
 

Recently uploaded

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 
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
 
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
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
amsjournal
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
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
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
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
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 

Recently uploaded (20)

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 
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...
 
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
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
UNLOCKING HEALTHCARE 4.0: NAVIGATING CRITICAL SUCCESS FACTORS FOR EFFECTIVE I...
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
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
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
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
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 

Lesson 20.ppt

  • 1. 1 Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another, Example, Theorem, Proof
  • 2. 2 Task Consider the language L of strings of length three or more, defined over  = {0,1}, ending in 011 then determine which of the following pairs are distinguishable or indistinguishable w.r.t. L. 1. 001011, 11001111 2. 01001111, 1100001111
  • 3. 3 Solution of the Task 1. It can be observed that taking z = , 001011z belongs to L while 11001111z does not belong to L, which shows that 001011 and 11001111 are distinguishable w.r.t. L. 2. It can be observed that both 01001111 and 1100001111 don’t belong to L. It can also be observed that for z  * either both 01001111z and 1100001111z belong to L or both don’t. hence 01001111 and 1100001111 are indistinguishable w.r.t. L.
  • 4. 4 Example Let L20={w  {0,1}* : |w|  20 and the 20th letter of w, from right is, 1}. Let S be the set of all strings of length 20, defined over , any two of which are distinguishable w.r.t. L20. Obviously the number of strings belonging to S, is 220 . Let x and y be any two distinct strings i.e. they differ in ith letter,i=1,2,3,…20, from left. For i=1, they differ by first letter from left.
  • 5. 5 Example continued … Then by definition of L20, one is in L20 while other is not as shown below So they are distinct w.r.t. L20 for z =  i.e. one of xz and yz belongs to L20. . … . 0 . … . 1
  • 6. 6 Example continued … Similarly if i=2 they differ by 2nd letter from left and are again distinguishable and hence for z belonging to * , |z|=1, either xz or yz belongs to L20 because in this case the 20th letter from the right of xz and yz is exactly the 2nd letter from left of x and y as shown below . … 0 . . … 1 . z z
  • 7. 7 Example continued … Hence x and y will be distinguishable w.r.t. L20 for i=2, as well. Continuing the process it can be shown that any pair of strings x and y belonging to S, will be distinguishable w.r.t. L20. Since S contains 220 strings, any two of which are distinguishable w.r.t. L20, so using the theorem any FA accepting L20 must have at least 220 states.
  • 8. 8 Note It may be observed from the above example that using Martin’s method, there exists an FA having 220+1 -1=2,097,151 states. This indicates the memory required to recognize L20 will be the memory of a computer that can accommodate 21-bits i.e.the computer can be in 221 possible states.
  • 9. 9 Finite Automaton with output Finite automaton discussed so far, is just associated with the RE or the language. There is a question whether does there exist an FA which generates an output string corresponding to each input string ? The answer is yes. Such machines are called machines with output. There are two types of machines with output. Moore machine and Mealy machine
  • 10. 10 Moore machine A Moore machine consists of the following 1. A finite set of states q0, q1, q2, … where q0 is the initial state. 2. An alphabet of letters  = {a,b,c,…} from which the input strings are formed. 3. An alphabet ={x,y,z,…} of output characters from which output strings are generated.
  • 11. 11 Moore machine continued … 4. A transition table that shows for each state and each input letter what state is entered the next. 5. An output table that shows what character is printed by each state as it is entered.
  • 12. 12 Moore machine continued … Note: It is to be noted that since in Moore machine no state is designated to be a final state, so there is no question of accepting any language by Moore machine. However in some cases the relation between an input string and the corresponding output string may be identified by the Moore machine. Moreover, the state to be initial is not important as if the machine is used several times and is restarted after some time, the machine will be started from the state where it was left off. Following are the examples
  • 13. 13 Example Consider the following Moore machine having the states q0, q1, q2, q3 where q0 is the start state and  = {a,b}, ={0,1} the transition table follows as
  • 14. 14 Example continued … Old States New States after reading a b q0- q1 q3 q1 q3 q1 q2 q0 q3 q3 q3 q2 1 0 0 1 Characters to be printed
  • 15. 15 Example continued … the transition diagram corresponding to the previous transition table may be a b b a q0/1 a b q1/0 q2/0 q3/1 a b
  • 16. 16 Example continued … It is to be noted that the states are labeled along with the characters to be printed. Running the string abbabbba over the above machine, the corresponding output string will be 100010101, which can be determined by the following table as well a b b a q0/1 a b q1/0 q2/0 q3/1 a b
  • 17. 17 Example continued … 1 0 1 0 1 0 0 0 1 output q0 q2 q3 q2 q3 q1 q1 q1 q0 State a b b b a b b a Input It may be noted that the length of output string is l more than that of input string as the initial state prints out the extra character 1, before the input string is read.
  • 18. 18 Summing Up Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples