Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prove that for any strings x and y , ( xy )R = y R x R. Hint: Use induction on | x |. For

Prove that for any strings x and y, (xy)R = yRxR. Hint: Use induction on |x|. For any string x, define xR to be that same string reversed. The intuition is plain enough, but to support proofs well need a formal definition:

R = (ax)R = xRa, for any symbol a and string x

Well use the same notation to denote the set formed by reversing every string in a language:

AR = {xR | x A}

Using these definitions, prove the following properties of reversal:

(a) Prove that for any strings x and y, (xy)R = yRxR. Hint: Use induction on |x|. When doing induction you'll want to use x = az, rather than x = za (where z is a string, and "a" is a single character)

(b) Prove that for any languages A and B, (AB)R = BRAR. Youll need the result from Part a. Hint: DO NOT USE INDUCTION! Just do a regular old proof, using the definition of set concatenation: AB = {xy|x A y B}

(c) Prove that the regular languages are closed for reversal. Hint: Using structural induction, show that for every regular expression r, there is a regular expression r' with L(r' ) = (L(r))R. Remember to treat a-b as proven. Most of the work has been done at this point.

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

ISBN: 3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

Unequal status relationships lead to a stable society.

Answered: 1 week ago