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
Which among the following is the correct grammar for the given language?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which among the following is the correct grammar for the given language?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!