In the correct grammar above, what is the length of the derivation (number of steps starting from S to generate the string a l b m with l ! m?
In the correct grammar above, what is the length of the derivation (number of steps starting from S to generate the string a l b m with l ! m? Correct Answer max (l, m) + 2
It is very clear from the previous solution that the no. of steps required depend upon the no. of a’ s & b ‘ s which ever is higher & exceeds by 2 due to S ” AC CB & C “! So max(l , m) + 2.
মোঃ আরিফুল ইসলাম
Feb 20, 2025