How many strings of length exactly four are in the language XYX?
a. None
b. Sixteen
c. Four
d. Three
My approach:
Since its XYX, and we need exactly 4, X cannot be the length more than 2 because there are two X's and Y has a minimum of length 1. So I am coming to the conclusion that only Y can length two and X's will have length one. So this is my observation:
- X will only be the string "a"
- Y will either be "bb" or "ba". It cannot be more than length 2.
So abba, and abaa are only two strings possible according to me. But I dont have an option for that
What do you guys think?
This post has been edited by deprosun: 17 September 2013 - 07:34 AM

New Topic/Question
Reply


MultiQuote


|