Recent questions tagged regular-expression

2 votes
1 answer
454
1 votes
1 answer
455
1 votes
2 answers
456
The number of unique strings in L((a+b)* a(b+ba)* ) of length less than four is _____
0 votes
1 answer
457
Consider the given dfaWhat is the regular expression of the given dfa?I am getting :- a(ba)*bb + a(ba)*a + bbIs it correct or not?
1 votes
2 answers
458
1 votes
2 answers
459
0 votes
1 answer
460
0 votes
2 answers
461
write the regular expression for the given language L= { W | NO OF a mod 2= 1} (odd no of a's )
2 votes
1 answer
464
2 votes
1 answer
468
How many of them below are equivalent to (a+b)* ? A) (a*b)*a* B) (b*a)*b* C) a*(ba*)* D) b*(ab*)*
1 votes
1 answer
470
1 votes
0 answers
471
2 votes
2 answers
472
I need two proves, i am stuckhere1.Show that every S-grammar is Unambiguous2.Show that a RegEx can never be Inherently Ambiguousso what to use here? Induction/Contradicti...
1 votes
3 answers
473
Write a regular expression for the string having 3 consequetive 1s
2 votes
2 answers
474
Let L = {anbn : n ≥ 0}...Is complement of the language L , DCFL or not ??? please explain your answer ...I feel it is a DCFL ...
1 votes
1 answer
475
0 votes
2 answers
476
Give regular expression for the complement of the language given below .L (r) = {a2nb2m+1: n ≥ 0, m ≥ 0} (or) r =(aa)* (bb)* b
0 votes
1 answer
477
Give a regular expression for LR, where L is the language given below,L = (a + b) b (a + ab)*My answer : ( a + ba )* b ( a + b ).Please verify ...
0 votes
1 answer
478
Find dfa's for the following languages on Σ = {a,b}.L= {w: na(w) mod 3 >nb(w) mod 3}.L= {w :(na(w) – nb(w)) mod 3 0}.
3 votes
2 answers
479