Question: 1 . For any string w = w 1 w 2 wn the reverse of w , written wR , is the string w in

1. For any string w = w1w2 wn the reverse of w, written wR, is the string w in reverse order, wn w2w1. For any language A, let AR ={wR | w in A}. Show that if A is regular then so is AR. In other words, prove that regular languages are closed under the operation of string reversal.
2. Let L1, L2, L3 be languages over the alphabet {a, b, c, d} and let L denote the
complement of a language L. If
L1 L2= L3 and
L3 is not regular,
then what, if anything, can you say about the languages L1 and L2? Explain your answer.
3.[3 marks] Provide regular expressions for the following sets given the alphabet ={a, b, c}:
(a){w | every odd position of w is c}
(b){w | w does not contain the substring bc}
(c){w | w contains at least two bs, at most one c, and no as}

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 Programming Questions!