InterviewSolution
Saved Bookmarks
| 1. |
The parse tree below represents a rightmost derivation according to the grammar S → AB, A → aS|a, B → bA. Which of the following are right-sentential forms corresponding to this derivation?(a) aAbAba(b) aababa(c) aABba(d) aSbaThe question was posed to me in class test.This intriguing question originated from The NFA with n-moves to the DFA in division Finite Automata and Regular Expression of Compiler |
|
Answer» CORRECT option is (B) aababa Best explanation: S => AB => AbA => Aba => ASBA => aABba => aAbAba => aAbaba => aababa. |
|