DFA solved examples
Example 1: Draw a DFA for the language accepting strings ending with ‘0’ over input alphabets ∑={0, 1} ?
Solution:
Example 2: Draw a DFA for the language accepting strings ending with ‘01’ over input alphabets ∑={0, 1} ?
Solution:
Example 3: Draw a DFA for the language accepting strings ending with ‘00’ over input alphabets ∑={0, 1} ?
Solution:
Example 4: Draw a DFA for the language accepting strings ending with ‘011’ over input alphabets ∑ = {0, 1} ?
Solution:
Solution:
Example 6: Draw a DFA for the language accepting strings ending with ‘0011’ over input alphabets ∑ = {0, 1} ?
Solution:
Example 7: Draw a DFA for the language accepting strings with ‘0’ only over input alphabets ∑={0, 1} ?
Solution:
Example 8: Draw a DFA for the language accepting strings with ‘0’ and '1' only over input alphabets ∑={0, 1} ?
Solution:
Example 9: Draw a DFA for the language accepting strings starting with ‘0’ over input alphabets ∑={0, 1} ?
Solution:
Example 10: Draw a DFA for the language accepting strings starting with ‘01’ over input alphabets ∑={0, 1} ?
Solution:
Example 11: Draw a DFA for the language accepting strings starting with ‘00’ over input alphabets ∑={0, 1} ?
Solution:
Example 12: Draw a DFA for the language accepting strings starting with ‘011’ over input alphabets ∑ = {0, 1} ?
Solution:
Example 13: Draw a DFA for the language accepting strings starting with ‘0110’ over input alphabets ∑ = {0, 1} ?
Solution:
Example 14: Draw a DFA for the language accepting strings starting with ‘0011’ over input alphabets ∑ = {0, 1} ?
Solution:
Example 15: Draw a DFA for the language accepting strings starting with ‘00’ or '11' over input alphabets ∑ = {0, 1} ?Solution:
Solution:
Example 17: Draw a DFA for the language accepting even binary numbers strings over input alphabets ∑ = {0, 1} ?Soluntion:
Example 18: Draw a DFA for the language accepting odd binary numbers strings over input alphabets ∑ = {0, 1} ?Solution:
Example 19: Draw a DFA for the language accepting odd or even binary numbers strings over input alphabets ∑ = {0, 1} ?Solution:
Example 20: Draw a DFA for the language accepting strings containg even number of total zeros over input alphabets ∑ = {0, 1} ?Solution:
Example 21: Draw a DFA for the language accepting strings starting and ending with different characters over input alphabets ∑ = {0, 1} ?Soluiton:
Example 22: Draw a DFA for the language accepting strings starting and ending with same character over input alphabets ∑ = {0, 1} ?Solution:
Example 23: Draw a DFA for the language accepting strings starting and ending with '0' always over input alphabets ∑ = {0, 1} ?
Solution:
Example 24: Draw a DFA for the language accepting strings containing three consecutives '0' always over input alphabets ∑ = {0, 1} ?
Solution:
Example 25: Draw a DFA for the language accepting strings such that each '0' is immediately preceded and followed by '1' over input alphabets ∑ = {0, 1} ?Solution:
Example 26: Draw a DFA for the language accepting strings containing at most two '0' over input alphabets ∑ = {0, 1} ?
Solution:
Example 27: Draw a DFA for the language accepting strings containing at least two '0' over input alphabets ∑ = {0, 1} ?Solution:
Example 28: Draw a DFA for the language accepting strings containing exactly two '0' over input alphabets ∑ = {0, 1} ?Solution:
Example 29: Draw a DFA for the language accepting strings with '011' as substring over input alphabets ∑ = {0, 1} ?Solution:
Example 30: Draw a DFA for the language accepting strings ending in either '01', or '10' over input alphabets ∑ = {0, 1} ?Solution:
Example 31: Draw a DFA for the language accepting strings containing '01', or '10' as substring over input alphabets ∑ = {0, 1} ?Solution:
Solution:
More to read in TOC
EasyExamNotes.com covered following topics in TOC.
- Definition of DFA
- DFA notations
- How DFA process inputs
- DFA solved examples
- Minimization of DFA
- Definition of NFA
- Equivalent of DFA and NFA
- Properties of transition functions
- Trape/ Dead state
- Moore machine
- Mealy machine
- Mealy to Moore machine conversion
- Moore to Mealy machine conversion
- Difference between Mealy and Moore machine
- Regular expression
- Regular expression examples
- Regular expresstion to CFG
- Regular expression to Regular grammar
- Ambiguous grammar
- Leftmost and Rightmost derivations
- Arden's Law
- NFA with ∈ moves
- Construct NFA without ∈ moves
- NFA with ∈ to DFA Indirect method
- Convert CFG in to CNF
- CFL are not closed under intersection
Very nice
ReplyDeleteThanks
DeleteSir it is very helpfull in exam time for practice 🙂
ReplyDeleteThanks
DeleteI think there are two mistakes in example 22 where the arrows pointing from the final states to themselves should be 0 and 1 correspondingly from top.
ReplyDeleteI think there's mistake in example 8. What's the need of 4 state?
ReplyDelete