Question: Consider the very simple CFG with the rules below. This grammar accepts sentences such as the man walked the dog in the park and Walk
Consider the very simple CFG with the rules below. This grammar accepts sentences such as the man walked the dog in the park and Walk the dog in the park
S VP NP VP NP VP PP
VP Verb NP
PP Prep NP
NP the Nom
Nom Noun PP Noun
Noun man dog
Verb walked walk
Prep in to
Which grammar is a valid CNF form of the original CFG grammar?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
