Computer Sciences > Gate 2017 Set-1 > CFG
Consider the following context-free grammar over the alphabet ∑ = {a, b, c} with S as the start symbol:
Which of the following represents the language generated by the above grammar?
S → abScT | abcT
T → bT | b
T → bT | b
Which of the following represents the language generated by the above grammar?
Explanation
Correct : b
Similar Questions
What is the worst-case time complexity of insertion in an AVL tree?
Which operations on a binary search tree have O(h) complexity?
Compare search complexities of sorted array vs balanced BST.