meaning of
B={x:{a,b}*|na(x)=nb(x)}
in automata while creating a production for context free grammar?
meaning of
B={x:{a,b}*|na(x)=nb(x)}
in automata while creating a production for context free grammar?
It means B is a m/c which can accept the input in which number of a
terminals is equal to number of b
terminals. For example. aaabbb
, ababba
, etc..
Grammar would be like this:
S --> aSbS | bSaS
S --> ε