Question: Discrete Structures Consider the grammar with start symbol sentence, set of terminals T = ( the , sleepy, happy, tortoise, hare, passes, runs, quickly, slowly,

Discrete Structures Consider the grammar with start symbol sentence, set of terminals T =(the, sleepy, happy, tortoise, hare, passes, runs, quickly, slowly, set of nonterminals N ={noun phrase, transitive verb phrase, Intransitive verb phrase, article, adjective, noun, verb, adverb), and productions: sentence - noun phrase transitive verb phrase noun phrase sentence - noun phrase Intransitlve verb phrase noun phrase - article adjective noun noun phrase article noun transitive verb phrase-transitive verb Intransitive verb phrase Intransitive verb adverb Veransitive verb phrase Intransitive verb article the adjective -> sleepy adjective happy noun tortoise noun hare transitive verb passes Intransitive verbruns adverb quickly adverb slowly Identify five valid sentences that can be formed using the given productions. (Check all that apply.) Check All That Apply the sleepy hare runs quickly the happy hare quickly runs the hare passes the tortoise U the happy hare runs slowly U n the happy tortoise quickly passes the sleepy hare the happy tortoise passes the hare the hare passes the happy hare

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 Programming Questions!