create a grammer for {a^nb^m, n>0, m=2^n+1}
itS unrestricted grammer. I tried to but couldnt understand. if you know the answer please breif it. coz i m new in this subject
create a grammer for {a^nb^m, n>0, m=2^n+1}
itS unrestricted grammer. I tried to but couldnt understand. if you know the answer please breif it. coz i m new in this subject
Hint 1. try build some automaton (Turing machine, etc.) that accept strings of given pattern, then encode both states and transitions in the grammar.
Hint 2. try some scanning process to generate $\{b^m|m=2^n+1\}$, then generate $\{a^n\}$ USING THE SAME TECHNIQUE, and try to merge them.
Some examples: