0% found this document useful (0 votes)
761 views4 pages

Construct A DFA That Accepts All Strings Over (0,1) of Length Exactly 2

The document contains instructions for constructing several deterministic finite automata (DFAs) over various alphabets and languages: 1) A DFA that accepts strings of length 2 over {0,1}; 2) A DFA that accepts strings of length at least 2 over {0,1}; 3) A DFA that accepts strings of length at most 2 over {0,1}; 4) A DFA that accepts strings containing 1 over {0,1}; 5) A DFA that accepts strings where every 1 is followed by 3 over {0,1,2,3,4,5,6,7,8,9}; 6) A DFA that accepts strings where the length is even

Uploaded by

AB Kalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
761 views4 pages

Construct A DFA That Accepts All Strings Over (0,1) of Length Exactly 2

The document contains instructions for constructing several deterministic finite automata (DFAs) over various alphabets and languages: 1) A DFA that accepts strings of length 2 over {0,1}; 2) A DFA that accepts strings of length at least 2 over {0,1}; 3) A DFA that accepts strings of length at most 2 over {0,1}; 4) A DFA that accepts strings containing 1 over {0,1}; 5) A DFA that accepts strings where every 1 is followed by 3 over {0,1,2,3,4,5,6,7,8,9}; 6) A DFA that accepts strings where the length is even

Uploaded by

AB Kalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CSE 417 Automata and Theory of Computation

2020

Dr. Nafees Mansoor

15

Construct a DFA that accepts all strings over {0,1} of length exactly 2
CSE 417 Automata and Theory of Computation
L= {00, 01, 10, 11}

0,1 0,1
Q0 Q1 Q2

0,1

Q3 0/1

2020

Dr. Nafees Mansoor

18
Construct a DFA that accepts all strings over {0,1} where string

CSE 417 Automata and Theory of Computation


length is at least 2

L={00, 01, 10, 11, 000, 010 …}

0,1 0,1
Q0 Q1 Q2 0/1

2020

Dr. Nafees Mansoor

19

Construct a DFA that accepts all strings over {0,1} where string length is at CSE 417 Automata and Theory of Computation
most 2

L= {e ,0,1,00, 01, 10, 11}

0,1 0,1
Q0 Q1 Q2

0,1

Q3 0/1

2020

Dr. Nafees Mansoor

20
CSE 417 Automata and Theory of Computation
Construct a DFA that accepts all strings over {0,1} that contains 1
S={0,1}

Construct a DFA that accepts all strings over {0,1, 2 … 9} where


every 1 is followed by 3
S={0,1,2,3,4,5,6,7,8,9}

2020

Dr. Nafees Mansoor

21

Construct a DFA that accepts all strings over {a,b} where


|string|mod2=0 CSE 417 Automata and Theory of Computation

L= {e , aa, ab, ba, bb, aaaa, aaab … }

a,b a,b a,b a,b


Q0 Q1 Q2 Q3 Q4

a,b a,b a,b


Q0 Q1 Q2

a,b 2020

Dr. Nafees Mansoor

22
CSE 417 Automata and Theory of Computation
Construct a DFA that accepts all strings over {a,b} where |string|mod2=0

a,b
Q0 Q1

a,b

2020

Dr. Nafees Mansoor

23

Construct a DFA that accepts all odd length strings over {a,b} CSE 417 Automata and Theory of Computation
|string|mod2=1

a,b
Q0 Q1

a,b

2020

Dr. Nafees Mansoor

24

You might also like