Page 1 of 1

Which among the following is the correct grammar for the given language?

Posted: Thu Jul 14, 2022 9:24 am
by answerhappygod
L={x∈{0,1}*|number of zeroes in x¹number of one’s in x}
a) S-> 0|SS|1SS|SS1|S1S
b) S-> 1|0S|0SS|SS0|S0S
c) S-> 0|0S|1SS|SS1|S1S
d) None of the mentioned