Product automaton construction
[12/75%]Prove Lemma 97 on p. 297.
Definition 126 (Product of automata): Let and be two finite automata with a common input alphabet . A product of the automata and is any automaton of the form , whose program contains the command whenever and . (No condition is imposed on the set of accepting states of , so a product is not a uniquely determined operation — different choices of give different automata.)
Lemma 97: If is a product of and , then for any two states and of and any input word , the following holds: takes to in the automaton if and only if simultaneously takes to in and to in .
Two languages are given over the alphabet :
Construct deterministic finite automata and recognizing the languages and , respectively.
Construct the product of these automata and determine its sets of accepting states , and , for recognizing the languages , respectively.
For each of the following languages, use the product automaton method to construct a DFA that accepts the language:
The set of binary strings beginning with 010 or ending with 101.
The set of binary strings having a substring 010 but not having a substring 101.
The set of binary strings beginning with 010, ending with 101 and having a substring 0000.
For each of the following languages, construct a DFA that accepts the language:
The set of binary strings that contain both substring 010 and substring 101.
The set of all binary strings ending with 00 or 01 or 10.
The set of binary strings that contain both 001 and 110 as substrings or contain neither 001 nor 110 as a substring.
The set of binary strings in which both the fourth symbol from the right and the fourth from the left symbols are 0. [Note: Both strings 0110 and 10101 belong to this set.]
Consider a Boolean function . For any binary strings of equal length, denote by the bitwise function on . That is, if for , , where each is a bit in , then is equal to
Show that if languages are regular, then language
\begin{aligned} \left\{ f\left(x_{1}, x_{2}, \cdots , x_{n}\right) \mid & \left|x_{1}\right|=\left|x_{2}\right|=\cdots =\left|x_{n}\right| \\ & x_{1} \in A_{1}, x_{2} \in A_{2}, \cdots , x_{n} \in A_{n}\right\} \end{aligned}is also regular.
The set of all binary strings having a substring 00 or ending with 01.
The set of all binary strings having a substring 00 and ending with 01.
The set of all binary strings having a substring 00 but not ending with 01.
Show that if and are regular languages over , then
is also regular.
Show that if is a regular language and is a context-free language, then is a context-free language.
Each of the following languages is the intersection of two simpler languages. In each part, construct DFAs for the simpler languages, then combine them using the construction discussed in footnote 3 (page 46) to give the state diagram of a DFA for the language given. In all parts, .
ᴬ
ᴬ
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, .
ᴬ
ᴬ