Exercise ‹34›:

Unambiguous CFG for {xcy∣x,y∈{a,b}∗∧∣x∣aba=∣y∣bab}\{ xcy \mid x,y\in\{a,b\}^* \wedge |x|_{aba}=|y|_{bab} \}
Write an unambiguous CFG generating the words of the form xcyxcy, where x,yx,y are words over {a,b}\{a,b\} such that the number of occurrences of abaaba in xx is equal to the number of occurrences of babbab in yy.
Authors: Guillem Godoy / Documentation:
To be able to submit you need to log in, register, or become a guest.