Question: Exercise 1 ( Ex . 1 , Chapter 4 of [ Martin; 2 0 1 1 ] ) . In below, say what language (

Exercise 1(Ex.1, Chapter 4 of [Martin; 2011]). In below, say what language (a subset of {a, b}*) is generated by the context-free grammar with the indicated productions.Exercise 3(Ex.28, Chapter 4 of [Martin; 2011]). Draw an NFA accepting the language
generated by the grammar with productions and prove it is minimal
SabA|bB|aba
Ab|aB|bA
BaB|aA
Exercise 4(Ex.38, Chapter 4 of [Martin; 2011]).
In each case below, show that the grammar is ambiguous, and find an equivalent unambiguous
grammar.
b.
SABA
AaA|
BbB|
c.SaSb|aaSb|
Exercise 5(Ex.50, Chapter 4 of [Martin; 2011]).
Given the context-free grammar G, find a CFG G' with no -productions and no unit productions
that generates the language L(G)-{1}.
a.G has productions
SABA
AaA|A
BbB|A|
S ->T T
T -> aT | T a | b
Exercise 2(Ex.10, Chapter 4 of [Martin; 2011]).
Find context-free grammars generating the languages below.
{aibj | j 2i}
Exercise 3(Ex.28, Chapter 4 of [Martin; 2011]). Draw an NFA accepting the language generated by the grammar with productions and prove it is minimal
S -> abA | bB | aba
A -> b | aB | bA
B -> aB | aA
Exercise 4(Ex.38, Chapter 4 of [Martin; 2011]).
In each case below, show that the grammar is ambiguous, and find an equivalent unambiguous grammar.
b. S -> ABA
A -> aA |\Lambda
B->bB |\Lambda
c. S -> aSb | aaSb |\Lambda
Exercise 5(Ex.50, Chapter 4 of [Martin; 2011]).
Given the context-free grammar G, find a CFG G with no \Lambda -productions and no unit productions that generates the language L(G){\Lambda }.
a. G has productions
S -> ABA
A -> aA |\Lambda
B-> bB |\Lambda
 Exercise 1(Ex.1, Chapter 4 of [Martin; 2011]). In below, say what

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!