Recent questions tagged regular-expression

1 1 vote
1 1 answer
145
145 views
Let $G$ have start symbol $q_0$ and productions :$$\begin{aligned}q_0 &\to \epsilon \mid abq_0 \mid cq_1\\q_1 &\to ab\end{aligned}$$Which regular expression denotes $L(G)...
5 5 votes
1 1 answer
346
346 views
Let $P,Q$ and $R$ be regular expressions such that the number of strings generated by $P$ is $p$, $Q$ is $q$ and $R$ is $r$. What is the number of strings generated by th...
5 5 votes
2 2 answers
352
352 views
Select the equivalent regular expression for the given $\epsilon$-NFA.$(01)^*1(01)$  $(0+1)^*1(0+1)$  $((0+1)^*+1)(0+1)$  $(01)^*+1+(01)$
4 4 votes
2 2 answers
258
258 views
0 0 votes
1 1 answer
138
138 views
Let $\mathrm{P}$ and $\mathrm{Q}$ be two regular expressions over $\sum$. If $\mathrm{P}$ does not contain $\epsilon$, then the following equation in $\mathrm{R}$ namely,...
2 2 votes
1 1 answer
115
115 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
1 1 answer
367
367 views
0 0 votes
1 answers 1 answer
337
337 views
Give the regular expression that derives all strings of a's and b's where each string contain even occurrences of substring aba) (abab)*b) (b + abab)*c) (b + aa*bb*aa*b)*...
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...
1 1 vote
1 1 answer
218
218 views
Which of the following is a property of a regular language?It cannot be represented by a finite automaton.It cannot be represented by a regular expression.It can only be ...
3 3 votes
2 2 answers
317
317 views
Can someone provide a formal proof for such questions?
0 0 votes
2 2 answers
468
468 views
(11+0)*×(00+1)* convert this regular expression into finite automata
1 1 vote
1 1 answer
215
215 views
Which of the following strings are a member of the language described by the regular expression $\left(a^* {b} {a}^* b a^* b {a}^*\right)^*$$b b b b$$bbaaabb$$bbaaabbbabb...
1 1 vote
1 1 answer
230
230 views
Below you see the transition table of a finite state automaton. The initial state is $0;$ the final state is $4.$ $\emptyset$ denotes the fail state, where no successful ...
0 0 votes
1 1 answer
290
290 views
Find regular expression for the following language L= {w: |w| mod 5 ≠ 0}
0 0 votes
0 0 answers
471
471 views
Total number of regular graphs of degree 2 on 12 vertices.(a) 6 (b) 7 (c) 8 (d) 9
0 0 votes
0 0 answers
168
168 views
Total number of regular graphs of degree 2 on 12 vertices.(a) 6 (b) 7 (c) 8 (d) 9
0 0 votes
1 1 answer
488
488 views
What is the DFA for the regular expression:- (a+b)* b (a+b)*
0 0 votes
1 1 answer
405
405 views
Is this regular expression is correct for the Language = { w| number of a's in the string = 0 mod 3} on $\Sigma=\{a,b\}$
0 0 votes
1 1 answer
391
391 views
Most languages are case sensitive, so keywords can be written only one way, and the regular expressions describing their lexemes are very simple. However, some languages,...
1 1 vote
0 0 answers
410
410 views
Here I thought the answer should be A and D but in the test series answer it is written as only D is the answer.My doubt is : A should not be generating 100 as a substrin...