DFA Category 2: Starts and ends with
DFA accepts strings that start with a specific substring and/or end with a specific substring. For Examples
- Starts with
01
- Ends with
000
- Starts with
a
, ends withbb
- Starts and ends with the same symbol
DFA Example:
Construct a DFA that accepts all the strings over the alphabets ∑ {0,1} that start with “0”.
DFA Description
States = {q0, q1, q∅ }
Input Alphabet = {0, 1}
Initial State = q0
Final States = {q1}
Dead State = q∅ (trap state)
DFA Example:
Construct DFA, which accept all the string over alphabets ∑ {0,1} that start with “01”.
DFA Example:
Construct DFA, which accepts all the strings over alphabets ∑ {0,1} that ends with “0”.
Example:
Construct DFA, which accept all the string over alphabets ∑ {0,1} that end with “10”.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1}, accepts those string which starts with one and ends with 0.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings ending in either ’01’ or ’10’.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings starting and ending with ‘0’ always.
DFA Example:
Design a DFA with sigma ∑ = {0, 1} for the language accepting strings starting and ending with different characters.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings starting and ending with the same characters.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings starting with ‘00’ or ’11’
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings ending with ‘0011’.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings ending with ‘0110’.
DFA Example:
Construct a DFA with sigma ∑ = {0, 1} for the language accepting strings ending with ‘00’.
Comments
Post a Comment