Starting from:
$35

$29

Problem Set 4 Solution

Problem 1. (15 points) Apply the DFA minimization algorithm to the DFA shown below. Show the matrix of distinguishable pairs of states after each iteration of the loop.




















Problem 2. (25 points)
    a) (3 points) Prove that if  is a regular language, then so is  ̅,the complement of  .

    b) (2 points) Prove that if   ,  are each regular, then so is  −   , the difference of  and   .
    c) (10 points) Show that the language
= {      :   ,   ,    ≥ 0 and  = 1 ⇒    =   }

satisfies the three conditions of the pumping lemma. Hint: set the pumping threshold to 2 and argue that every string in can be divided into three parts to satisfy the conditions of the pumping lemma.
    d) (5 points) Prove that   is not regular. Use the result of part (b), and note that

= ∗ ∗∪   ∗ ∗ ∗∪{      : ≥0}.

    e) (5 points) Explain why parts (c) and (d) do not contradict the pumping lemma.

Optional Problem. (20 points)
In class we showed how to convert a DFA    = (  , Σ,   , 0,   ) into a reduced DFA

= (   , Σ, , 0  , ) where = {[  ]: ∈   }, = {{  ]: ∈   }, 0   = [   ], ([  ],   ) = [  (  ,   )] ∀   ∈ Σ, ∈   .
    (a) Show that [  ] ∈∈   .

    (b) Prove, by induction on the length of string   :
∀   ∈ Σ∗ ∶    ([  ],   ) = [ (  ,   )].
    (c) Prove that   (  ) =   (   ).

    (d) Show that is the minimum state DFA for   (  ) by showing that every pair of states of is distinguishable.

    (e) Use the result of part (d) to argue that every DFA for the language = {1 } has at least + 2 states.

More products