Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For questions 1, 2, and 3 use the following 10 grammars. Uppercase (lowercase) letters stand for nonterminals (terminals) and S is the start symbol in

image text in transcribedimage text in transcribed

For questions 1, 2, and 3 use the following 10 grammars. Uppercase (lowercase) letters stand for nonterminals (terminals) and S is the start symbol in each grammar. G1 : S + a Sb | ab G2: S bDc | Db | b D bbDc | b | G3 : G4: S + Sc abs absc abb Acc b S + Sc EC E + ab | aEb G5 : G6 : S + ap | 6V U + 6S b V + as a S + CES | S | b CE + cdscd G7: G8: S + AB AB BA B b S + bS as abbs abbb | abba AA a A ab A a a G9 : S + b | c | bbs | G10: S + bbScH H + + cHdd cd 3. Answer the following. (a) Show that G9 has at least one sentence in L(G9) that has two distinct rightmost derivations. (b) Does this prove that G9 is an ambiguous grammar? (c) How can one demonstrate that the language L = L(G9) is not inherently ambiguous

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago