SlideShare a Scribd company logo
1 of 18
Topic - 4: Regular LanguagesTopic - 4: Regular Languages
Theory of ComputingTheory of Computing
Dilouar Hossain
dilouarbd@gmail.com
 Proving Languages not to be Regular
 The Pumping Lemma for Regular Languages
 Applications of the Pumping Lemma
 Closure Properties of Regular Languages
Topic ContentsTopic Contents
3
4
5
Problem (Example 4.2 of Text Book): Show that the
language Leq consisting of all strings with an equal number
of 0s and 1s (not in any particular order) is not a regular
language.
Soln
:
Suppose that Leq were regular.
Then there would be a constant n satisfying the conditions
of the pumping lemma.
Let
By the pumping lemma, we can break, w = xyz such that
y ≠ ε and |xy| ≤ n.
.10 nn
w =
6
Now, |w| = |0n
1n
| = n + n = 2n.
Now by the pumping lemma, the string xyn
z is in Leq.
Here, |xyn
| = |x| + n|y| ≥ np > n
Therefore the string xyn
z has n 1s and more than n 0s.
So xyn
z cannot be in Leq, which contradicts our assumption.
Thus the language Lpr is not a regular language.
py
npy
ynxy
p
p
==∴
≤<=∴
≠≤
0
.0where,0
and ε
7
Problem (Page No. 190 of Text Book): Show that the
language Lpal consisting of all strings of 0s and 1s which is a
palindrome is not a regular language .
Soln
:
Suppose Lpal is regular.
Then there will be a constant n satisfying the conditions of
the pumping lemma.
Let
By the pumping lemma, we can break, w = xyz such that
y ≠ ε and |xy| ≤ n.
.100 nn
w =
8
Now, |w| = |0n
10n
| = n + 1 + n = 2n + 1.
Now by the pumping lemma, the string xyn
z is in Lpal.
Here, |xyn
| = |x| + n|y| ≥ np > n
py
npy
ynxy
p
p
==∴
≤<=∴
≠≤
0
.0where,0
and ε
9
Therefore the string xyn
z has more than n 0s to the left of
the single 1 and n 0’s to the right of that 1.
Hence xyn
z is not a palindrome.
So xyn
z cannot be in Lpal, which contradicts our assumption.
Thus the language Lpal is not a regular language.
[Proved]
L − M
10
11
Complement language construction:
1. Convert the regular expression to an є-NFA
2. Convert the є-NFA to a DFA by the subset
construction.
3. Complement the accepting states of that DFA.
4. Turn the complement DFA back into a regular
expression.
12
Closure Properties of Regular Languages:
Complement
13
Closure Properties of Regular Languages:
Complement
14
15
16
17
Regular Languages Pumping Lemma Applications

More Related Content

Viewers also liked

Regular expressions and languages pdf
Regular expressions and languages pdfRegular expressions and languages pdf
Regular expressions and languages pdfDilouar Hossain
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesMarina Santini
 
understanding margins for cash and derivative markets
understanding margins for  cash and derivative marketsunderstanding margins for  cash and derivative markets
understanding margins for cash and derivative marketskcysrutha
 
A Esf como objeto de educação em saúde
A Esf como objeto de educação em saúdeA Esf como objeto de educação em saúde
A Esf como objeto de educação em saúdeJunior Anzoategui
 
Granite Falls Spa Sims 4
Granite Falls Spa Sims 4Granite Falls Spa Sims 4
Granite Falls Spa Sims 4RachelRosebud
 
Floor remodeling irondale, al
Floor remodeling irondale, alFloor remodeling irondale, al
Floor remodeling irondale, almetrocontract
 
understanding margins in cash and derivatives market
understanding margins in cash and derivatives marketunderstanding margins in cash and derivatives market
understanding margins in cash and derivatives marketkcysrutha
 
Desert Retreat Starter Remodel
Desert Retreat Starter RemodelDesert Retreat Starter Remodel
Desert Retreat Starter RemodelRachelRosebud
 
3. geniouz chapter i
3. geniouz chapter i3. geniouz chapter i
3. geniouz chapter iGuz't Eka
 
Grandma tenny
Grandma tennyGrandma tenny
Grandma tennynjohnson6
 
Room additions irondale, al
Room additions irondale, alRoom additions irondale, al
Room additions irondale, almetrocontract
 
About CMT - Cosmo Medical Technology
About CMT - Cosmo Medical TechnologyAbout CMT - Cosmo Medical Technology
About CMT - Cosmo Medical TechnologyNguyen Jonquil
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computationBipul Roy Bpl
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2Dilouar Hossain
 
Two phase commit protocol in dbms
Two phase commit protocol in dbmsTwo phase commit protocol in dbms
Two phase commit protocol in dbmsDilouar Hossain
 
Regular expressions
Regular expressionsRegular expressions
Regular expressionsEran Zimbler
 

Viewers also liked (20)

Regular expressions and languages pdf
Regular expressions and languages pdfRegular expressions and languages pdf
Regular expressions and languages pdf
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
 
understanding margins for cash and derivative markets
understanding margins for  cash and derivative marketsunderstanding margins for  cash and derivative markets
understanding margins for cash and derivative markets
 
A Esf como objeto de educação em saúde
A Esf como objeto de educação em saúdeA Esf como objeto de educação em saúde
A Esf como objeto de educação em saúde
 
Belltower Bakery
Belltower BakeryBelltower Bakery
Belltower Bakery
 
Granite Falls Spa Sims 4
Granite Falls Spa Sims 4Granite Falls Spa Sims 4
Granite Falls Spa Sims 4
 
Floor remodeling irondale, al
Floor remodeling irondale, alFloor remodeling irondale, al
Floor remodeling irondale, al
 
understanding margins in cash and derivatives market
understanding margins in cash and derivatives marketunderstanding margins in cash and derivatives market
understanding margins in cash and derivatives market
 
Desert Retreat Starter Remodel
Desert Retreat Starter RemodelDesert Retreat Starter Remodel
Desert Retreat Starter Remodel
 
3. geniouz chapter i
3. geniouz chapter i3. geniouz chapter i
3. geniouz chapter i
 
Grandma tenny
Grandma tennyGrandma tenny
Grandma tenny
 
Wells biosciences-pvt-ltd
Wells biosciences-pvt-ltdWells biosciences-pvt-ltd
Wells biosciences-pvt-ltd
 
Room additions irondale, al
Room additions irondale, alRoom additions irondale, al
Room additions irondale, al
 
About CMT - Cosmo Medical Technology
About CMT - Cosmo Medical TechnologyAbout CMT - Cosmo Medical Technology
About CMT - Cosmo Medical Technology
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2
 
Tests
TestsTests
Tests
 
Two phase commit protocol in dbms
Two phase commit protocol in dbmsTwo phase commit protocol in dbms
Two phase commit protocol in dbms
 
Lecture2 B
Lecture2 BLecture2 B
Lecture2 B
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 

Similar to Regular Languages Pumping Lemma Applications

RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptxEzhumalai p
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! EdholeEdhole.com
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! EdholeEdhole.com
 
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
 
Top school in ghaziabad
Top school in ghaziabadTop school in ghaziabad
Top school in ghaziabadEdhole.com
 
A new technique for proving non regularity based on the measure of a language
A new technique for proving non regularity based on the measure of a languageA new technique for proving non regularity based on the measure of a language
A new technique for proving non regularity based on the measure of a languageRyoma Sin'ya
 
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------MIGUELANGEL2672
 
11 ma1aexpandednoteswk3
11 ma1aexpandednoteswk311 ma1aexpandednoteswk3
11 ma1aexpandednoteswk3dinhmyhuyenvi
 
Formal Languages (in progress)
Formal Languages (in progress)Formal Languages (in progress)
Formal Languages (in progress)Jshflynn
 
09.LearningMaterial_Sample.pdf
09.LearningMaterial_Sample.pdf09.LearningMaterial_Sample.pdf
09.LearningMaterial_Sample.pdfssuser47f7f2
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdfT17Rockstar
 
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
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languagesparmeet834
 
1 introduction
1 introduction1 introduction
1 introductionparmeet834
 

Similar to Regular Languages Pumping Lemma Applications (20)

RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
 
hop-chap4.ppt
hop-chap4.ppthop-chap4.ppt
hop-chap4.ppt
 
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
 
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...
 
Daa notes 3
Daa notes 3Daa notes 3
Daa notes 3
 
hw4s05solns.ppt
hw4s05solns.ppthw4s05solns.ppt
hw4s05solns.ppt
 
Top school in ghaziabad
Top school in ghaziabadTop school in ghaziabad
Top school in ghaziabad
 
A new technique for proving non regularity based on the measure of a language
A new technique for proving non regularity based on the measure of a languageA new technique for proving non regularity based on the measure of a language
A new technique for proving non regularity based on the measure of a language
 
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------
 
11 ma1aexpandednoteswk3
11 ma1aexpandednoteswk311 ma1aexpandednoteswk3
11 ma1aexpandednoteswk3
 
Formal Languages (in progress)
Formal Languages (in progress)Formal Languages (in progress)
Formal Languages (in progress)
 
09.LearningMaterial_Sample.pdf
09.LearningMaterial_Sample.pdf09.LearningMaterial_Sample.pdf
09.LearningMaterial_Sample.pdf
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdf
 
rs1.ppt
rs1.pptrs1.ppt
rs1.ppt
 
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...
 
Module 1 TOC.pptx
Module 1 TOC.pptxModule 1 TOC.pptx
Module 1 TOC.pptx
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languages
 
1 introduction
1 introduction1 introduction
1 introduction
 
FLAT.pdf
FLAT.pdfFLAT.pdf
FLAT.pdf
 

More from Dilouar Hossain

Digital Marketing Trainer Interview Overview.pptx
Digital Marketing Trainer Interview Overview.pptxDigital Marketing Trainer Interview Overview.pptx
Digital Marketing Trainer Interview Overview.pptxDilouar Hossain
 
Future lab institute plan
Future lab institute planFuture lab institute plan
Future lab institute planDilouar Hossain
 
Welcome to our presentation
Welcome to our presentationWelcome to our presentation
Welcome to our presentationDilouar Hossain
 
Pharmacy management software presentation overview
Pharmacy management software presentation overviewPharmacy management software presentation overview
Pharmacy management software presentation overviewDilouar Hossain
 
Training overview on digital marketing
Training overview on digital marketingTraining overview on digital marketing
Training overview on digital marketingDilouar Hossain
 
How to work zoom meeting apps | zoom cloud meetings
How to work zoom meeting apps | zoom cloud meetingsHow to work zoom meeting apps | zoom cloud meetings
How to work zoom meeting apps | zoom cloud meetingsDilouar Hossain
 
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)Dilouar Hossain
 
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...Dilouar Hossain
 
Web development (Wordpress)
Web development (Wordpress)Web development (Wordpress)
Web development (Wordpress)Dilouar Hossain
 
Internship Training overview
Internship Training overviewInternship Training overview
Internship Training overviewDilouar Hossain
 
My life style of Dilouar Hossain
My life style of Dilouar HossainMy life style of Dilouar Hossain
My life style of Dilouar HossainDilouar Hossain
 
Career guideline for freelancers By Dilouar Hossain
Career guideline for freelancers By Dilouar HossainCareer guideline for freelancers By Dilouar Hossain
Career guideline for freelancers By Dilouar HossainDilouar Hossain
 
Welcome to creative Software in Bangladesh
Welcome to creative Software in BangladeshWelcome to creative Software in Bangladesh
Welcome to creative Software in BangladeshDilouar Hossain
 
High pass filter with analog electronic
High pass filter with analog electronicHigh pass filter with analog electronic
High pass filter with analog electronicDilouar Hossain
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2Dilouar Hossain
 

More from Dilouar Hossain (17)

Digital Marketing Trainer Interview Overview.pptx
Digital Marketing Trainer Interview Overview.pptxDigital Marketing Trainer Interview Overview.pptx
Digital Marketing Trainer Interview Overview.pptx
 
Future lab institute plan
Future lab institute planFuture lab institute plan
Future lab institute plan
 
Welcome to our presentation
Welcome to our presentationWelcome to our presentation
Welcome to our presentation
 
Pharmacy management software presentation overview
Pharmacy management software presentation overviewPharmacy management software presentation overview
Pharmacy management software presentation overview
 
Training overview on digital marketing
Training overview on digital marketingTraining overview on digital marketing
Training overview on digital marketing
 
How to work zoom meeting apps | zoom cloud meetings
How to work zoom meeting apps | zoom cloud meetingsHow to work zoom meeting apps | zoom cloud meetings
How to work zoom meeting apps | zoom cloud meetings
 
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)
Digital marketing Tips (Facebook, Linkedin, Twitter Marketing)
 
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
 
Web development (Wordpress)
Web development (Wordpress)Web development (Wordpress)
Web development (Wordpress)
 
Internship Training overview
Internship Training overviewInternship Training overview
Internship Training overview
 
My life style of Dilouar Hossain
My life style of Dilouar HossainMy life style of Dilouar Hossain
My life style of Dilouar Hossain
 
Career guideline for freelancers By Dilouar Hossain
Career guideline for freelancers By Dilouar HossainCareer guideline for freelancers By Dilouar Hossain
Career guideline for freelancers By Dilouar Hossain
 
Welcome to creative pos
Welcome to creative posWelcome to creative pos
Welcome to creative pos
 
Welcome to creative Software in Bangladesh
Welcome to creative Software in BangladeshWelcome to creative Software in Bangladesh
Welcome to creative Software in Bangladesh
 
Batch operating system
Batch operating system Batch operating system
Batch operating system
 
High pass filter with analog electronic
High pass filter with analog electronicHigh pass filter with analog electronic
High pass filter with analog electronic
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2
 

Recently uploaded

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

Regular Languages Pumping Lemma Applications

  • 1. Topic - 4: Regular LanguagesTopic - 4: Regular Languages Theory of ComputingTheory of Computing Dilouar Hossain dilouarbd@gmail.com
  • 2.  Proving Languages not to be Regular  The Pumping Lemma for Regular Languages  Applications of the Pumping Lemma  Closure Properties of Regular Languages Topic ContentsTopic Contents
  • 3. 3
  • 4. 4
  • 5. 5 Problem (Example 4.2 of Text Book): Show that the language Leq consisting of all strings with an equal number of 0s and 1s (not in any particular order) is not a regular language. Soln : Suppose that Leq were regular. Then there would be a constant n satisfying the conditions of the pumping lemma. Let By the pumping lemma, we can break, w = xyz such that y ≠ ε and |xy| ≤ n. .10 nn w =
  • 6. 6 Now, |w| = |0n 1n | = n + n = 2n. Now by the pumping lemma, the string xyn z is in Leq. Here, |xyn | = |x| + n|y| ≥ np > n Therefore the string xyn z has n 1s and more than n 0s. So xyn z cannot be in Leq, which contradicts our assumption. Thus the language Lpr is not a regular language. py npy ynxy p p ==∴ ≤<=∴ ≠≤ 0 .0where,0 and ε
  • 7. 7 Problem (Page No. 190 of Text Book): Show that the language Lpal consisting of all strings of 0s and 1s which is a palindrome is not a regular language . Soln : Suppose Lpal is regular. Then there will be a constant n satisfying the conditions of the pumping lemma. Let By the pumping lemma, we can break, w = xyz such that y ≠ ε and |xy| ≤ n. .100 nn w =
  • 8. 8 Now, |w| = |0n 10n | = n + 1 + n = 2n + 1. Now by the pumping lemma, the string xyn z is in Lpal. Here, |xyn | = |x| + n|y| ≥ np > n py npy ynxy p p ==∴ ≤<=∴ ≠≤ 0 .0where,0 and ε
  • 9. 9 Therefore the string xyn z has more than n 0s to the left of the single 1 and n 0’s to the right of that 1. Hence xyn z is not a palindrome. So xyn z cannot be in Lpal, which contradicts our assumption. Thus the language Lpal is not a regular language. [Proved]
  • 11. 11
  • 12. Complement language construction: 1. Convert the regular expression to an є-NFA 2. Convert the є-NFA to a DFA by the subset construction. 3. Complement the accepting states of that DFA. 4. Turn the complement DFA back into a regular expression. 12 Closure Properties of Regular Languages: Complement
  • 13. 13 Closure Properties of Regular Languages: Complement
  • 14. 14
  • 15. 15
  • 16. 16
  • 17. 17