GATE | GATE CS 1996 | Question 34
Define for a context free language L ⊆ {0, 1}* , init(L)={u ∣ uv ∈ L for some v in {0,1}∗} ( in other words, init(L) is the set of prefixes of L)
Let L = {w ∣ w is nonempty and has an equal number of 0’s and 1’s}
Then init(L) is
(A) the set of all binary strings with unequal number of 0’s and 1’s
(B) the set of all binary strings including null string
(C) the set of all binary strings with exactly one more 0 than the number of 1’s or one more 1 than the number of 0’s
(D) None of the above
Answer: (C)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- GATE | GATE CS 1996 | Question 47
- GATE | GATE CS 1996 | Question 54
- GATE | GATE CS 1996 | Question 46
- GATE | GATE CS 1996 | Question 50
- GATE | GATE CS 1996 | Question 49
- GATE | GATE CS 1996 | Question 39
- GATE | GATE CS 1996 | Question 38
- GATE | GATE CS 1996 | Question 45
- GATE | GATE CS 1996 | Question 37
- GATE | GATE CS 1996 | Question 43
- GATE | GATE CS 1996 | Question 42
- GATE | GATE CS 1996 | Question 41
- GATE | GATE CS 1996 | Question 36
- GATE | GATE CS 1996 | Question 65
- GATE | GATE CS 1996 | Question 66



