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

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

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

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

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

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

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

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

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

Deprecated: Implicit conversion from float-string "1567529199.501" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Theory of Computation: MadeEasy Test Series 2018: Theory of Computation - Identify Class Language
edited by
457 views
2 votes
2 votes

a) Only L1 is correct

b)Only L2 is correct

c)Both L1 and L2 are correct

d)None of L1 and L2 is correct

My question is: What is meant by prefix of string? And how is L1 regular?

edited by

1 Answer

0 votes
0 votes
DFA can be drawn for the first  Language L1 and so the language is regular.

L1 will have finite no. of strings in the language .

L1= { € ,a ,aa, b, bb , ab , aab , aabb , aabbb,  aabbbb }

Language second is clearly a cfl language .

L2 can be written as -

L2= (€ + a + aa)(a^n b^n)  

(Second part is the standard example of cfl language)

[   ' € '   represents null string   ]

Related questions


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

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

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

Deprecated: Implicit conversion from float-string "1546934913.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
741
views
1 answers
1 votes
jatin khachane 1 asked Jan 8, 2019
741 views
$L = \left \{ x^{l}y^{m}z^{n} | \ l+m+n\ is\ divisible\ by\ 5\right \}$Is it regular or CFL or CSL ?
862
views
5 answers
1 votes
air1ankit asked Dec 9, 2017
862 views
If L1 = { a^n | n ≥ 0 } and L2 = { b^n | n ≥ 0 }, Considerthen L1 . L2 wil bea) (ab)^nb) a^n b^nc) b^n a^nd)b^m a^ne) { a^m b^n | m ≥ 0, n ≥ 0 }why answer is d w...