edited by
425 views
0 votes
0 votes
For $S \rightarrow 0S1 | \epsilon$ for $\sum=\{0,1\}^*$, which of the following is wrong for the language produced?

(a) Non regular language

(b) $0^n1^n | n\geq0$

(c) $0^n1^n | n\geq1$

(d) None of the mentioned
edited by

1 Answer

0 votes
0 votes

Answer: C

Options A and B are correct.

 

Explanation:

A: For the given language that generates epsilon or an equal number of zeros followed by an equal number of ones, we cannot design finite automata as the count of the variables cannot be accounted for. So, PDA would do the job. Therefore, the language is non-regular.

B: At n=0 generates epsilon and at n=1,2..so on generates an equal number of zeros followed by an equal number of ones. Therefore satisfy the given language.

C: Here the epsilon cannot be generated.

 
 
 

Related questions

3 votes
3 votes
2 answers
1
0 votes
0 votes
0 answers
2
someshawasthi asked Jan 17, 2023
358 views
is it a regular language? why?
0 votes
0 votes
0 answers
3
vishnu777 asked Nov 24, 2022
221 views
Can anyone explain what is the meaning of saying set of some languages is another language.Ex: L1,L2,L3.....Ln are some languages then i define L={L1,L2,L3.....Ln} which ...
0 votes
0 votes
2 answers
4
anupamsworld asked Aug 29, 2022
617 views
Which of the following is/are Regular?A] $\left \{ XWYW^{R} \space\ | \space\ W,X,Y \in \left \{ a,b \right \}^{+} \right \}$B] $\left \{ WXW^{R}Y \space\ | \space\ W,X,Y...