COMP 494: Problem Set 1 --- Due Thursday, July 6, 2000
-
Give DFAs for the following languages. Assume Sigma = {0,1}.
- The set of all strings with 010 as a substring
- The set of all strings which do not have 010 as a substring
- The set of all strings which have an even number of 0's or
an even number of 1's
- The complement of {1,10}*
- The binary encodings of numbers divisible by 3:
{0}* {e, 11, 110, 1001, 1100, 1111, ...}
- State whether the following proposition are true or false,
proving each answer.
- Every DFA-acceptable language can be accepted by a DFA with an even number of
states.
- Every DFA-acceptable language can be accepted by a DFA whose start state is
never visited twice.
- Every DFA-acceptable language can be accepted by a DFA no state of
which is ever visited more than once.
- Every DFA-acceptable language can be accepted by a DFA with only a single
final state.