Consider the language {anbmcp | n <= p OR m <= p}
, create a CFG for this language.
I have started this with S -> aA | aB
, but am unsure how I should go about defining A or B. The "OR" seems quite difficult to incorporate into the language's definition as it doesn't seem necessary to track both n and m and compare them against p, yet I don't know which one I want to track
Asked
Active
Viewed 553 times
0