SlideShare a Scribd company logo
1 of 10
• Draw a DFA for the language accepting strings ending with ’01’ over input alphabets ∑ = {0, 1}
• Draw a DFA for the language accepting strings ending with ‘abb’ over input alphabets ∑ = {a, b}
• Draw a DFA for the language accepting strings ending with ‘abba’ over input alphabets ∑ = {a, b}
minimum length of string = 4 no. states required in the DFA = 4 + 1 = 5.
• Design a FA that accepts language containing strings an 101’ as substring.
• automata that accepts language containing strings which have ‘Design FA with
∑ = {0, 1} accepts the set of all strings with three consecutive 0’s.
• Design a FA with ∑ = {0, 1} accepts those string which starts with 1 and ends
with 0.
• Draw a DFA for the language accepting strings starting with ‘ab’ over
input alphabets ∑ = {a, b}
• Draw a DFA for the language accepting strings starting with ‘101’ over
input alphabets ∑ = {0, 1}
• Construct a DFA that accepts a language L over input alphabets ∑ =
{a, b} such that L is the set of all strings starting with ‘aa’ or ‘bb’
• Draw a DFA for the language accepting strings not having substring
‘101’ over input alphabets ∑ = {0, 1}
• Construct a DFA machine over input alphabet ∑ = {0, 1}, that
accepts:
1.Odd number of 0’s or even number of 1’s
2.Odd number of 1’s and even number of 0’s
3.Either odd number of 0’s or even number of 1’s
but not the both together
NFA CONSTRUCTION
δ: Q x ∑ →2Q
1. NFA with ∑ = {0, 1} accepts all strings with 01.
2. NFA with ∑ = {0, 1} and accept all string of length atleast 2.
3. Design an NFA with ∑ = {0, 1} accepts all string ending with 01.
4. Design an NFA with ∑ = {0, 1} in which double '1' is followed by double ‘0’
1. Design an NFA with ∑ = {0, 1} accepts all string in which the third symbol from the right end is always 0.
Find the language of the automata:
State a b
q0 [q0,q1] [q0]
q0, q1 [q0,q1] [q0,q2]
q0, q2 [q0,q1] [q0]
State a b
q0 {q0,q1} {q0}
q1 ∅ {q2}
q2 ∅ ∅
Transition Function:
δ ( q0, a )= [q0,q1]
δ ( q0, b)= [q0]
δ ( [q0, q1 ], a )= [q0,q1] δ ( { q0, q2 }, a )= [q0,q1]
δ ( [q0, q1 ], b )= [q0,q2] δ ( { q0, q2 }, b )=[q0]
Transition Function:
δ ( q0, a )= {q0,q1}
δ ( q0, b)={q0}
δ ( q1 , a )= ∅ δ ( q2, a )=∅
δ ( q1 , b )={q2} δ ( q2 , b )=∅
Transition table
NFA - ∈
Epsilon (∈) – closure : Epsilon closure for a given state X is a set
of states which can be reached from the states X with only (null) or ε
moves including the state X itself.
Example:2
∈ closure(1) : {1,2,3,4,8 }
∈ closure(2) : {2,3,5 }
∈ closure(3) : { 3}
∈ closure(4) : {4,2,3,5,7,8 }
∈ closure(5) : {5, }
∈ closure(6) : {6,7,8,2,3,5 }
∈ closure(7) : { 7,8,2,3,5}
∈ closure(8) : { 8}
Conversion problem:

More Related Content

What's hot

Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expressionAnimesh Chaturvedi
 
Regular expressions
Regular expressionsRegular expressions
Regular expressionsShiraz316
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory Rajendran
 
Theory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and ProblemsTheory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and ProblemsRushabh2428
 
Theory of computing
Theory of computingTheory of computing
Theory of computingRanjan Kumar
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languagesparmeet834
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compilerIffat Anjum
 
Finite Automata in compiler design
Finite Automata in compiler designFinite Automata in compiler design
Finite Automata in compiler designRiazul Islam
 
Pumping lemma for regular set h1
Pumping lemma for regular set h1Pumping lemma for regular set h1
Pumping lemma for regular set h1Rajendran
 
Context free grammars
Context free grammarsContext free grammars
Context free grammarsRonak Thakkar
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Srimatre K
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Abhimanyu Mishra
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computationBipul Roy Bpl
 
Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFAMaulik Togadiya
 

What's hot (20)

Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expression
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
push down automata
push down automatapush down automata
push down automata
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Pda
PdaPda
Pda
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Theory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and ProblemsTheory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and Problems
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languages
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
Finite Automata in compiler design
Finite Automata in compiler designFinite Automata in compiler design
Finite Automata in compiler design
 
NFA & DFA
NFA & DFANFA & DFA
NFA & DFA
 
Pumping lemma for regular set h1
Pumping lemma for regular set h1Pumping lemma for regular set h1
Pumping lemma for regular set h1
 
Context free grammars
Context free grammarsContext free grammars
Context free grammars
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1
 
Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFA
 

Similar to Automata theory -- NFA and DFA construction

Chapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfChapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfdawod yimer
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata parmeet834
 
Finite state machine without output
Finite state machine without outputFinite state machine without output
Finite state machine without outputTayyab Rajput
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaRushabh2428
 
Resumen material MIT
Resumen material MITResumen material MIT
Resumen material MITRawel Luciano
 
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 1Srimatre K
 
FiniteAutomata (1).ppt
FiniteAutomata (1).pptFiniteAutomata (1).ppt
FiniteAutomata (1).pptssuser47f7f2
 
FiniteAutomata.ppt
FiniteAutomata.pptFiniteAutomata.ppt
FiniteAutomata.pptRohitPaul71
 
Automata
AutomataAutomata
AutomataGaditek
 
Automata
AutomataAutomata
AutomataGaditek
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examplesankitamakin
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examplesankitamakin
 

Similar to Automata theory -- NFA and DFA construction (20)

15159222.ppt
15159222.ppt15159222.ppt
15159222.ppt
 
Flat
FlatFlat
Flat
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
 
Chapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfChapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdf
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata
 
Finite state machine without output
Finite state machine without outputFinite state machine without output
Finite state machine without output
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
Resumen material MIT
Resumen material MITResumen material MIT
Resumen material MIT
 
Automata
AutomataAutomata
Automata
 
Unit2 Toc.pptx
Unit2 Toc.pptxUnit2 Toc.pptx
Unit2 Toc.pptx
 
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
 
To lec 04
To lec 04To lec 04
To lec 04
 
FiniteAutomata (1).ppt
FiniteAutomata (1).pptFiniteAutomata (1).ppt
FiniteAutomata (1).ppt
 
FiniteAutomata.ppt
FiniteAutomata.pptFiniteAutomata.ppt
FiniteAutomata.ppt
 
Push down automata
Push down automataPush down automata
Push down automata
 
Automata
AutomataAutomata
Automata
 
Automata
AutomataAutomata
Automata
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 

More from Akila Krishnamoorthy

More from Akila Krishnamoorthy (13)

Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
Automata theory - RE to DFA Conversion
Automata theory - RE to DFA ConversionAutomata theory - RE to DFA Conversion
Automata theory - RE to DFA Conversion
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 
Automata theory -RE to NFA-ε
Automata theory -RE to  NFA-εAutomata theory -RE to  NFA-ε
Automata theory -RE to NFA-ε
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Automata theory - NFA to DFA Conversion
Automata theory - NFA to DFA ConversionAutomata theory - NFA to DFA Conversion
Automata theory - NFA to DFA Conversion
 
Intro to automata theory
Intro to automata theoryIntro to automata theory
Intro to automata theory
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfa
 
Automata theory - CFG and normal forms
Automata theory - CFG and normal formsAutomata theory - CFG and normal forms
Automata theory - CFG and normal forms
 
Slr parser
Slr parserSlr parser
Slr parser
 
CLR AND LALR PARSER
CLR AND LALR PARSERCLR AND LALR PARSER
CLR AND LALR PARSER
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
 
Keypoints c strings
Keypoints   c stringsKeypoints   c strings
Keypoints c strings
 

Recently uploaded

Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
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
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 

Recently uploaded (20)

Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
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...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

Automata theory -- NFA and DFA construction

  • 1.
  • 2. • Draw a DFA for the language accepting strings ending with ’01’ over input alphabets ∑ = {0, 1} • Draw a DFA for the language accepting strings ending with ‘abb’ over input alphabets ∑ = {a, b} • Draw a DFA for the language accepting strings ending with ‘abba’ over input alphabets ∑ = {a, b} minimum length of string = 4 no. states required in the DFA = 4 + 1 = 5.
  • 3. • Design a FA that accepts language containing strings an 101’ as substring. • automata that accepts language containing strings which have ‘Design FA with ∑ = {0, 1} accepts the set of all strings with three consecutive 0’s. • Design a FA with ∑ = {0, 1} accepts those string which starts with 1 and ends with 0.
  • 4. • Draw a DFA for the language accepting strings starting with ‘ab’ over input alphabets ∑ = {a, b} • Draw a DFA for the language accepting strings starting with ‘101’ over input alphabets ∑ = {0, 1} • Construct a DFA that accepts a language L over input alphabets ∑ = {a, b} such that L is the set of all strings starting with ‘aa’ or ‘bb’
  • 5. • Draw a DFA for the language accepting strings not having substring ‘101’ over input alphabets ∑ = {0, 1} • Construct a DFA machine over input alphabet ∑ = {0, 1}, that accepts: 1.Odd number of 0’s or even number of 1’s 2.Odd number of 1’s and even number of 0’s 3.Either odd number of 0’s or even number of 1’s but not the both together
  • 6. NFA CONSTRUCTION δ: Q x ∑ →2Q 1. NFA with ∑ = {0, 1} accepts all strings with 01. 2. NFA with ∑ = {0, 1} and accept all string of length atleast 2. 3. Design an NFA with ∑ = {0, 1} accepts all string ending with 01. 4. Design an NFA with ∑ = {0, 1} in which double '1' is followed by double ‘0’ 1. Design an NFA with ∑ = {0, 1} accepts all string in which the third symbol from the right end is always 0.
  • 7. Find the language of the automata: State a b q0 [q0,q1] [q0] q0, q1 [q0,q1] [q0,q2] q0, q2 [q0,q1] [q0] State a b q0 {q0,q1} {q0} q1 ∅ {q2} q2 ∅ ∅ Transition Function: δ ( q0, a )= [q0,q1] δ ( q0, b)= [q0] δ ( [q0, q1 ], a )= [q0,q1] δ ( { q0, q2 }, a )= [q0,q1] δ ( [q0, q1 ], b )= [q0,q2] δ ( { q0, q2 }, b )=[q0] Transition Function: δ ( q0, a )= {q0,q1} δ ( q0, b)={q0} δ ( q1 , a )= ∅ δ ( q2, a )=∅ δ ( q1 , b )={q2} δ ( q2 , b )=∅ Transition table
  • 8. NFA - ∈ Epsilon (∈) – closure : Epsilon closure for a given state X is a set of states which can be reached from the states X with only (null) or ε moves including the state X itself.
  • 9. Example:2 ∈ closure(1) : {1,2,3,4,8 } ∈ closure(2) : {2,3,5 } ∈ closure(3) : { 3} ∈ closure(4) : {4,2,3,5,7,8 } ∈ closure(5) : {5, } ∈ closure(6) : {6,7,8,2,3,5 } ∈ closure(7) : { 7,8,2,3,5} ∈ closure(8) : { 8}