Exercise 18:

Non-ambiguous CFG for {w{a,b}w=wRwa>0wb>0}\{ w \in \{a,b\}^* \mid w=w^R \wedge |w|_a>0 \wedge |w|_b>0 \}
Write a non-ambiguous CFG generating the palindromic words over {a,b}\{a,b\} with some occurrence of aa and some occurrence of bb.
Authors: Guillem Godoy / Documentation:
To be able to submit you need to either log in, register, or become a guest.