S → aS | aSbS | (empty) where the alphabet is {a,b}
in other words, the set of strings where any prefix has at least as many 'a's as 'b's.
S → aS | aSbS | (empty) where the alphabet is {a,b}
in other words, the set of strings where any prefix has at least as many 'a's as 'b's.