[8 marks] Considering the following Context-free Grammar: S→ ASB | AB AaAS | aA | a B⇒ SbS | bS | Sb | b | aAS | aA | a

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] Considering the following Context-free Grammar: S→ ASB | AB AaAS | aA | a B⇒ SbS | bS | Sb | b | aAS | aA | a

Post by answerhappygod »

8 Marks Considering The Following Context Free Grammar S Asb Ab Aaas Aa A B Sbs Bs Sb B Aas Aa A 1
8 Marks Considering The Following Context Free Grammar S Asb Ab Aaas Aa A B Sbs Bs Sb B Aas Aa A 1 (142.24 KiB) Viewed 29 times
[8 marks] Considering the following Context-free Grammar: S→ ASB | AB AaAS | aA | a B⇒ SbS | bS | Sb | b | aAS | aA | a | bb where A, B, S are variables and a, b are terminals a) List down all generating symbols and if needed, eliminate all non-generating (useless) symbols. Then list down all reachable symbols and if needed, eliminate all non-reachable (useless) symbols. [3] b) Apply the two conversion steps on the resulting Grammar of part (a) to bring it into Chomsky Normal Form. [5] Question 3: ype here to search
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply