Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged regular-expression
3
votes
1
answer
451
TOC Linear grammer
As Type(3)/Regular grammars are form of left linear or right linear , Now suppose i have two grammars,G1 and G2 which are generating left linear and right linear grammars respectively.And now my new Grammar G :- has one production as S->S1|S2(where ... it has both left and right linear.But we also know that regular union is regular.So what can be concluded from this scenario ?
As Type(3)/Regular grammars are form of left linear or right linear ,Now suppose i have two grammars,G1 and G2 which are generating left linear and right linear grammars ...
rahul sharma 5
1.0k
views
rahul sharma 5
asked
Jul 31, 2017
Theory of Computation
regular-expression
theory-of-computation
regular-grammar
+
–
2
votes
1
answer
452
GATE 2017 Mock
Consider the Following regular expressions r1 = 1(0 + 1)* r2 = 1(1 + 0)+ r3 = 11*0 What is the relation between the languages generated by the regular expressions above ? a) L (r1) ⊆ L (r2) and L(r1) ⊆ L(r3) b) L (r1) ⊇ L (r2) and L(r2) ⊇ L(r3) c) L (r1) ⊇ L (r2) and L(r2) ⊆ L(r3) d) L (r1) ⊇ L (r3) and L(r2) ⊆ L(r1) Also Please tell explain the value of 1(1 + 0)+ .
Consider the Following regular expressionsr1 = 1(0 + 1)*r2 = 1(1 + 0)+r3 = 11*0What is the relation between the languages generated by the regular expressions above ?a) L...
Utkarsh Anand
2.0k
views
Utkarsh Anand
asked
Jul 26, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
grammar
+
–
1
votes
3
answers
453
Peter Linz Edition 4 Exercise 3.1 Question 7 (Page No. 76) Exercise 3.3 Question 9 (Page No. 97)
Regular Expression:- Q1) What languages do the expression (∅*)* and a∅ denote? Q2) Find a regular expression and finite automata for all bit strings, with leading bit 1 interpreted as a binary integer, with values not between 10 and 30. ... w ∈ {a, b}* / (number of a in w + 3*number of b) in w is even }
Regular Expression:-Q1) What languages do the expression (∅*)* and a∅ denote?Q2) Find a regular expression and finite automata for all bit strings, with leading b...
Shubhanshu
2.1k
views
Shubhanshu
asked
Jul 5, 2017
Theory of Computation
theory-of-computation
regular-language
regular-expression
regular-grammar
peter-linz
peter-linz-edition4
+
–
2
votes
1
answer
454
Regular Expression
Here is the DFA and I need to convert it to regular expression. I get two different answers when removing states in different order. i get b(c+ab)*d when I remove B first and then A while I get (bc*a)*bc*d when I eliminate A first. Which one is right?
Here is the DFA and I need to convert it to regular expression. I get two different answers when removing states in different order.i get b(c+ab)*d when I remove B first ...
manish.anand
511
views
manish.anand
asked
Jul 5, 2017
Theory of Computation
regular-expression
+
–
1
votes
1
answer
455
Self Doubt In Regular Expression
Are r(*) and r* equivalent Regular Expression and What is the meaning of r(*)?
Are r(*) and r* equivalent Regular Expression and What is the meaning of r(*)?
Arnab Bhadra
360
views
Arnab Bhadra
asked
Jul 4, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
votes
2
answers
456
Doubt
The number of unique strings in L((a+b)* a(b+ba)* ) of length less than four is _____
The number of unique strings in L((a+b)* a(b+ba)* ) of length less than four is _____
AnilGoudar
427
views
AnilGoudar
asked
Jul 1, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
0
votes
1
answer
457
DFA to Regular Expression
Consider the given dfa What is the regular expression of the given dfa? I am getting :- a(ba)*bb + a(ba)*a + bb Is it correct or not?
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?
Shubhanshu
3.1k
views
Shubhanshu
asked
Jul 1, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
+
–
1
votes
2
answers
458
theory of computation
contruct the PDA for CFG L={set of balanced paranthesis}
contruct the PDA for CFG L={set of balanced paranthesis}
akankshadewangan24
693
views
akankshadewangan24
asked
Jun 26, 2017
Theory of Computation
finite-automata
regular-expression
grammar
+
–
1
votes
2
answers
459
theory of computtion
find regular expression of 1. S-> 01A/10B A->0B/1 B->1A/0 and 2. A->A00 /A1/0 3. S->baS/aA A->bbA/bb
find regular expression of1.S- 01A/10BA->0B/1B->1A/0and2.A->A00 /A1/0 3.S->baS/aAA->bbA/bb
akankshadewangan24
499
views
akankshadewangan24
asked
Jun 25, 2017
Theory of Computation
regular-expression
grammar
+
–
0
votes
1
answer
460
Doubt
What is "Regular set" ?
What is "Regular set" ?
Angkit
334
views
Angkit
asked
Jun 20, 2017
Theory of Computation
theory-of-computation
regular-expression
descriptive
+
–
0
votes
2
answers
461
regular expression
write the regular expression for the given language L= { W | NO OF a mod 2= 1} (odd no of a's )
write the regular expression for the given language L= { W | NO OF a mod 2= 1} (odd no of a's )
sid1221
1.2k
views
sid1221
asked
May 19, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
0
votes
1
answer
462
Test by Bikram | Mock GATE | Test 4 | Question: 53
Which of the following languages over the alphabet set $\{ a, b \}$ is described by the regular expression $a^\ast b$(aa)$^\ast b$ ? The set of all strings containing exactly two $b's$ ... ending with $ b'$. The set of all strings ending with $ b'$. The set of all strings having sub sequence $bb$.
Which of the following languages over the alphabet set $\{ a, b \}$ is described by the regular expression$a^\ast b$(aa)$^\ast b$ ?The set of all strings containing exact...
Bikram
390
views
Bikram
asked
May 14, 2017
Theory of Computation
tbb-mockgate-4
theory-of-computation
regular-expression
+
–
1
votes
1
answer
463
Test by Bikram | Mock GATE | Test 4 | Question: 44
Which of the following regular expressions describes the same set of strings as $\left ( a^*+b \right )^*$ $\left ( c+d \right )$? $a^{\ast }\left ( c+d \right )^{\ast } + b$ $\left ( a^{\ast }+b \right )c + \left ( a+b \right )d$ ... $a^{\ast }\left ( c+d \right )+ b^{\ast }\left ( c+d \right )$
Which of the following regular expressions describes the same set of strings as $\left ( a^*+b \right )^*$ $\left ( c+d \right )$? $a^{\ast }\left ( c+d \right )^{\ast...
Bikram
214
views
Bikram
asked
May 14, 2017
Theory of Computation
tbb-mockgate-4
theory-of-computation
regular-expression
+
–
2
votes
1
answer
464
Test by Bikram | Mock GATE | Test 4 | Question: 9
If $L$ is the set of all strings over $\{ x,y\}$ containing at least one $x$, then which of the following regular expressions does not generate $L$? $(x+y)^* x(y+y)^*$ $y^*x ( x+y)^*$ $( x+y)^* x$ $( x+y)^* xy^*$
If $L$ is the set of all strings over $\{ x,y\}$ containing at least one $x$, then which of the following regular expressions does not generate $L$?$(x+y)^* x(y+y)^*$$y^...
Bikram
397
views
Bikram
asked
May 14, 2017
Theory of Computation
tbb-mockgate-4
theory-of-computation
regular-expression
+
–
1
votes
1
answer
465
Regular expression describe the same set of string as Grammar
Consider the following Grammar S -> Ax/By A->By/Cw B->x/Bw which of the regular expression describe the same set of strings as the grammar? The option are: (a) xw* y + xw* yx +ywx (b) xwy + xw* xy +ywx (c) xw* y + xw X yx +ywx (d) xw xy + xww* y +ywx
Consider the following GrammarS - Ax/ByA->By/CwB->x/Bwwhich of the regular expression describe the same set of strings as the grammar? The option are:(a) xw* y + xw* yx +...
Hari
2.5k
views
Hari
asked
May 6, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
votes
2
answers
466
regular expression
1(01)* and (10)*1, are both regular expressions are equal? i think not, as 10 can be accepted by first regular expression, but it cannot be accepted by the second RE i.e (10)*1 in which strings always ends with 1. Is it correct? Please correct me if iam wrong. Thank You.
1(01)* and (10)*1, are both regular expressions are equal?i think not, as 10 can be accepted by first regular expression, but it cannot be accepted by the second RE i.e ...
AnilGoudar
1.7k
views
AnilGoudar
asked
Apr 18, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
votes
2
answers
467
geeksforgeeks
Which regular expression best describes the language accepted by the non-deterministic automaton below? (A) (a + b)* a(a + b)b (B) (abb)* (C) (a + b)* a(a + b)* b(a + b)* (D) (a + b)* Answer: (A) DOUBT- I beleive the option A is wrong as dfa can accept string aaab but expression in A can not. pls clarify? the given answer is wrong or not? if yes, then wha is the correct answer?
Which regular expression best describes the language accepted by the non-deterministic automaton below? (A) (a + b)* a(a + b)b(B) (abb)*(C) (a + b)* a(a + b)* b(a + b)*(D...
Sachi Saxena
1.2k
views
Sachi Saxena
asked
Apr 17, 2017
Theory of Computation
theory-of-computation
regular-expression
finite-automata
+
–
2
votes
1
answer
468
theory of computation
How many of them below are equivalent to (a+b)* ? A) (a*b)*a* B) (b*a)*b* C) a*(ba*)* D) b*(ab*)*
How many of them below are equivalent to (a+b)* ? A) (a*b)*a* B) (b*a)*b* C) a*(ba*)* D) b*(ab*)*
Vicky rix
431
views
Vicky rix
asked
Apr 15, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
votes
6
answers
469
Regular expression for given FA
student2018
2.2k
views
student2018
asked
Apr 15, 2017
Theory of Computation
theory-of-computation
regular-expression
finite-automata
+
–
1
votes
1
answer
470
theory of computation
Is this correct ...?
Is this correct ...?
Vicky rix
362
views
Vicky rix
asked
Apr 12, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
votes
0
answers
471
theory of computation
Construct minimal DFA for the language,L = ( L1 union L2 ) where L1 = L (aaa*b) and L2 = L (aab*aba*). The number of states in the minimal DFA, L is _____. Is this correct ??? or is there anyother minimal DFA witb lesser number of states ???
Construct minimal DFA for the language,L = ( L1 union L2 ) where L1 = L (aaa*b) and L2 = L (aab*aba*). The number of states in the minimal DFA, L is _____.Is this correct...
Vicky rix
513
views
Vicky rix
asked
Apr 12, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
+
–
2
votes
2
answers
472
Peter Linz 5.1
I need two proves, i am stuckhere 1.Show that every S-grammar is Unambiguous 2.Show that a RegEx can never be Inherently Ambiguous so what to use here? Induction/Contradiction
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...
No_name
2.4k
views
No_name
asked
Apr 7, 2017
Theory of Computation
theory-of-computation
context-free-language
regular-expression
regular-language
grammar
+
–
1
votes
3
answers
473
Theory of computation
Write a regular expression for the string having 3 consequetive 1s
Write a regular expression for the string having 3 consequetive 1s
Nancy
591
views
Nancy
asked
Apr 6, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
2
votes
2
answers
474
theory of computation
Let L = {anbn : n ≥ 0}...Is complement of the language L , DCFL or not ??? please explain your answer ...I feel it is a DCFL ...
Let L = {anbn : n ≥ 0}...Is complement of the language L , DCFL or not ??? please explain your answer ...I feel it is a DCFL ...
Vicky rix
433
views
Vicky rix
asked
Apr 5, 2017
Theory of Computation
theory-of-computation
regular-expression
context-free-language
+
–
1
votes
1
answer
475
theory of computation
L = { w : na(w) = nb(w) }. Is L*(kleene-closure of L) regular or not ?
L = { w : na(w) = nb(w) }. Is L*(kleene-closure of L) regular or not ?
Vicky rix
483
views
Vicky rix
asked
Apr 4, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
+
–
0
votes
2
answers
476
theory of computation
Give regular expression for the complement of the language given below . L (r) = {a2nb2m+1: n ≥ 0, m ≥ 0} (or) r =(aa)* (bb)* b
Give regular expression for the complement of the language given below .L (r) = {a2nb2m+1: n ≥ 0, m ≥ 0} (or) r =(aa)* (bb)* b
Vicky rix
3.7k
views
Vicky rix
asked
Apr 3, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
+
–
0
votes
1
answer
477
theory of computation
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 ...
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 ...
Vicky rix
527
views
Vicky rix
asked
Apr 3, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
+
–
0
votes
1
answer
478
theory of computation
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}.
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}.
Vicky rix
1.5k
views
Vicky rix
asked
Apr 2, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
grammar
+
–
3
votes
2
answers
479
theoryof computation
Both these languages are not equivalent...right ???
Both these languages are not equivalent...right ???
Vicky rix
630
views
Vicky rix
asked
Apr 2, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
grammar
+
–
1
votes
2
answers
480
theory of computation
Vicky rix
403
views
Vicky rix
asked
Apr 1, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
Page:
« prev
1
...
11
12
13
14
15
16
17
18
19
20
21
22
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register