Computer Sciences > Gate 2016 Set-1 > Grammer
Which of the following languages is generated by the given grammar?

S → aS|bS| ε
A
{anbm | m,n >= 0}
B
{w∈{a,b}* | w has equal number of a's and b's}
C
{an | n>=0} U {anbn | n>=0}
D
{a,b}*

Explanation

Correct : Grammar

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science