Write both a PDA and a CFG for the language (page 80):
C={(win{0,1}^(**)|w):} has an equal number of 0s and {:1s}.
Please include a brief explanation of why they work. (If you convert a PDA
to a CFG or vice versa, that suffices as an explanation.)
Write both a PDA and a CFG for the language (page 80):
C={w E{0,1}*|w has an equal number of Os and 1s}
Please include a brief explanation of why they work. (If you convert a PDA to a CFG or vice versa, that suffices as an explanation.)