(1) Design a CFG for the language consisting of strings in the format of ai+2bi,i0. For example,
strings aa and aaab are in the language but a,ab,ba, and aaabb are not. (2) Draw the parse tree for
the string aaaabb as derived from the CFG of (1)..
(1) Design a CFG for the language consisting of strings in the format.pdf
1. (1) Design a CFG for the language consisting of strings in the format of ai+2bi,i0. For example,
strings aa and aaab are in the language but a,ab,ba, and aaabb are not. (2) Draw the parse tree for
the string aaaabb as derived from the CFG of (1).