Question

A grammar is a 4-tuple G, G = (Ν, Σ, Π, Σ, S) where, Ν is...

A grammar is a 4-tuple G, G = (Ν, Σ, Π, Σ, S) where, Ν is a finite set of nonterminal symbols, Σ is a finite set of terminal symbols, Π is a finite set of rules,S is the starting symbol.

Let, Ν = {S, T}

Σ = {a, b, c}

Π = {

​S -> aTb

​S -> ab

​aT -> aaTb

​aT -> ac

} S is the starting symbol.

A) Prove that the given grammar G is a context sensitive grammar.

B) What is the language L = L(G) generated by the given grammar G?

C) For the string aaacbbb design the appropriate syntax tree based on the context sensitive grammar G.

D) The language L = L(G) generated by the given grammar G is also context free language. Write the context free grammar G1 that generates the language L.

E) For the string aaacbbb design the appropriate syntax tree based on the context free grammar G1.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
A grammar is a 4-tuple G, G = (Ν, Σ, Π, Σ, S) where, Ν is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT