Question: The operation DM(L) is defined as follows: Throw away every even-length string from L. For each odd-length string, remove the middle character. For example, if

The operation DM(L) is defined as follows:

Throw away every even-length string from L.

For each odd-length string, remove the middle character.

For example, if L = {001, 1100, 10101}, then DM(L) = {01, 1001}. That is, even-length string 1100 is deleted, the middle character of 001 is removed to make 01, and the middle character of 10101 is removed to make 1001.

It turns out that if L is a regular language, DM(L) may or may not be regular. For each of the following languages L, determine what DM(L) is, and tell whether or not it is regular.

L1: the language of regular expression (01)*0.

L2: the language of regular expression (0+1)*1(0+1)*.

L3: the language of regular expression (101)*.

L4: the language of regular expression 00*11*.

Now, identify the true statement below.

a) DM(L2) is not regular; it consists of all strings of the form (0+1)n00(0+1)n.
b) DM(L1) is not regular; it consists of all strings of the form (01)n(10)n for n 1.
c) DM(L2) is regular; it is the language of regular expression (0+1)*.
d) DM(L2) is regular; it is the language of regular expression ((0+1)(0+1))*.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!