Assignment 4

Nils Anders Danielsson

  1. (3p) [AB] Prove that a*(b + ab*) = b + aa*b*.

  2. (2p) Prove that every non-regular language over an alphabet Σ has an infinite complement (with respect to Σ*).

    Hint: Use one of the closure properties for regular languages.

  3. (3p) [AB] Show that the language {w ∈ {0, 1, 2}* | #0(w) + #1(w) = #2(w)} over the alphabet {0, 1, 2} is not regular by using the pumping lemma for regular languages. Here #a(w) is the number of occurrences of a in w.

  4. (2p) [AB] Minimise the following DFA:

      0 1
     →  * s s s
    s s s
     * s s s
    s s s
    s s s
    s s s

    Do not just give an answer, show step by step how you construct the minimised DFA.

(Exercises marked with [AB] are based on exercises from a previous version of this course, given by Ana Bove.)