[8 marks] [2] a) Write down the Context-free Grammar for the following language: {an cm bn | m, n ≥ 1} b) For the Gramma

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

[8 marks] [2] a) Write down the Context-free Grammar for the following language: {an cm bn | m, n ≥ 1} b) For the Gramma

Post by answerhappygod »

8 Marks 2 A Write Down The Context Free Grammar For The Following Language An Cm Bn M N 1 B For The Gramma 1
8 Marks 2 A Write Down The Context Free Grammar For The Following Language An Cm Bn M N 1 B For The Gramma 1 (63.44 KiB) Viewed 40 times
[8 marks] [2] a) Write down the Context-free Grammar for the following language: {an cm bn | m, n ≥ 1} b) For the Grammar given below, show that the Grammar is ambiguous for the string aabbbc by using leftmost derivations. [4] S → AB | CD A →→ aA | E BbBc | E | CD CaCb | E | aA D → CD | E E → bE | b c) For the Grammar given in part (b), draw a parse tree for the string abbbcc. [2] Question 2:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply