Exercise ‹18›:

Unambiguous CFG for {w∈{a,b}∗∣w=wR∧∣w∣a>0∧∣w∣b>0}\{ w \in \{a,b\}^* \mid w=w^R \wedge |w|_a>0 \wedge |w|_b>0 \}
Write an unambiguous 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 log in, register, or become a guest.