From: Introduction to Languages and the Theory of Computationproblem 6.5 states:
ID: 3616867 • Letter: F
Question
From: Introduction to Languages and the Theory of Computationproblem 6.5 states:In each case the productions in a CFG are given: Provethat neither one generates the language L = (x over {0,1}* | N0(x)= N1(x)} (Which means that the number of 0s and 1s in thelanguage are the same, if I'm not mistaken)
a) S -> S01S | S10S | lamda b) S -> 0S1 | 1S0 | 01S | 10S | S01 | S10 | lamda
I can't convince myself that these two CFGs don't produce thesame number of 0's and 1's! I'm sure I am mistaken but Ihaven't got a clue.
In each case the productions in a CFG are given: Provethat neither one generates the language L = (x over {0,1}* | N0(x)= N1(x)} (Which means that the number of 0s and 1s in thelanguage are the same, if I'm not mistaken)
a) S -> S01S | S10S | lamda b) S -> 0S1 | 1S0 | 01S | 10S | S01 | S10 | lamda
I can't convince myself that these two CFGs don't produce thesame number of 0's and 1's! I'm sure I am mistaken but Ihaven't got a clue.