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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated: Implicit conversion from float-string "1538205928.247" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Peter Linz Edition 4 Exercise 3.1 Question 18 (Page No. 76) / GATE Overflow for GATE CSE
edited by
2,012 views
0 votes
0 votes

Find regular expressions for the following languages on {a, b}.

(a) L = {w : |w| mod 3 = 0}

(b) L = {w : na (w)mod 3 = 0}

(c) L = {w : na (w)mod 5 > 0}

Also Design DFA for the same.

edited by

2 Answers

0 votes
0 votes
(a) $[(a + b)(a + b)(a + b)]^*$

(b) $(b^*ab^*ab^*ab^*)^* + b^*$

or, $(b^*ab^*ab^*ab^*)^*.b^* $

(c) $[(b^*ab^*ab^*ab^*ab^*ab^*)^* + b^*](ab^* + ab^*ab^* + ab^*ab^*ab^* + ab^*ab^*ab^*ab^*)$

or, $(b^*a+b^*ab^*a+b^*ab^*ab^*a+b^*ab^*ab^*ab^*a)[(b^*ab^*ab^*ab^*ab^*ab^*)^* + b^*]$
edited by

Related questions


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

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

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

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

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

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

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

Deprecated: Implicit conversion from float-string "1554046297.608" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
243
views
1 answers
1 votes
Naveen Kumar 3 asked Mar 31, 2019
243 views
Find a regular expression for $L =$ {$vwv: v, w ∈${$a, b$}$^*, |v| =2$}.
484
views
2 answers
1 votes
Naveen Kumar 3 asked Mar 31, 2019
484 views
Find a regular expression for the complement of the language in $L (r) =$ {$a^{2n}b^{2m+1}: n ≥ 0, m ≥ 0$}.
1.1k
views
2 answers
1 votes
Mk Utkarsh asked Mar 14, 2018
1,134 views
Give regular expression for the following language on $\sum = \left \{ a,b,c \right \}$All strings that contain at least one occurrence of each symbol in $\sum$
377
views
1 answers
2 votes
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 4.1 3% 2.6 1% 72 1.7 1% 2 0.0 0% 569k 46%
Control 13.1 10% 1.8 1% 5 11.8 9% 12 0.0 0% 257k 20%
View 1.9 1% 1.9 1% 12 0.0 0% 0 0.0 0% 100k 8%
Theme 105.4 81% 4.2 3% 15 101.3 78% 3 0.0 0% 296k 24%
Stats 4.9 3% 0.1 0% 0 4.9 3% 1 0.0 0% 0k 0%
Total 129.5 100% 10.6 8% 104 119.7 92% 18 0.0 0% 1225k 100%