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

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

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

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

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

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

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

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

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

Deprecated: Implicit conversion from float-string "1578037933.581" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Test by Bikram | Theory of Computation | Test 2 | Question: 25 / GATE Overflow for GATE CSE
retagged by
473 views
2 votes
2 votes

Which of the following are regular?

  1. $\{aba^R \mid a,b \in \{0,1\}^+ \}$  
  2. $\{aba  \mid a,b \in \{0,1\}^* \}$
  3. $\{aba^R \mid b,a  \in \{0,1\}^* \text{ and } \mid b \mid = 10 \}$
  1.   (i) and (iii) only
  2.   (i) and (ii) only
  3.   (i) only
  4.   (ii) and (iii) only
retagged by

1 Answer

Best answer
0 votes
0 votes

abaR  ,  a ∈ (0,1) *
We have to remember only one thing the strings generated should start and end with a same symbol.

The whole part of a and aR except the start and end symbol comes in b

(ii) In these expression the FA has to remember where a ends b starts and again where b ends and b starts so it not possible.

(iii) When b is fixed then abaR is not regular , where a ∈ (0,1) * . Because the whole string does not comes in b of a and aR.

selected by
Answer:

Related questions

462
views
0 answers
1 votes
Bikram asked Aug 12, 2017
462 views
Which of the following regular expressions does not generate the following language?$\{w \mid \text{ the length of }w \text{ is at most }4\} \text{ where } \Sigma = \{a,b...
210
views
1 answers
1 votes
Bikram asked Aug 12, 2017
210 views
Given below are two regular languages :$L1 = \{ W / W \text{ in } \{0,1\}^* \text{and each string starts with }‘0’.\}$$L2 = \{ W / W \text{ in } \{0,1\}^* \text{ ...
461
views
1 answers
0 votes
Bikram asked Aug 12, 2017
461 views
Which of the following languages is regular?$L = \{ bba (ba)^* a^{n-1} \mid n 0 \}$$L = \{a^nb^n \mid n < 1000 \}$$L = \{a^nb^k \mid \text{ n is odd or k is even} \}$$L ...
305
views
1 answers
0 votes
Bikram asked Aug 12, 2017
305 views
The language generated by the following grammar is:$S \rightarrow aAb$$A \rightarrow aAb / B$$B \rightarrow CC$$C \rightarrow bDa$$D \rightarrow bDa / \epsilon$$\{ {a...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 3.8 2% 2.3 1% 72 1.5 1% 2 0.0 0% 569k 49%
Control 14.1 11% 1.4 1% 5 12.9 10% 12 0.0 0% 258k 22%
View 1.7 1% 1.7 1% 12 0.0 0% 0 0.0 0% 48k 4%
Theme 101.3 79% 4.1 3% 15 97.3 76% 3 0.0 0% 264k 23%
Stats 5.8 4% 0.1 0% 0 5.7 4% 1 0.0 0% 0k 0%
Total 126.7 100% 9.7 7% 104 117.4 92% 18 0.0 0% 1141k 100%