Chapter 1: Q18E (page 86)
Give regular expressions generating the languages of Exercise 1.6.
a. {begins with a 1 and ends with a 0}
b. { contains at least three 1s}
c. { contains the substring 0101 (i.e., w = x0101y for some x and y)}
d. { has length at least 3 and its third symbol is a 0}
e. { starts with 0 and has odd length, or starts with 1 and has even length}
f. { doesn’t contain the substring 110}
g. { the length of is at most 5}
h. { is any string except 11 and 111}
i. { every odd position of w is a 1 }
j. { contains at least two 0s and at most one 1}
k.
l. { contains an even number of 0 s, or contains exactly two 1s}
m. The empty set
n. All strings except the empty string
Short Answer
DFA is an abbreviation for deterministic finite automata. The consistency of the calculation is referred to as being deterministic. If the machine reads an input string one symbol at a time, the finite automaton is termed a finite-state automaton.