L3 = {w : contains at most two 1’s and |w| = 3}
L4 = {w : w = wR, |w| £ 3}
Enumerate the first 7 strings in the L-ordering of the following:



Here as the number of strings in the L4 is less than the number of strings in L3 it results less number of strings as mentioned above .ie., L3 - L4 have only 4 strings.
Consider the following languages over {0, 1}: L3 = {w : contains at most two 1’s...
Give regular expressions generating the languages of 1. {w over the alphabet of {0, 1} | w is any string except 11 and 111} 2. {w over the alphabet of {0, 1} | w contains at least two 0’s and at most one 1} 3. {w over the alphabet of {0, 1} | the length of w is at most 9} 4. {w over the alphabet of {0, 1} | w contains at least three 1 s} 5. {w over...
1. Give a DFA for each of the following languages defined over the alphabet Σ (0, i): a) (3 points) L={ w | w contains the substring 101 } b) (3 points) L-wl w ends in 001)
Give regular expressions for the following languages: (a) The language of all strings over {a,b} except the empty string. (b) The language of all strings over {a,b} that contain both bab and bba as substrings. (c)L k = {w ∈ {a,b} * | w contains a substring having 3 more b’s than a’s}. (d) The language of all strings over {a,b} that have a b in every odd position (first symbol is considered position 1; empty string should be accepted)...
= {a,b}: 1. (9 pts) Consider the following three languages, all subsets of S* where • L = {w w is a word such that we is divisible by 3). . L2 = {w w is a word whose length is divisible by 4 }. • L3 = {w w is a word such that wla >3}. (a) For each language construct a DFA that recognizes that language. (b) Construct an automaton that recognizes Lin L2. If the constructed automaton...
2. Give the first five strings in L-ordering for each of the following languages over 2 - {0,1}. If there are fewer than five strings, give the entire language instead: Let L1= {0, 11, 101) Let L2 = {€, 0,10 a) LUL b) L2-L2 c) L L2 d) L22
1.this question contains two independent part. a)Given two NFA’s M1 and M2, show how you will construct an NFA M such that L(M) = L(M1) ∩ L(M2). b)for the following languages over the alphabet Σ = {a, b}, give a DFA that recognizes that language L3 consists of strings in which every odd position contains b
Give the size of each of the following languages over S = {0, 1} below. If the language has no enough strings, then list all its strings. Let L1 = {ε, 1, 10}, L2 = {0, 01}, and LÆ = {}. a) |L1 – L2| = ____________ b) |L2L1 | = ___________ c) |L12|= __________ d) |L2LÆ| = ____________ e) |LÆ*|= ___________
disprove that the given lan 4. [20 Points For each of the following languages, prove or guage is regular (a) L1www e {a,b}*} {w w E {a, b}* and no two b's in w have odd number of a's in between}. (b) L2 (c) L3 a" (d) L4 vw n = 3k, for k > 0}. a, b}*}
disprove that the given lan 4. [20 Points For each of the following languages, prove or guage is regular (a) L1www e...
1. Construct a DFA that recognizes each of the following languages: a. L1 = {w € {a, b}* | w contains at least two a's and at least two b’s} b. L2 = {w € {a,b}* | w does not contain the substring abba} C. L3 = {w € {a, b}* | the length of w is a multiple of 4}
4) For the alphabet S={a, b}, construct an FA that accepts the following languages. (d) L= {all strings with at least one a and exactly two b's} (e) L= {all strings with b as the third letter} (f) L={w, |w| mod 4 = 0} // the cardinality of the word is a multiple of 4