Exercises for the Week 11 part 1 lecture video
- Is the language
regular? Why or why not?- It is regular, because it is the language denoted by the regular expression
.
- It is regular, because it is the language denoted by the regular expression
- Let L be the set of all prefixes of the string "abc". Write down a regular expression for L.
, or
- Write down a regular expression for all strings of bits that don't contain
the substring 00. Don't use extended regular expression syntax.
- Are the regular expressions
and equivalent? Clearly explain why or why not.- They are not equivalent. The language denoted
by
includes the string , which is not in the language denoted by . Since they do not denote the same language, they are not equivalent.
- They are not equivalent. The language denoted
by