Deprecated: Implicit conversion from float-string "1611807569.244" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1611807569.244" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1611807569.244" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1611807569.244" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1611807569.244" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1616999321.121" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1616999321.121" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1616999321.121" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1616999321.121" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1616999321.121" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1620099918.487" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1620099918.487" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1620099918.487" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1620099918.487" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1620099918.487" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
CMI2020-A: 2 / GATE Overflow for GATE CSE
edited by
328 views
0 votes
0 votes

Consider the following regular expressions over alphabet$\{a,b\}$, where the notation $(a+b)^+$ means $(a+b)(a+b)^*$:

$$r_1=(a+b)^+a(a+b)^*$$

$$r_2=(a+b)^*b(a+b)^+$$

Let $L_1$ and $L_2$ be the languages defined by $r_1$ and $r_2$, respectively. Which of the following regular expressions define $L_1\cap L_2$?

  1. $(a+b)^+a(a+b)^*b(a+b)^+$
  2. $(a+b)^*a\;b(a+b)^*$
  3. $(a+b)^*b(a+b)^*a(a+b)^*$
  4. $(a+b)^*a(a+b)^*b(a+b)^*$
edited by

2 Answers

0 votes
0 votes

C)The easiest way here is to check the minimum length string that is accepted by both $L_{1}$ & $L_{2}$, in this case it is “ba”, the only option which matches with that is C.

 

Long Method:

  1. Construct minimal DFA $D_{1}$ & $D_{2}$ for $L_{1}$ & $L_{2}$ respectively.
  2. Use product construction to combine 2 DFA’s and construct intersection of 2 DFA’s. Let Resultant DFA  $D_{1}\cap D_{2}=D_{r}$.
  3. Now, derive regular expression from DFA $D_{r}$.
edited by
Answer:

Related questions


Deprecated: Implicit conversion from float-string "1611807570.079" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1611807570.079" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1611807570.079" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1611807570.079" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1611807568.176" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1611807568.176" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1611807568.176" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1611807568.176" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1611807567.099" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1611807567.099" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1611807567.099" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1611807567.099" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1611807566.016" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1611807566.016" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1611807566.016" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1611807566.016" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
667
views
3 answers
4 votes
soujanyareddy13 asked Jan 28, 2021
667 views
Which of the following languages over the alphabet $\{0,1\}$ are $not$ recognized by deterministic finite state automata $(DFA)$ with $three$ states?Words which do not ha...
280
views
1 answers
0 votes
soujanyareddy13 asked Jan 28, 2021
280 views
Some children are given boxes containing sweets. Harish is happy if he gets either gems or toffees. Rekha is happy if she gets both bubble gums and peppermints. Some of t...
201
views
1 answers
0 votes
soujanyareddy13 asked Jan 28, 2021
201 views
In a class, every student likes exactly one novelist and one musician. If two students like the same novelist, they also like the same musician. The class can be divided ...
298
views
1 answers
0 votes
soujanyareddy13 asked Jan 28, 2021
298 views
A boolean function on $n$ variables is a function $f$ that takes an n-tuple of boolean values $x \in \{0,1\}^n$ as input and produces a boolean value $f(x)\in \{0,1\}$ as...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 3.9 4% 2.5 2% 72 1.5 1% 2 0.0 0% 569k 51%
Control 12.9 14% 1.3 1% 5 11.8 12% 12 0.0 0% 180k 16%
View 1.5 1% 1.5 1% 12 0.0 0% 0 0.0 0% 95k 8%
Theme 66.0 72% 4.0 4% 15 62.1 68% 3 0.0 0% 264k 23%
Stats 6.8 7% 0.1 0% 0 6.8 7% 1 0.0 0% 0k 0%
Total 91.3 100% 9.5 10% 104 82.2 90% 18 0.0 0% 1111k 100%