Question

In: Computer Science

What are the equivalence classes for a ∗ b ∗ ? • How many equivalence classes...

What are the equivalence classes for a ∗ b ∗ ?

• How many equivalence classes are there?

• Make each one into a state and show how one can construct a minimal deterministic finite automaton from them.

• Explain how to choose the start state and accepting states and how to draw the arrows.

• The resulting automaton is minimal for this language. How about for {a n b n : n ≥ 0}? What are the equivalence classes?

Solutions

Expert Solution

For a*b*:

The idea is to find all the substrings that can be generated using the symbol and to traverse through eacch to reach a different state on each input, i.e if q0 -a-> q1 and q0 -b-> q1 then we take them as one equivalence class and not two.

The following table shows all the sets possible and we can see that there are four quivalence classes.

For anbn

As we can see from its production, ({}, ab, aabb, aaabbb, aaaabbbb....) this is repeated patter of equal length over a and b but there is no way to draw its finite automate as we can not ensure how many a's are there before we start printing b, for that we need a stack to count and stack is not used in FA, instead its used in Pushdown automata, hence the equivalance classes of it are two (a preceeding b and only b....) but its automation is not finite.


Related Solutions

There are as many equivalence classes as there are which of the following
There are as many equivalence classes as there are which of the following? (Select all that apply.) Answer Choices:   A. distinct horizontal lines in the plane   B. distinct integers   C. distinct real numbers   D. distinct vertical lines in the plane   E. distinct lines in the plane whose coordinates equal each other
Let X be the set of equivalence classes. So X = {[(a,b)] : a ∈ Z,b...
Let X be the set of equivalence classes. So X = {[(a,b)] : a ∈ Z,b ∈ N} (recall that [(a,b)] = {(c,d) ∈Z×N : (a,b) ∼ (c,d)}). We define an addition and a multiplication on X as follows: [(a,b)] + [(c,d)] = [(ad + bc,bd)] and [(a,b)]·[(c,d)] = [(ac,bd)] Prove that this addition and multiplication is well-defined on X.
Prove that the equivalence classes of an equivalence relation form a partition of the domain of...
Prove that the equivalence classes of an equivalence relation form a partition of the domain of the relation. Namely, suppose ? be an equivalence relation on a set ? and define the equivalence class of an element ?∈? to be [?]?:={?∈?|???}. That is [?]?=?(?). Divide your proof into the following three peices: Prove that every partition block is nonempty and every element ? is in some block. Prove that if [?]?∩[?]?≠∅, then ???. Conclude that the sets [?]? for ?∈?...
9.2 Give 3 examples of equivalence relations and describe the equivalence classes. 9.3 Let R be...
9.2 Give 3 examples of equivalence relations and describe the equivalence classes. 9.3 Let R be an equivalence relation on a set S. Prove that two equivalence classes are either equal or do not intersect. Conclude that S is a disjoint union of all equivalence classes.
A)   What are wrapper Classes? What are the available wrapper classes? B) What is Autoboxing and...
A)   What are wrapper Classes? What are the available wrapper classes? B) What is Autoboxing and Unboxing?
1.For Marx, how many classes are there? What are they called? 2.What did Hobbes describe as...
1.For Marx, how many classes are there? What are they called? 2.What did Hobbes describe as “solitary, poor, nasty, brutish and short”? Why is it this way?
How many moles of NaOH were necessary to reach the equivalence point?
For this specific titration, we took 52mL of NaOH and put it in the burette and had it added to 25mL of an unknown acetic acid. We found that the acid turned pink after 9mL of the NaOH was added. This is the question: EXPERIMENT 2: How many moles of NaOH were necessary to reach the equivalence point? Choose the closest answer.Select one:a. 3.26 x 10-1 moles b. 9.09 x 10-4 moles c. 4.67 × 10-2 moles  d. 5.02 x 10-8...
DSM-IV mental disorders are grouped into how many major diagnostic classes? a. 14 b. 15 c....
DSM-IV mental disorders are grouped into how many major diagnostic classes? a. 14 b. 15 c. 16 d. 17
Identify the equivalence point on the titration curve shown here. A is the equivalence point B...
Identify the equivalence point on the titration curve shown here. A is the equivalence point B is the equivalence paint C is the equivalence point pH D is the equivalence point   Define the end point of a titration. It is the point at which the pH no longer changes. It is when a change that indicates equivalence is observed in the analyte solution. It is a synonym for equivalence point.
a) How many arrangements are there of the letters of the word FEEBLENESS? (b) What is...
a) How many arrangements are there of the letters of the word FEEBLENESS? (b) What is the probability that if the letters are arranged at random four E’s will be together? (c) In a random arrangement, what is the probability that exactly three E’ s will be together?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT