CSci 3501 Algorithms and Computability - Lab 8.

October 15. Due Wednesday, October 20 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 (24 points total: 4 for each question)

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.

Using JFLAP and naming your files

For each automaton in questions 1-4 write a short explanation of how it was constructed.

  1. Construct an automaton (DFA or NFA) for the language of all strings that end with an even number of 0s (i.e. the last longest subsequence of 0s at the end of the string has an even length). Note that an empty substring of zeros has an even length.
  2. Construct an (DFA or NFA) for a language of all strings of length at least 3 that have a pattern 01.
  3. Construct an automaton (DFA or NFA) for a concatenation of the following languages: a language of all strings of an odd length and a language of strings that can be represented as a non-empty sequence of 1s followed by a non-empty sequence of 0s. (Old phrasing for the second language: strings that consist of at least one 1 followed by at least one zero). Test the automaton carefully.
  4. Construct an automaton (DFA or NFA) for A* (* stands for the "star" regular operation), where A is the language of strings of length at least two with no occurrences of the pattern 00. Think carefully of what the language is. Use the * construction for NFA. Test the automaton thoroughly.
  5. Use the "convert to DFA" function of JFLAP to convert an NFA for the language of all strings with at least two 0s to a DFA.
  6. Use the "convert to DFA" function of JFLAP to convert an NFA for the language of all strings that end with two 1s to a DFA.

What to submit


CSci 3501 course web site.