Recent questions tagged regular-language

0 0 votes
1 1 answer
24
24 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(...
0 0 votes
1 1 answer
17
17 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...
0 0 votes
1 1 answer
17
17 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...
0 0 votes
1 1 answer
12
12 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...
0 0 votes
1 1 answer
35
35 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
23
23 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
87
87 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
77
77 views
How to get the answer of "The complement of a non regular is regular or non regular " ??
0 0 votes
0 0 answers
132
132 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  
3 3 votes
1 1 answer
198
198 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...
3 3 votes
2 2 answers
236
236 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...
3 3 votes
1 1 answer
187
187 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
118
118 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
104
104 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
114
114 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}_{...
2 2 votes
0 0 answers
217
217 views
Let L be the set of all binary strings whose last two symbols are the same. The number of states in the minimum state deterministic finite-state automaton accepting L is ...
1 1 vote
1 1 answer
397
397 views
1 1 vote
2 2 answers
549
549 views
Consider the following DFA that generates set of strings over $\Sigma=\{a, b, c\}$Now identify that which of the followings is the best description of the language for th...
0 0 votes
1 1 answer
234
234 views
Which of the following is $\text{TRUE}$ about the Pumping Lemma for regular language?It applies to all regular languageIt applies only to infinite regular languagesIt app...
0 0 votes
1 1 answer
286
286 views
A machine is represented by states $Q$, input alphabet $\sum$, transition function $\delta$. Initial state $q_{0}$ and final state $F$. The machine accepts all the string...
0 0 votes
0 0 answers
258
258 views
A machine is represented by states $Q$ , input alphabet $\sum$, transition function $\hat{\mathrm{o}}$. Initial state $\mathrm{q}_{0}$ and final state $F$. The machine ac...
0 0 votes
0 0 answers
262
262 views
A machine is represented by states $Q$, input alphabet $\sum$, transition function $\bar{\delta}$. Initial state $\mathrm{q}_{0}$ and final state $F$. The machine accepts...
0 0 votes
0 0 answers
177
177 views
A machine is represented by states $Q$, input alphabet $\sum$, transition function $\hat{\delta}$. Initial state $\mathrm{q}_{0}$ and final state $F$. The machine accepts...
0 0 votes
0 0 answers
193
193 views
A machine is represented by states $Q$, input alphabet $\sum$, transition function $\bar{\delta}$. Initial state $\mathrm{q}_{0}$ and final state $F$. The machine accepts...
0 0 votes
0 0 answers
163
163 views
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy:Context-free languagesContext-sensitive lan...
0 0 votes
0 0 answers
191
191 views
Which of the following languages can be recognized by Non-Deterministic Finite Automata (NFA) but cannot be recognized by Deterministic Finite Automata (DFA) ?$\mathrm{L}...
0 0 votes
2 2 answers
262
262 views
Which of the following is not a palindromic subsequence of the string "$\text{ababcdabba}$"?$\text{abcba}$$\text{abba}$$\text{abbbba}$$\text{adba}$
0 0 votes
2 2 answers
210
210 views
Let $\text{L}=\{a b, a a, b a a\}$. Which of the following strings are not in $\text{L}^{*}$.$\mathrm{abaabaaabaa}$$\mathrm{aaaabaaaa}$$\mathrm{baaaaabaaaab}$$\mathrm{baa...
0 0 votes
1 1 answer
242
242 views
Let $\text{A}=\{a, b\}$ and $\text{L}=\text{A}^{*}$. Let $x=\left\{a^{n} b^{n}, n>0\right\}$. The languages $\text{L} \cup \text{X}$ and $\text{X}$ are respectively :Not ...