Multiple Choice
If s is a string over (0 + 1) * then let n0 (s) denote the number of 0's in s and n1 (s) the number of l's in s. Which one of the following languages is not regular?
A) L = {s € (0 + 1) *n0 (s) is a 3-digit prime
B) L = {s € (0 + 1) * | for every prefix s' of s, l 0 (s') - n1 (s') | <= 2 }
C) L={s € (0+1) * | n0(s) - n1(s) | <= 4}
D) L = {s € (0 + 1) | n0 (s) mod 7 = n1 (s) mod 5 = 0 }
Correct Answer:

Verified
Correct Answer:
Verified
Q2: S -> aSa| bSb| a| b ;
Q3: Consider the languages: L<sub>1</sub> ={a^n b^n c^m
Q4: Consider the languagesL<sub>1</sub>={0^{i}1^{j}|i != j},L<sub>2</sub>={0^{i}1^{j}|i = j},L<sub>3</sub>
Q5: Let L<sub>1</sub> be a recursive language. Let
Q6: A minimum state deterministic finite automation accepting
Q8: Consider the following two problems on undirected
Q9: Consider the set of strings on
Q10: For S € (0+1)* let d(s)denote the
Q11: Consider the language L<sub>1</sub>,L<sub>2</sub>,L<sub>3</sub> as given below.<br>L<sub>1</sub>={0^{p}1^{q}
Q12: Consider the following statements about the context