1. Let A-(x#y: x, y E {0, 1)’, |xl-ly| and x y). Construct a CFG for A. 2. Construct a PDA for A. Do not use the conversion CFG2PDA. Explain a strategy to use nondeterminism and the stack to recognise A, then draw the diagram of the PDA 3. Let B = {0’11; i关 and 2iメj). Construct a CFG for B. Hint: write B as the union of 3
OR
OR