Question

In: Computer Science

Lab 2 ∑={0,1} L = {w : if |w| is odd w begins with 11}. List...

Lab 2

∑={0,1} L = {w : if |w| is odd w begins with 11}.

List the indistinguishability classes for L(M). Include the following information for each class c, where wc is a string in c:

• A short description or characteristic function that describes the strings in c.

• Whether wc is or is not in L(M).

• ∀z(wcz ∈ L(M) iff … ). This rule must be different for each equivalence class — that is what makes them different classes.

• The class transitions for each symbol in Σ: wca ∈ [na] and Σ: wcb ∈ [nb], where na and nb are the numbers of equivalence classes.

Solutions

Expert Solution

Let's say the give function is L(language)= { W : if |W| is odd and begins with 11} and Alphabet is = {0,1}

The language is the set of strings which are in "ODD" length and starts with "11" string so the the strings in language can be like odd length start with "11"

Strings in "C" can be a set of all odd length strings that contain exactly two 1s by starting of the strings

Strings in 'c' are {110,111,11000,11011, .....}    =    Wc

let say x = alphabet "0" and Y = alphabet "1"

                               Y

                      epsilon      1           11         111         1111        11111

     epsilon         Notinc Notinc    Notinc     InC       Notinc        InC

          0            Notinc Notinc    Notinc     NotInC    Inc            NotInC                Here The Strings are starting with Y only

         00           Notinc Notinc    Notinc       Inc       Notinc        Inc

X      000         Notinc Notinc      Inc         Notinc     Inc           Notinc

       0000         Notinc Notinc      Inc         Inc         Notinc        Inc

       00000      Notinc Notinc       Inc         Notinc       Inc         Notinc

form this Wc in L is like {111,11111,11110,11100,1110000,1100000,11110,1111000,1111000000,.....}

Wc Not in L is like {epsilon,1,0,00,000,11,1100,1110....}

Let's say Na class function will be the { W : if |W| is odd and begins with 11}

And Nb class function will be the {Z(WcZL(M) if and only if ends with "00"} which consists of Strings which are not in L are Wc which ends with 00.

Equivalence Definition:

Given a set L(Language) and an equivalence relations R, the equivalence classes of L are disjoint subsetsL1, L2, . . .of "L" whose union is "L"

such that if x , y ∈ Li then x R y where R is a relation ,but if x and y are in different subsets of Li And Lj for i and j are not equal Then it is not a Equivalence

List all the elements of the set L(Language ), say,x1, x2, x3, . . .. And Let's Assume the Relation is like

{Y | Y is the String which consists of odd number of 1's in the string}

If some Xi is not equivalent to any element seen so far then Xi starts a new equivalence class.

If some Xj is equivalent to some Xi seen earlier, then Xj is in the same equivalence class as Xi.

The number of equivalence classes is just the number of sets found this way in the limit.

If L is regular, then one can test if x equivalence to y by this way

Let M be a minimal deterministic finite automaton recognizing L

Then X equivalence of L to Y if and only if X and y both drive M from the start state to the same state of M

So the Equivalence class are the sub-sets of the language of class Na and Nb And the Subsets are

Na = {111,11111,11110,11100,1110000,1100000,11110,1111000,1111000000,.....}

Nb = {epsilon,1,0,00,000,11,1100,1110,1111000,1110000....}

The class transitions for each symbol in :Wca belongsto [Na] and :Wca belongsto [Nb] where na and nb are the number of equivalence classes

subsets are X1 = {1110000} X2 = {11100}   X3 = {1110000} by the relation of odd number of 1's in a string

Here X1 and X2 set of strings can be start and same state in the minimal deterministic finite automata so these X1 and X2 are Equivalence class by the taken relation

The Equivalence class are 2


Related Solutions

write the dfa for Let L={w in {0,1}*| w is a binary number that is a...
write the dfa for Let L={w in {0,1}*| w is a binary number that is a multiple of 4}
- Give state diagram of DFA recognizing L={w | w is 0,1-string, and contains 3k 0s...
- Give state diagram of DFA recognizing L={w | w is 0,1-string, and contains 3k 0s and 2m 1s for some integers k and m at least 0}. For examples, 0010111 is in L, but 010011 is not in L. The first string contains 3 0s and 4=2x2 1s, but the second string has an odd number of 1s.
L= {w belongs to {0,1}* | the number of 0's is a prime number} . Prove...
L= {w belongs to {0,1}* | the number of 0's is a prime number} . Prove that the language L is not regular.
Tim has a concave utility function u(w) = w ‐ w²/2, where w∈[0,1] His only major...
Tim has a concave utility function u(w) = w ‐ w²/2, where w∈[0,1] His only major asset is shares in an Internet start‐up company. Tomorrow he will learn his stock's value. He believes that it is worth $w0 with probability 4/5 and $w1 with probability 1/5, with w1 > w0.   1) Calculate the expected value of the lottery, the expected utility, and the utility of the expected value. 2) If w0 = 1/3 and w1 = 2/3. Compute the risk...
1. Design a FA for the language L = {w : na(w) ≤ 4}. 2. Design...
1. Design a FA for the language L = {w : na(w) ≤ 4}. 2. Design a FA that accepts all strings that contain the substring aba. 3. Design a FA for the language L = {ai baj : i, j ≥ 0, i + j is odd} 4. Design a FA for the language L = {bnam : n ≤ 2, m ≥ 3}
For a given language L = { w | na(w) + nb(w) = nc(w) } where...
For a given language L = { w | na(w) + nb(w) = nc(w) } where S = G = {a, b, c} Looking for answer to 3 Construct a PDA M that accepts L with S = G = {a, b, c} Show the sequence of instantaneous descriptions for the acceptance of acacbcbc by M in 1). Give a CFG G that generates L, L(G) = L.
w = 50,000 + 10,000L where w is wages, L is the number of players The...
w = 50,000 + 10,000L where w is wages, L is the number of players The demand for players is given by the Marginal Revenue Product: MRP = 500,000 – 20,000L The Marginal Factor Cost to the club is : MFC = $50,000 + 25,000L If the NFL labor market were competitive, what would be the equilibrium number of players employed? If the NFL labor market were competitive, what would be the equilibrium wage of a player? We know that...
Let L ⊆ Σ ∗ and define S(L), the suffix-language of L, as S(L) = {w...
Let L ⊆ Σ ∗ and define S(L), the suffix-language of L, as S(L) = {w ∈ Σ ∗ | x = yw for some x ∈ L, y ∈ Σ ∗ } Show that if L is regular, then S(L) is also regular.
Is 2k-1 odd? I get that 2(some int k) + 1 is the property for odd...
Is 2k-1 odd? I get that 2(some int k) + 1 is the property for odd numbers. The main question: I am confused on how 2k-1= 2k-2+1 which is a form of k?
1.1) For the permutation w=63B859A7142 compute inv(w),maj(w) (here A = 10, B = 11). Apply stanley's...
1.1) For the permutation w=63B859A7142 compute inv(w),maj(w) (here A = 10, B = 11). Apply stanley's fundamental bijection to get w'. Compute inv(w') and maj(w') 1.2) Describe the bijection between full binary trees (trees where every parent has two children) with n+1 leaves to the Dyck paths of length n.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT