To determine the entries in the LL(1) parsing table, we compute the FIRST and FOLLOW sets for each non-terminal.
### 1. First Sets
FIRST(A)={c,ϵ}
FIRST(B)={d,ϵ}
For production S→AaAb:
FIRST(AaAb)=(FIRST(A)∖{ϵ})∪FIRST(aAb)={c}∪{a}={a,c} Therefore, S→AaAb is entered in M[S,a] and M[S,c].
Cell (1) is M[S,c], so (1) = S→AaAb.
For production S→BbBa:
FIRST(BbBa)=(FIRST(B)∖{ϵ})∪FIRST(bBa)={d}∪{b}={b,d} Therefore, S→BbBa is entered in M[S,b] and M[S,d].
Cell (2) is M[S,d], so (2) = S→BbBa.
### 2. Follow Sets for ϵ-productions
For production A→ϵ, the entry is placed in M[A,t] for every t∈FOLLOW(A).
From S→AaAb, A appears before a and also before b. Thus, {a,b}⊆FOLLOW(A).
Therefore, A→ϵ is placed in M[A,a] and M[A,b].
Cell (3) is M[A,b], so (3) = A→ϵ.
For production B→ϵ, the entry is placed in M[B,t] for every t∈FOLLOW(B).
From S→BbBa, B appears before b and also before a. Thus, {a,b}⊆FOLLOW(B).
Therefore, B→ϵ is placed in M[B,b] and M[B,a].
Cell (4) is M[B,a], so (4) = B→ϵ.
Thus, the correct combination is given by (A).