I was at a job interview, and this is the question they asked me,
Are these two below ambigous? If they are, provide a string. If they are not, prove why they are not.
I couldn't solve it, and would like to know the answer and the reason for the future.
Question 1
S-->XaaaX
X-->aX | bX | e(epsilon)
Question 2
S-->aaS | aaaS | a
Again, this is not HW.
Thank you. An explanation would help.