Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1 (a) For each of the following grammars, precisely describe the langua

ID: 3925781 • Letter: Q

Question

Question 1

(a) For each of the following grammars, precisely describe the language generated by the grammar. The set of terminals T is {a, b} unless another set is specified.

1.

S A | B

A aaaA |

B Bbb | b

2.

S RbR

R aRb | bRa | RR | bR |

3.

             S aSbSaS | aSaSbS | bSaSaS |

4.

Set of terminals here is T = {a, b, c}                                                             

S a S b | C

C cc C |

(b) Using the grammar in Part 2 above, give a derivation for the string abbabb. Give your derivation in three different forms: a derivation tree, a left-most derivation and a right-most derivation

Explanation / Answer

3)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote