Brain Boggling
Author |
Message |
sockoo
![](http://www.competitiveness.org/ezimagecatalogue/catalogue/variations/149-100x100.jpg)
|
Posted: Tue May 17, 2005 11:59 am Post subject: Brain Boggling |
|
|
This boggles my mind .. i wanna see if anyone else is able to figure this out ...
Given the following rules, determine if the string MU is derivable from the string MI.
Rule 1: If you generate a string whose last letter is I, you may add on a U to the end
Rule 2: If you have Mx. Then you may generate Mxx such that from MIU you would get MIUIU or from MIIIU get MIIIUIIIU.
Rule 3: If III occurs you may replace it with a U
Rule 4: If UU occurs inside a string you may drop it.
*must display the process by which a solution was found. * |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: Tue May 17, 2005 2:12 pm Post subject: (No subject) |
|
|
Yes, it is possible, just did it. The trick is to get an odd number of I's after the M (but not just 1!). I'm not sure if this is supposed to be a comp sci question, but it probably can be done w/ OOT anyhow. |
|
|
|
|
![](images/spacer.gif) |
|
|