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 (20)

Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expression
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR CONTEXT FREE GRAMMAR
CONTEXT FREE GRAMMAR
 
String matching algorithms
String matching algorithmsString matching algorithms
String matching algorithms
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Language
LanguageLanguage
Language
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Divide and conquer
Divide and conquerDivide and conquer
Divide and conquer
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Time complexity
Time complexityTime complexity
Time complexity
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translation
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
 
Unit 1 chapter 1 Design and Analysis of Algorithms
Unit 1   chapter 1 Design and Analysis of AlgorithmsUnit 1   chapter 1 Design and Analysis of Algorithms
Unit 1 chapter 1 Design and Analysis of Algorithms
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersCs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papers
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 

Similar to COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969

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
 
replacement grammars
replacement grammarsreplacement grammars
replacement grammarsRajendran
 
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 OF AUSTRALIA Copyright Regulations 1969 (11)

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
 
replacement grammars
replacement grammarsreplacement grammars
replacement grammars
 
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

4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Recently uploaded (20)

4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 

COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969

  • 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