Recent questions tagged regular-language

0 0 votes
1 1 answer
51
51 views
Let \(I \subseteq \Sigma^*\) be any nonregular language.For every string \(w \notin I\), define $R_w = \Sigma^* - \{w\}.$Now consider $K = \bigcap_{w \notin I} R_w.$What ...
0 0 votes
1 1 answer
48
48 views
For every $n\geq 0$, define $L_n=\{a^nb^n\}$.Which statement is correct?Every $L_n$ is nonregular, but $\bigcup_{n=0}^{\infty}L_n$ is regular. Every $L_n$ is regular, and...
0 0 votes
1 1 answer
42
42 views
Let $\Sigma=\{0,1\}.$Which of the following are valid examples?$A=\{01\}, \qquad B=\{0^n1^n\mid n\ge0\}$where $A$ is regular, $B$ is nonregular, and $A\subseteq B$. $C=\{...
1 1 vote
1 1 answer
56
56 views
Suppose $L_1$ and $L_2$ are both nonregular languages.Which statement about $L_1\cup L_2$ is correct?It must be nonregular. It must be regular. It may be regular or nonre...
1 1 vote
1 1 answer
42
42 views
Let $L$ be a nonregular language.What can always be concluded about $L^R$?$L^R$ is regular. $L^R$ is nonregular. $L^R$ may be regular or nonregular. Nothing can be conclu...
1 1 vote
1 1 answer
52
52 views
Let $L$ be a context-free language and $R$ be a regular language.Consider the problem$$L-R=\varnothing?$$Which statement is correct?It is decidable because $L-R$ is conte...
2 2 votes
1 1 answer
81
81 views
For languages $X,Y\subseteq\Sigma^*$, define$$X/Y = \{w:\exists y\in Y,\ wy\in X\}$$ Suppose $X$ is regular, but nothing is assumed about $Y$.Which statement is always tr...
0 0 votes
1 1 answer
62
62 views
Let $X$ and $Y$ be regular languages. Their symmetric difference is$$X\triangle Y=\{w:w\text{ belongs to exactly one of }X,Y\}$$. Which expression correctly represents $X...
2 2 votes
1 1 answer
65
65 views
Let $M$ and $N$ be two DFAs. Define$$Z=\{u_1v_1u_2v_2\cdots u_kv_k : k\ge0, ~u_i\in L(M), ~v_i\in L(N)\}.$$Which regular-language expression describes $Z$?$L(M)^*L(N)^*$ ...
1 1 vote
1 1 answer
57
57 views
Let $L$ be an arbitrary regular language over $\Sigma$, and define$$K=\{w\in\Sigma^*:w^Rw\in L\}$$.Which statement is correct?$K$ is always regular. $K$ is regular only i...
0 0 votes
1 1 answer
53
53 views
For an arbitrary language $L$, which of the following statements is correct?If $L^*$ is regular, then $L$ must be regular. If $L$ is nonregular, then $L^*$ must be nonreg...
2 2 votes
1 1 answer
98
98 views
Let $L_1$ and $L_2$ be regular languages and let $L_3$ be non-regular. Which statements are always true?$L_1=L_2$ iff $L_1\cap\overline{L_2}=\emptyset$ $L_1\cup L_3$ is n...
2 2 votes
1 1 answer
79
79 views
Which statements are true?Every language recognized by an $n$-state DFA can be recognized by an NFA with $n$ states. Every language recognized by an $n$-state NFA can be ...
1 1 vote
1 1 answer
68
68 views
Let $L_1$ be regular where specified. Which of the following languages are guaranteed to be regular?$\{ww\mid w\in{0,1}^*\}$ $\{ww\mid w\in L_1\}$ $\{w\mid ww\in L_1\}$ $...
1 1 vote
1 1 answer
80
80 views
All languages are over $\{0,1\}$. Which statements are true?If $L_1\subseteq L_2$ and $L_2$ is regular, then $L_1$ must be regular. If $L_1$ and $L_2$ are both non-regula...
1 1 vote
1 1 answer
98
98 views
Which classification is correct?$\{w\in \{0,1\}^* \mid \#0(w)=\#1(w)\}$ is regular.  $\{w\in \{0,1\}^* \mid \#0(w)=\#1(w)\}$ is not regular.  $\{w\in \{0,1\}^* \mid \#01(...
1 1 vote
1 1 answer
65
65 views
For $L=\{a^n b^n\mid n\ge0\}$, which choice correctly proves non-regularity using Myhill-Nerode?Use $S=\{a^i\mid i\ge0\}$ and distinguish $a^i$ from $a^j$ using suffix $b...
1 1 vote
1 1 answer
71
71 views
Let $L=\{w\in{0,1}^*\mid w$ contains equal numbers of substrings $01$ and $10\}$. Which statements are correct?$L$ is regular. A correct regular expression for $L$ is $\e...
1 1 vote
1 1 answer
59
59 views
Let $L_n=\{0^n1^n\}$ for each $n\ge0$. Which statements are correct?Each $L_n$ is regular. Any finite union of such languages is regular. $\bigcup_{n\ge0}L_n=\{0^n1^n\mid...
1 1 vote
1 1 answer
89
89 views
Let $L_1$ be a DCFL and $R$ be a regular language over the same alphabet. Which languages are guaranteed to be DCFL?$L_1\cap R$ $L_1\cup R$ $L_1-R$ $L_1^R$ $L_1\cap L_2$,...
0 0 votes
0 0 answers
41
41 views
How to approach these type of identification of regular or irregular language question of TOC {w|w€(0,1)*, no. of (000)= no. of (001) }{w|w€(0,1)*, no. of (100)= no. of (...
1 1 vote
1 1 answer
108
108 views
Which of the following statements are always true?Every language generated by a regular grammar is regular. Every regular language can be generated by a regular grammar. ...
0 0 votes
1 answers 1 answer
92
92 views
How to get the answer of "The complement of a non regular is regular or non regular " ??
0 0 votes
0 0 answers
155
155 views
The intersection of a context free language and a regular languagea)need not be regularb)need not be context freec) is always regulard) is always context free  
5 5 votes
1 1 answer
213
213 views
Which of the following languages are regular?$L_1 = \{x \mid x$ has two $0$s separated by the number of positions that is a multiple of $4\}$ $L_2 = \{x \mid x$ is binary...
4 4 votes
2 2 answers
258
258 views
Which of the following languages is non-regular? $(w^R$ is the reverse of string $w)$$L_1 = \{ww^R \mid w \in \{0,1\}^*\}$  $L_2 = \{ww^Rx \mid w,x \in \{0,1\}^*\}$  $L_3...
4 4 votes
1 1 answer
209
209 views
Which of the following languages is non-regular? $L_1 = \{x \mid x \in \{a,b\}^*$ and $x$ has even number of $b\}$  $L_2 = \{x \mid x \in \{a,b,c\}^*$ and $x$ has no $c$ ...
1 1 vote
1 1 answer
126
126 views
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: If $L$ is regular, then its compliment $L^{\prime}$ is ne...
2 2 votes
1 1 answer
117
117 views
Arrange the following in the order of execution while proving a Language is non-Regular using Pumping Lemma.Split in to $x y z$ satisfying pumping Lemma conditions.Assume...
2 2 votes
1 1 answer
120
120 views
If $r_{1}$ and $r_{2}$ are regular expressions, then which of the following are correct.$\mathrm{L}\left(\mathrm{r}_{1}+\mathrm{r}_{2}\right)=\mathrm{L}\left(\mathrm{r}_{...