Question: Let G be the grammar ( W , Sigma , R , S ) , where W = S , A , N ,

Let G be the grammar (W,\Sigma ,R,S), where W=S,A,N,V,P\cup \Sigma ,....(20 points) Let G be the grammar (W,\Sigma , R, S), where [ W={S, A, N, V, P}\cup \Sigma ,\cup E={ elephant, big, mouse, small, chased },; R={P->N,; P->AP,; S->PVP,; A-> small,; A-> big,; N-> elephant,; N-> mouse ,; V-> chased }.] Draw a parse tree for the following example string: "big mouse chased small elephant". Is this grammar ambiguous? Explain your reasoning.

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!