238 views
0 votes
0 votes

How many Minimum number of Backtracks Required :- 

Soln. 

According to me it Max = 3 and Min = 0, because left factoring is there, and say compiler was lucky and chooses the production which finally leads to desired string in one go i.e. S -> aAb -> aab.  So 0 backtracks there isn't it ?

Please Verify if something is wrong?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
3
Sanket_ asked Nov 17, 2016
3,255 views
S->AaAb|BbA->εB->εhow can this grammar be left factored grammar?
0 votes
0 votes
0 answers
4
meghna asked Sep 19, 2018
193 views
Does removal of left factoring from any given CFG, removes all non determinism from it?