Question: Please i need help with this question 1. (10 pt) (Grammar and strings) Given a string 010#0101 and the context free grammar G: S AB

Please i need help with this question
1. (10 pt) (Grammar and strings) Given a string 010#0101 and the context free grammar G: S AB A 0A01A1 #B BOB1B (a) (2 pt) What are the terminals and non-terminals of the grammar? (b) (2 pt) Give a leftmost derivation for the string. (C) (2 pt) Give a rightmost derivation for the string. (d) (2 pt) Give a parse tree for the string . (e) (2 pt) Write 2 strings that do not belong to the language L(G) but use only the terminals from LG)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
