support@unifiedpapers.com

i-need-help-with-few-questions-about-cfg

hello everyone

I have few practice questions for CFG (context free grammar) and TG (transition graph) I need help with.


1. Draw the total language tree for the following CFG until we can be sure that we have found all words in these language with one, two, three or four letters.

S à aSb | bX

X à bX | b

……………………………………………………………..

2. Find the CFG after removing the Λ-productions.

  • S à aX | bX
  • X à a | b | Λ

……………………………………………………………..

3. Convert the following CFG into CNF.

  • S à aXX
  • X à aS | bS | a

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp