To operate the Blended Learning Center(BLC) at optimal level, maintenance will be performed every day at 8:30 AM and at 5:00 PM regularly which can take up to 30 minutes. Please consider scheduling your activity in the BLC platform accordingly.
Assignment 1
Write down the answer in any page and then capture the pages and combine it into pdf file and then submit it.
Question: Give a context-free grammar (CFG) for each of the following languages over the alphabet Σ = {a, b}:
(a) All strings in the language L : {a
n
b
ma
2n
|n, m ≥ 0}
(b) All nonempty strings that start and end with the same symbol.
(c) All strings with more a’s than b’s.
(d) All palindromes (a palindrome is a string that reads the same forwards and backwards).