Question: PROBLEMS: Let Sigma = { a , b , c } for all problems. 1 . ( 5 pts ) Let language L 1
PROBLEMS:
Let Sigma a b c for all problems.
pts Let language L be the language where all strings contain the substring bab The strings
should NOT contain the symbol c Create a BNF grammar for L Example: bab, abab, babb.
pts Using your grammar, provide a derivation for the string u ababbab.
pts Is your grammar regular? Explain why or why not.
pts Is L regular? Explain why or why not.
pts Let language L be the language where the strings must contain an a after or before a c
Strings may have no cs at all. Examples of strings not in L: abc, bcbaaba, cbbababb, empty string.
Examples of strings in L: abaabbabbacaacaca,caa,bac,bca. Create a BNF grammar for L
pts Using your grammar, provide a derivation for the string u baccabb.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
