CSci 3501 Algorithms and Computability - Lab 8.

October 15. Due Wednesday, October 21 at 11:59pm

What to submit and when:

Lab assignment

Work in pairs

Lab overview and goals

The goal of the lab is to explore combining finite automata, and contstructing NFAs.

Lab tasks

Unless specified otherwise, the alphabet is the set of 0 and 1.

Please design finite automata as stated below. Try to construct reasonably simple automata. When a problem asks for an NFA, constructing a DFA is OK if you believe that it is the simplest solution.

  1. Use the approach on p. 46 in the book to construct a DFA for the following language: all strings that have an odd number of 0s or end at 00 (or both). Construct the two simpler automata first (you don't need to submit them)
  2. Use the approach on p. 46 in the book (modified for an intersection instead of a union) to construct a DFA for the following language: all strings that have at least three 0s and at most two 1s. Construct the two simpler automata first (you don't need to submit them)
  3. Construct an NFA for the language of all strings with at least two 0s or at least two 1s.
  4. Construct an NFA for the language of all strings that have at least two occurrences of a pattern 01.
  5. Construct an NFA for the language of all strings that have a pattern 01 but not 011.
  6. Construct an NFA for the language of all strings that end with an even number of 0s.
  7. Construct an NFA for a language of all strings of length at least 3 that have a pattern 01.

Using JFLAP and naming your files

What to submit


CSci 3501 course web site.