Regular Languages and Regular Expressions
[20/60%]Is the set a regular language?
Is the set a regular language over the binary alphabet?
.
.
Find a regular expression for the set of binary expansions of integers which are the powers of 4.
Find a regular expression for the set of binary strings which have at least one occurrence of the substring 001.
Find a regular expression for the set of binary strings which have no substring 001.
Find a regular expression for the set of all binary strings with at most one pair of consecutive 0's and at most one pair of consecutive 1's.
Find a regular expression for the set of all binary strings with the property that none of its prefixes has two more 0 's than 1 's nor two more 1's than 0 's.
Find a regular expression for the set of all nonempty strings having no repeated adjacent symbols over the arabic digits.
Find a regular expression for the set of all strings over alphabet
that represent correct additions over binary expansions of integers, with leading 0 's added when necessary. For example, the relation
implies that the string
is in the set.
For each language over alphabet , let be the set of all suffixes of strings in , that is, . Show that if is a regular language so is .
Show that every regular language has a regular expression in disjunctive normal form , in which each , for , does not contain the operator + .
Describe in English the languages expressed by the following regular expressions:
.
.
.
.
Simplify the following regular expressions:
.
.
.
Construct regular expressions for the following languages over alphabet :
The set of all strings whose fifth symbol from right is 0.
The set of all strings having either 000 or 111 as a substring.
The set of all strings having neither 000 nor 111 as a substring.
The set of all strings having no substring 010.
The set of all strings having an odd number of 0 's.
The set of all strings having an even number of occurrences of substring 011. [Hint: First find the regular expression for the set of binary strings having no substring 011.]
Show that .
Construct a regular expression for the set of all strings over alphabet
that represent correct subtractions. For example,
implies that string
is in the set.
Show that for any regular language and are regular.
Show that if is a regular language, then is regular.
Suppose is a mapping satisfying for any . Show that if is a regular set over , then is a regular set over . Conversely, if is a regular set over , then is a regular set over .