Question Let I={a,b,c,d), and consider the following CFG G, with non-terminals S, A,B,C,D, with starting non-terminals,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Question Let I={a,b,c,d), and consider the following CFG G, with non-terminals S, A,B,C,D, with starting non-terminals,

Post by answerhappygod »

Question Let I A B C D And Consider The Following Cfg G With Non Terminals S A B C D With Starting Non Terminals 1
Question Let I A B C D And Consider The Following Cfg G With Non Terminals S A B C D With Starting Non Terminals 1 (24.67 KiB) Viewed 68 times
please answer both the parts of the above question, because
these are related to each other, i can't post them separately, its
a short question . please solve as soon as possible. i need them as
soon as possible...
Question Let I={a,b,c,d), and consider the following CFG G, with non-terminals S, A,B,C,D, with starting non-terminals, and with production rules S+AB C, A + Ab ab, Bcd cd, C+aCd and, DbDe be. In order to show that the grammar G is ambiguous one needs to provide an ambiguous string, namely a string in the language generated by the grammar (L(G)), that has two different parse trees. (a) Write down an ambiguous string in L(G). (b) Write down two different parse trees for the string. [2 marks] [4 marks]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply