SlideShare a Scribd company logo
1 of 18
COMMONWEALTH OF AUSTRALIA
Copyright Regulations 1969
WARNING
This material has been reproduced and communicated to you by or on behalf of Monash University pursuant to
Part VB of the Copyright Act 1968 (the Act).
The material in this communication may be subject to copyright under the Act. Any further reproduction or
communication of this material by you may be the subject of copyright protection under the Act.
Do not remove this notice.
Converting Regular ExpressionsConverting Regular Expressions
into Finite Automatainto Finite Automata
CSE2303 Formal Methods I
Lecture 5
OverviewOverview
• Questions
• Kleene’s Theorem
• Consequences
• Convert Regular Expressions to NFA-Λ
• Convert NFA-Λ to FA
QuestionsQuestions
• Can every language which is represented by
a regular expression be described by a
finite automaton?
• Can every language which is described by a
finite automaton be represented by a
regular expression?
• Can every language be represented by a
regular expression or a finite automaton?
Kleene’s TheoremKleene’s Theorem
Any language which can be defined by
– Regular Expressions
– Finite Automaton
– Nondeterministic Finite Automaton (NFA)
– NFA-Λ
– Transition Graphs
– Generalised Transistion Graphs
can be defined by any of the other methods
The Complement of RegularThe Complement of Regular
Language is a Regular LanguageLanguage is a Regular Language
Outline of Proof:
– Suppose we have a Regular Language.
– Therefore we have a regular expression that
defines the language.
– So, by Kleene’s Theorem, there is a FA that
defines this language.
– We can convert this FA into one that defines the
complement the language.
– So, by Kleene’s Theorem, there is a regular
expression that defines the complement.
Kleene’s TheoremKleene’s Theorem
Regular Expression
Finite Automaton
NFA-ΛGTG
TG NFA
How to convert aHow to convert a
Regular ExpressionRegular Expression
into ainto a
NFA-NFA-ΛΛ
Converting Regular ExpressionConverting Regular Expression
to NFA-to NFA-ΛΛ
Start with the graph.
- +
Regular Expression
Apply the following rules until all edges are
labeled with a letter or Λ.
1. Delete any edge labeled with φ.
2. Transform any edge like
RS
R
into
S
3. Transform any edge like:
into
R + S
R
S
4. Transform any edge like:
into
R*
R
Λ Λ
1-
a
b
Λ
2 3+
4
5
Λ
Λ
Λ
6 7
Λ
Λ
a
a
(a* + aa*b)*(a* + aa*b)*
How to convert aHow to convert a
NFA-NFA-ΛΛ
into ainto a
FAFA
a
bb
-
a,b a,ba
3
2
41 +
a b
Start {1} {1,2} {1,3}
{1,2} {1,2,4} {1,3}
{1,3} {1,2} {1,3,4}
Final {1,2,4} {1,2,4} {1,3,4}
Final {1,3,4} {1,2,4} {1,3,4}
1-
a b
Λ
2 3 4 5+
Λ Λ Λ
a b
Start/Final {1,2,3,4,5} {2,3,4,5} {4,5}
Final {2,3,4,5} {2,3,4,5} {4,5}
Final {4,5} φ {4,5}
φ φ φ
1-
a
b
Λ
2 3+
4
5
Λ
Λ
Λ
6 7
Λ
Λ
a
a
a b
Start /Final{1,2,3,4} {5,4,6,7,2,3} φ
Final {2,3,4,5,6,7} {5,4,6,7,2,3} {2,3,4}
Final {2,3,4} {5,4,6,7,2,3} φ
φ φ φ
RevisionRevision
• Understand Kleene’s Theorem
• Be able to convert Regular Expressions into NFA-Λ
• Be able to convert NFA-Λ into a Finite Automaton
• Read
– Text Book Chapter 8

More Related Content

What's hot

3 linear regression deep
3   linear regression deep3   linear regression deep
3 linear regression deepTarlan Ahadli
 
1.9. minimization of dfa
1.9. minimization of dfa1.9. minimization of dfa
1.9. minimization of dfaSampath Kumar S
 
A944346117 22750 24_2018_equivalence of dfa and ndfa
A944346117 22750 24_2018_equivalence of dfa and ndfaA944346117 22750 24_2018_equivalence of dfa and ndfa
A944346117 22750 24_2018_equivalence of dfa and ndfaMohd Arif Ansari
 
Translating into Common Logic
Translating into Common LogicTranslating into Common Logic
Translating into Common LogicPat Hayes
 
replacement grammars
replacement grammarsreplacement grammars
replacement grammarsRajendran
 
Teaching the Group Theory of Permutation Ciphers
Teaching the Group Theory of Permutation CiphersTeaching the Group Theory of Permutation Ciphers
Teaching the Group Theory of Permutation CiphersJoshua Holden
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfaSampath Kumar S
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR Zahid Parvez
 
Coding & Decoding Reasoning Tricks
Coding & Decoding Reasoning TricksCoding & Decoding Reasoning Tricks
Coding & Decoding Reasoning Trickssakshi
 
Coding Decoding Reasoning Tricks for Competitive Exams
Coding Decoding Reasoning Tricks for Competitive ExamsCoding Decoding Reasoning Tricks for Competitive Exams
Coding Decoding Reasoning Tricks for Competitive ExamsEntrance Exam Info
 
How to solve problems of coding decoding?
How to solve problems of coding decoding?How to solve problems of coding decoding?
How to solve problems of coding decoding?sakshi
 

What's hot (13)

3 linear regression deep
3   linear regression deep3   linear regression deep
3 linear regression deep
 
1.9. minimization of dfa
1.9. minimization of dfa1.9. minimization of dfa
1.9. minimization of dfa
 
Context free grammars
Context free grammarsContext free grammars
Context free grammars
 
A944346117 22750 24_2018_equivalence of dfa and ndfa
A944346117 22750 24_2018_equivalence of dfa and ndfaA944346117 22750 24_2018_equivalence of dfa and ndfa
A944346117 22750 24_2018_equivalence of dfa and ndfa
 
Translating into Common Logic
Translating into Common LogicTranslating into Common Logic
Translating into Common Logic
 
replacement grammars
replacement grammarsreplacement grammars
replacement grammars
 
Teaching the Group Theory of Permutation Ciphers
Teaching the Group Theory of Permutation CiphersTeaching the Group Theory of Permutation Ciphers
Teaching the Group Theory of Permutation Ciphers
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR
 
Coding & Decoding Reasoning Tricks
Coding & Decoding Reasoning TricksCoding & Decoding Reasoning Tricks
Coding & Decoding Reasoning Tricks
 
Coding Decoding Reasoning Tricks for Competitive Exams
Coding Decoding Reasoning Tricks for Competitive ExamsCoding Decoding Reasoning Tricks for Competitive Exams
Coding Decoding Reasoning Tricks for Competitive Exams
 
2.coding decoding
2.coding decoding2.coding decoding
2.coding decoding
 
How to solve problems of coding decoding?
How to solve problems of coding decoding?How to solve problems of coding decoding?
How to solve problems of coding decoding?
 

Viewers also liked

Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal languageRabia Khalid
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of AutomataFarooq Mian
 
Generalized transition graphs
Generalized transition graphsGeneralized transition graphs
Generalized transition graphsArham Khan G
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theoryNYversity
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Farwa Ansari
 
Automata
AutomataAutomata
AutomataGaditek
 

Viewers also liked (11)

Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Deterministic Finite Automata
Deterministic Finite AutomataDeterministic Finite Automata
Deterministic Finite Automata
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Generalized transition graphs
Generalized transition graphsGeneralized transition graphs
Generalized transition graphs
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
 
Automata
AutomataAutomata
Automata
 
Finite automata
Finite automataFinite automata
Finite automata
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 

Similar to Commonwealth Copyright Regulations 1969 Warning

MidtermI-review.pptx
MidtermI-review.pptxMidtermI-review.pptx
MidtermI-review.pptxamara jyothi
 
Latent Semantic Transliteration using Dirichlet Mixture
Latent Semantic Transliteration using Dirichlet MixtureLatent Semantic Transliteration using Dirichlet Mixture
Latent Semantic Transliteration using Dirichlet MixtureRakuten Group, Inc.
 
MorphologyAndFST.pdf
MorphologyAndFST.pdfMorphologyAndFST.pdf
MorphologyAndFST.pdfssuser97943d
 
context free language
context free languagecontext free language
context free languagekhush_boo31
 
Theory of Computation - Lectures 6 & 7
Theory of Computation - Lectures 6 & 7Theory of Computation - Lectures 6 & 7
Theory of Computation - Lectures 6 & 7Dr. Maamoun Ahmed
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammarAfshanKhan51
 
Class9
 Class9 Class9
Class9issbp
 

Similar to Commonwealth Copyright Regulations 1969 Warning (10)

Unit2 Toc.pptx
Unit2 Toc.pptxUnit2 Toc.pptx
Unit2 Toc.pptx
 
MidtermI-review.pptx
MidtermI-review.pptxMidtermI-review.pptx
MidtermI-review.pptx
 
Latent Semantic Transliteration using Dirichlet Mixture
Latent Semantic Transliteration using Dirichlet MixtureLatent Semantic Transliteration using Dirichlet Mixture
Latent Semantic Transliteration using Dirichlet Mixture
 
MorphologyAndFST.pdf
MorphologyAndFST.pdfMorphologyAndFST.pdf
MorphologyAndFST.pdf
 
Unit ii
Unit iiUnit ii
Unit ii
 
context free language
context free languagecontext free language
context free language
 
Theory of Computation - Lectures 6 & 7
Theory of Computation - Lectures 6 & 7Theory of Computation - Lectures 6 & 7
Theory of Computation - Lectures 6 & 7
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammar
 
Class9
 Class9 Class9
Class9
 
Alofairi Adel
Alofairi  AdelAlofairi  Adel
Alofairi Adel
 

Recently uploaded

Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...Authentic No 1 Amil Baba In Pakistan
 
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝soniya singh
 
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...Suhani Kapoor
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...Pooja Nehwal
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程1k98h0e1
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Pooja Nehwal
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Russian Call Girls Kolkata Chhaya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls Kolkata Chhaya 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls Kolkata Chhaya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls Kolkata Chhaya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRdollysharma2066
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》o8wvnojp
 
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一ss ss
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一C SSS
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...Amil baba
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...nagunakhan
 
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service Saharanpur
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service SaharanpurVIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service Saharanpur
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service SaharanpurSuhani Kapoor
 

Recently uploaded (20)

Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
 
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝
Call Girls in Dwarka Sub City 💯Call Us 🔝8264348440🔝
 
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
CIVIL ENGINEERING
CIVIL ENGINEERINGCIVIL ENGINEERING
CIVIL ENGINEERING
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
 
Russian Call Girls Kolkata Chhaya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls Kolkata Chhaya 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls Kolkata Chhaya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls Kolkata Chhaya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
 
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
 
Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565
 
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service Saharanpur
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service SaharanpurVIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service Saharanpur
VIP Call Girl Saharanpur Aashi 8250192130 Independent Escort Service Saharanpur
 

Commonwealth Copyright Regulations 1969 Warning

  • 1. COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University pursuant to Part VB of the Copyright Act 1968 (the Act). The material in this communication may be subject to copyright under the Act. Any further reproduction or communication of this material by you may be the subject of copyright protection under the Act. Do not remove this notice.
  • 2. Converting Regular ExpressionsConverting Regular Expressions into Finite Automatainto Finite Automata CSE2303 Formal Methods I Lecture 5
  • 3. OverviewOverview • Questions • Kleene’s Theorem • Consequences • Convert Regular Expressions to NFA-Λ • Convert NFA-Λ to FA
  • 4. QuestionsQuestions • Can every language which is represented by a regular expression be described by a finite automaton? • Can every language which is described by a finite automaton be represented by a regular expression? • Can every language be represented by a regular expression or a finite automaton?
  • 5. Kleene’s TheoremKleene’s Theorem Any language which can be defined by – Regular Expressions – Finite Automaton – Nondeterministic Finite Automaton (NFA) – NFA-Λ – Transition Graphs – Generalised Transistion Graphs can be defined by any of the other methods
  • 6. The Complement of RegularThe Complement of Regular Language is a Regular LanguageLanguage is a Regular Language Outline of Proof: – Suppose we have a Regular Language. – Therefore we have a regular expression that defines the language. – So, by Kleene’s Theorem, there is a FA that defines this language. – We can convert this FA into one that defines the complement the language. – So, by Kleene’s Theorem, there is a regular expression that defines the complement.
  • 7. Kleene’s TheoremKleene’s Theorem Regular Expression Finite Automaton NFA-ΛGTG TG NFA
  • 8. How to convert aHow to convert a Regular ExpressionRegular Expression into ainto a NFA-NFA-ΛΛ
  • 9. Converting Regular ExpressionConverting Regular Expression to NFA-to NFA-ΛΛ Start with the graph. - + Regular Expression
  • 10. Apply the following rules until all edges are labeled with a letter or Λ. 1. Delete any edge labeled with φ. 2. Transform any edge like RS R into S
  • 11. 3. Transform any edge like: into R + S R S
  • 12. 4. Transform any edge like: into R* R Λ Λ
  • 14. How to convert aHow to convert a NFA-NFA-ΛΛ into ainto a FAFA
  • 15. a bb - a,b a,ba 3 2 41 + a b Start {1} {1,2} {1,3} {1,2} {1,2,4} {1,3} {1,3} {1,2} {1,3,4} Final {1,2,4} {1,2,4} {1,3,4} Final {1,3,4} {1,2,4} {1,3,4}
  • 16. 1- a b Λ 2 3 4 5+ Λ Λ Λ a b Start/Final {1,2,3,4,5} {2,3,4,5} {4,5} Final {2,3,4,5} {2,3,4,5} {4,5} Final {4,5} φ {4,5} φ φ φ
  • 17. 1- a b Λ 2 3+ 4 5 Λ Λ Λ 6 7 Λ Λ a a a b Start /Final{1,2,3,4} {5,4,6,7,2,3} φ Final {2,3,4,5,6,7} {5,4,6,7,2,3} {2,3,4} Final {2,3,4} {5,4,6,7,2,3} φ φ φ φ
  • 18. RevisionRevision • Understand Kleene’s Theorem • Be able to convert Regular Expressions into NFA-Λ • Be able to convert NFA-Λ into a Finite Automaton • Read – Text Book Chapter 8