Exercise 32:

Non-ambiguous CFG for {xcyx,y{a,b}xa=yb}\{ xcy \mid x,y\in\{a,b\}^* \wedge |x|_a=|y|_b \}
Write a non-ambiguous 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 aa in xx is equal to the number of occurrences of bb in yy.
Authors: Guillem Godoy / Documentation:
To be able to submit you need to either log in, register, or become a guest.