• retagged by
3,649 views

2 Answers

Best answer
5 5 votes
A. S→0∣0S∣1SS (false since 10001 can't generate)

B. S→0S∣1S∣0SS∣1SS∣0∣1 (false since generates 1)

C. S→0∣0S∣1SS∣S1S∣SS1 (true)

D. S→0S∣1S∣0∣1 (false since 1^+ generated)
• selected by
Answer:
Position:
Show:

Related questions

7 7 votes
4 answers 4 answers
5.6k
5.6k views
go_editor asked Aug 2, 2016
5,592 views
Given the following grammars:$G_1$$S \rightarrow AB \mid aaB$ $A \rightarrow aA \mid \epsilon$ $B \rightarrow bB \mid \epsilon$$G_2$:$S \rightarrow A \mid B$ $A \rightarr...
3 3 votes
2 2 answers
2.5k
2.5k views
go_editor asked Aug 2, 2016
2,549 views
Given the following two statements:$S_1$: If $L_1$ and $L_2$ are recursively enumerable languages over $\Sigma^*$, then $L_1 \cup L_2$ and $L_1 \cap L_2$ are also recursi...
3 3 votes
2 answers 2 answers
3.2k
3.2k views
go_editor asked Jul 31, 2016
3,247 views
The transition function for the language $L=\{w \mid n_a (w) \text{ and } n_b(w) \text{ are both odd} \}$ is given by:$\delta (q_0, a)=q_1$;$\delta (q_0, b)=q_2$$\delta (...
3 3 votes
2 2 answers
7.5k
7.5k views
go_editor asked Jul 31, 2016
7,536 views
The regular expression corresponding to the language L where $L=\{ x \in \{0,1\}^* \mid x \text{ ends with 1 and does not contain substring 00} $ is(1+01)* (10+01)(1+01)*...