I'm just curious about something when doing left recursion, i've done this question and when i've done left recursion i've added F to everything in S. Do we always do this for left recursion (My teacher hasn't explained it very well).
1)
S -> aSb | bSb | Sc | bc
left recursion:
S -> aSbF | bsbF | bcF
F -> cF | ε
Factorising:
S -> aSbF | bX
X -> aSbFbF | bXbF | cF
F -> cF | ε