Question: PLEASE NOTE THAT THIS HOMEWORK IS 2 PAGES AND WITH A TOTAL OF 20 POINTS. QUESTION 1: Consider the following grammar then answer the questions
PLEASE NOTE THAT THIS HOMEWORK IS 2 PAGES AND WITH A TOTAL OF 20 POINTS. QUESTION 1: Consider the following grammar then answer the questions below: [6 POINTS] G=P:({S,A,B},{a,b},S,P)abAAaAbABCaabC A. Is the above grammar linear? Why? B. Is the above grammar regular? Why? C. What is the language generated by the grammar G? You can use regular expressions. QUESTION 2: [4 POINTS ] Convert the following right linear grammar into an equivalent NFA. SabAaAaAbABBaabCbbaC1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
