Which of the following is TRUE about the Pumping Lemma for regular language?
It applies to all regular language
The pumping lemma for regular languages (Hopcroft, Motwani and Ullman) states: if L is regular, then there is a constant n (the number of states of a DFA for L) such that every string w in L with |w| ≥ n can be written as w = xyz with |xy| ≤ n, |y| ≥ 1 and xykz in L for all k ≥ 0.
Step 1 — The hypothesis is only that L is regular, so the lemma holds for every regular language.
Step 2 — For a finite regular language, take n larger than the longest string; then no string has length ≥ n and the condition holds vacuously. So it is not restricted to infinite languages, although it is only useful on infinite ones.
Step 3 — Many context-free languages, such as {anbn | n ≥ 0}, violate this lemma (they need the separate pumping lemma for context-free languages), so it does not apply to all context-free languages; the same argument rules out all recursively enumerable languages.
It applies to all regular language option is correct.
For the above specified passage, which of the following represents the regular expression?
Given two languages :
\(L_1 = \{(ab)^n a^k \mid n \gt k,\ k \ge 0\}\)
\(L_2 = \{a^n b^m \mid n \ne m\}\)
Using pumping lemma for regular language, it can be shown that
Regular expression for the complement of language \(L = \{a^n b^m \mid n \ge 4,\ m \le 3\}\) is
Let L be any language. Define even (W) as the strings obtained by extracting from W the letters in the even-numbered positions and even(L) = {even (W) | W ∈ L}. We define another language Chop (L) by removing the two leftmost symbols of every string in L given by \(\text{Chop}(L) = \{W \mid \nu W \in L, \text{ with } |\nu| = 2\}\).
If L is regular language then
Which of the following are not regular ?
(A) Strings of even number of a’s.
(B) Strings of a’s, whose length is a prime number.
(C) Set of all palindromes made up of a’s and b’s.
(D) Strings of a’s whose length is a perfect square.
Consider the languages L1 = φ and L2 = {1}. Which one of the following represents
L1* ∪ L2* L1* ?
Which of the following statements is false ?
The regular expression corresponding to the language L where
\(L = \{ x \in \{0, 1\}^{*} \mid x\) ends with 1 and does not contain substring 00 \(\}\) is :
The symmetric difference of two sets S1 and S2 is defined as
S1 ⊖ S2 = {x|x ∈ S1 or x ∈ S2, but x is not in both S1 and S2}
The nor of two languages is defined as
nor (L1, L2) = {w|w ∉ L1 and w ∉ L2}.
Which of the following is correct ?
The regular expression for the complement of the language L = {anbm|n ≥ 4, m ≤ 3} is :
Which of the following are correct on regular expressions?
A. φ + L = L + φ = L
B. εL = Lε = L
C. φL = Lφ = φ
D. φL = Lφ = L
Choose the correct answer from the options given below:
The Kleene Star operation accepts the following string of finite length over set A = {0,1} | where string s contains even number of 0 and 1.
For the above specified passage, which of the following represents the regular expression?