Theory :: 1. write a CFG for language L={ a i b j c k | k=i+j and i,j,k>0 } 2. write a CFG for language L = { w | w=w R } 3. write a CFG for language L = { w | number of (a) in w equals number of (b)...


Theory ::


1. write a CFG for language L={  aibjck | k=i+j and i,j,k>0 }


2. write a CFG for language L = { w | w=wR }


3. write a CFG for language L = { w | number of (a) in w equals number of (b) in w }


4. show the derivation tree for string (a+a)*a in the following grammar


          G = ({E,T,F}, {a, +, *, (, )}, R, E}. The set of rules R is:
          E -> E + T | T
          T -> T * F | F
          F -> (E) | a



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here