Question 1.5: Each of the following languages is the complement of a simpl...

Each of the following languages is the complement of a simpler language. In each part, construct a DFA for the simpler language, then use it to give the state diagram of a DFA for the language given. In all parts, ∑= {a, b}.

A a. \{w \mid w does not contain the substring ab\}
{ }^{A} b. \{w \mid w does not contain the substring baba \}
c. \{w \mid w contains neither the substrings ab nor ba\}
d. \left\{w \mid w\right. is any string not in \left.a^{*} b^{*}\right\}
e. \left\{w \mid w\right. is any string not in \left.\left(a b^{*}\right)^{*}\right\}
f. \left\{w \mid w\right. is any string not in \left.a^{*} \cup b^{*}\right\}
g. \{w \mid w is any string that doesn’t contain exactly two a’s \}
h. \{w \mid w is any string except a and b\}

The blue check mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

(a) The left-hand DFA recognizes {ω| ω contains ab}. The right-hand DFA recognizes its complement, {ω| ω doesn’t contain ab}.

(b) This DFA recognizes {ω| ω contains baba}.

This DFA recognizes {ω| ω does not contain baba}.

 

 

111111111111
1646917084036
1646918443189

Related Answered Questions

Question: 1.44

Verified Answer:

Let M_{B} = (Q_{B},\Sigma , \delta _{B},q_{...
Question: 1.23

Verified Answer:

We prove both directions of the “iff.” (→) Assume ...
Question: 1.11

Verified Answer:

Let  N = (Q,\Sigma ,\delta ,q_{0}, F )[/lat...