SlideShare a Scribd company logo
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
Theory of computing pdf

More Related Content

Viewers also liked

Regular expressions and languages pdf
Regular expressions and languages pdfRegular expressions and languages pdf
Regular expressions and languages pdf
Dilouar Hossain
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
Marina 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 markets
kcysrutha
 
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
Junior Anzoategui
 
Belltower Bakery
Belltower BakeryBelltower Bakery
Belltower Bakery
RachelRosebud
 
Granite Falls Spa Sims 4
Granite Falls Spa Sims 4Granite Falls Spa Sims 4
Granite Falls Spa Sims 4
RachelRosebud
 
Floor remodeling irondale, al
Floor remodeling irondale, alFloor remodeling irondale, al
Floor remodeling irondale, al
metrocontract
 
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
kcysrutha
 
Desert Retreat Starter Remodel
Desert Retreat Starter RemodelDesert Retreat Starter Remodel
Desert Retreat Starter Remodel
RachelRosebud
 
3. geniouz chapter i
3. geniouz chapter i3. geniouz chapter i
3. geniouz chapter i
Guz't Eka
 
Grandma tenny
Grandma tennyGrandma tenny
Grandma tenny
njohnson6
 
Wells biosciences-pvt-ltd
Wells biosciences-pvt-ltdWells biosciences-pvt-ltd
Wells biosciences-pvt-ltd
Wells Biosciences Pvt. Ltd.
 
Room additions irondale, al
Room additions irondale, alRoom additions irondale, al
Room additions irondale, al
metrocontract
 
About CMT - Cosmo Medical Technology
About CMT - Cosmo Medical TechnologyAbout CMT - Cosmo Medical Technology
About CMT - Cosmo Medical Technology
Nguyen Jonquil
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
Bipul Roy Bpl
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2
Dilouar Hossain
 
Tests
TestsTests
Tests
Priya Doke
 
Two phase commit protocol in dbms
Two phase commit protocol in dbmsTwo phase commit protocol in dbms
Two phase commit protocol in dbms
Dilouar Hossain
 
Lecture2 B
Lecture2 BLecture2 B
Lecture2 B
Hisham Elsherif
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
Eran 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 Theory of computing pdf

RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
Ezhumalai p
 
hop-chap4.ppt
hop-chap4.ppthop-chap4.ppt
hop-chap4.ppt
UniversityHacks
 
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
 
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
 
Daa notes 3
Daa notes 3Daa notes 3
Daa notes 3
smruti sarangi
 
hw4s05solns.ppt
hw4s05solns.ppthw4s05solns.ppt
hw4s05solns.ppt
UniversityHacks
 
Top school in ghaziabad
Top school in ghaziabadTop school in ghaziabad
Top school in ghaziabad
Edhole.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 language
Ryoma 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 ma1aexpandednoteswk3
dinhmyhuyenvi
 
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.pdf
ssuser47f7f2
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdf
T17Rockstar
 
rs1.ppt
rs1.pptrs1.ppt
rs1.ppt
ssuser47f7f2
 
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
 
Module 1 TOC.pptx
Module 1 TOC.pptxModule 1 TOC.pptx
Module 1 TOC.pptx
MohitJain21BCE1523
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languages
parmeet834
 
1 introduction
1 introduction1 introduction
1 introduction
parmeet834
 
FLAT.pdf
FLAT.pdfFLAT.pdf

Similar to Theory of computing pdf (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.pptx
Dilouar Hossain
 
Future lab institute plan
Future lab institute planFuture lab institute plan
Future lab institute plan
Dilouar Hossain
 
Welcome to our presentation
Welcome to our presentationWelcome to our presentation
Welcome to our presentation
Dilouar Hossain
 
Pharmacy management software presentation overview
Pharmacy management software presentation overviewPharmacy management software presentation overview
Pharmacy management software presentation overview
Dilouar Hossain
 
Training overview on digital marketing
Training overview on digital marketingTraining overview on digital marketing
Training overview on digital marketing
Dilouar 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 meetings
Dilouar 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 overview
Dilouar Hossain
 
My life style of Dilouar Hossain
My life style of Dilouar HossainMy life style of Dilouar Hossain
My life style of Dilouar Hossain
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
Dilouar Hossain
 
Welcome to creative pos
Welcome to creative posWelcome to creative pos
Welcome to creative pos
Dilouar Hossain
 
Welcome to creative Software in Bangladesh
Welcome to creative Software in BangladeshWelcome to creative Software in Bangladesh
Welcome to creative Software in Bangladesh
Dilouar Hossain
 
Batch operating system
Batch operating system Batch operating system
Batch operating system
Dilouar Hossain
 
High pass filter with analog electronic
High pass filter with analog electronicHigh pass filter with analog electronic
High pass filter with analog electronic
Dilouar Hossain
 
Dc generator with machine 2
Dc generator with machine 2Dc generator with machine 2
Dc generator with machine 2
Dilouar 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

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
Madhumitha Jayaram
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
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
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
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
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
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
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
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
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 

Recently uploaded (20)

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
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
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
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
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
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...
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
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
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 

Theory of computing pdf

  • 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