Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions