Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
could you please help me for finding an unambiguous CFG for the following expression:
$a^ib^j$ where $i \le j \le 2i$
$S \rightarrow$ $aSb$ | $J$
$J \rightarrow aJbb$ | $ε$
This has only one derivation tree for a word in that language.
Required, but never shown