Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following game: you are given a sequence of the letters A and B, and you are given the following replacement rules that

Consider the following game: you are given a sequence of the letters A and B, and you are given the following 

Consider the following game: you are given a sequence of the letters A and B, and you are given the following replacement rules that allow you to replace some combinations of letters with different combinations of letters. (1) AA can be removed or inserted anywhere in the sequence. (ii) BBB can be removed or inserted anywhere in the sequence. (iii) ABA can be replaced with B, and B can be replaced with ABA. As an example of a round of play, consider starting with the word BABB. Using (1), we can insert AA at the beginning of the sequence to get AABABB. Then using (3), we can replace ABA in the middle of the sequence with B to get ABBB. Then using (2), we can remove BBB to get just A. (a) Show that rules (i), (ii) and (iii) allow you to transform AB to B.A. (b) Show that you cannot transform A to B using rules (i), (ii), and (iii). (c) Use part (a) to show that rules (i), (ii) and (iii) allow any finite sequence of 'A's and 'B's to be transformed to one of the following A, B, AB, BB, ABB or, where is the empty word; that is, is a word with no letters. (d) Consider the situation where (iii) is replaced by (iii*) ABA can be replaced with BB, and BB can be replaced with ABA. Show that (i), (ii), and (iii*) do not allow you to transform AB to BA. (e) Show that even though AB cannot be replaced by BA, any finite sequence of 'A's and 'B's can still be transformed to one of the following A, B, AB, BB, ABB or, with rules (i), (ii) and (iii*).

Step by Step Solution

3.44 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

Lets go through each part of the question separately a Show that rules i ii and iii allow you to transform AB to B4 Using the given rules we can perform the following transformations 1 Start with AB 2 ... 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

Making Hard Decisions with decision tools

Authors: Robert Clemen, Terence Reilly

3rd edition

538797576, 978-0538797573

More Books

Students also viewed these Mathematics questions

Question

Graph each system of inequalities. y - x = 4 -5 y 5

Answered: 1 week ago

Question

True / False: Doors in a 7 3 7 open with power assist when ARMED

Answered: 1 week ago