Question

In: Computer Science

Let Σ be a finite alphabet with n letters and let R be the relation on...

Let Σ be a finite alphabet with n letters and let R be the relation on Σ* defined as follows: R = {(u, v): every letter in u occurs somewhere in v, and every letter in v occurs somewhere in u} Then R is an equivalence relation with exactly 2n equivalence classes.

T or F?

Solutions

Expert Solution

First we will prove that R is an equivalence relation. We prove the three properties required:

  • Reflexive: If u is a string on the given alphabet, then each letter in u occurs somewhere in u which implies u is related to itself by R. In other words  . Thus R is reflexive.
  • Symmetric: If u and v are strings on the given alphabet such that each letter in u occurs in v and each letter in v occurs in u, then R(u,v) and R(v,u). In other words . Thus R is symmetric.
  • Transitive: If u, v and w are strings on the given alphabet such that each letter in u occurs in v and each letter in v occurs in u, and each letter in v occurs in w and each letter in w occurs in v then the words in u, v and w are made of the same letters and thus each letter in u occurs in w and each letter in w occurs in u. In other words . Thus R is transitive.

We have proved that R is an equivalence relation, now we will have to find the number of equivalence classes.

For each subset of Σ we have one equivalence class which consists of all the words made only from the alphabets in that particular subset. Since the number of subsets of Σ is , R is an equivalence relation with equivalence classes.


Related Solutions

Let A = Σ*, and let R be the relation "shorter than." Determine whether or not...
Let A = Σ*, and let R be the relation "shorter than." Determine whether or not the given relation R, on the set A, is reflexive, symmetric, antisymmetric, or transitive.
2. Let S be the set of strings over the alphabet Σ = {a, b, c}...
2. Let S be the set of strings over the alphabet Σ = {a, b, c} defined recursively by (1) λ ∈ S and a ∈ S; and (2) if x ∈ S, then bxc ∈ S. Recall that λ denotes the empty string which has no letters and has length 0. List all strings of S which are length at most seven. 3. Prove the following theorem by induction: For every integer n ≥ 1, 1 · 2 +...
Let R be a ring and n ∈ N. Let S = Mn(R) be the ring...
Let R be a ring and n ∈ N. Let S = Mn(R) be the ring of n × n matrices with entries in R. a) i) Let T be the subset of S consisting of the n × n diagonal matrices with entries in R (so that T consists of the matrices in S whose entries off the leading diagonal are zero). Show that T is a subring of S. We denote the ring T by Dn(R). ii). Show...
Let x be a set and let R be a relation on x such x is...
Let x be a set and let R be a relation on x such x is simultaneously reflexive, symmetric, and antisymmetric. Prove equivalence relation.
Let S = {1,2,3,4} and let A = SxS Define a relation R on A by...
Let S = {1,2,3,4} and let A = SxS Define a relation R on A by (a,b)R(c,d) iff ad = bc Write out each equivalence class (by "write out" I mean tell me explicitly which elements of A are in each equivalence class) Hint: |A| = 16 and there are 11 equivalence classes, so there are several equivalence classes that consist of a single element of A.
Let A and B be sets, and let R be a relation from A to B....
Let A and B be sets, and let R be a relation from A to B. Prove that Rng(R^-1) = Dom(R)
Let S be a non-empty set (finite or otherwise) and Σ the group of permutations on...
Let S be a non-empty set (finite or otherwise) and Σ the group of permutations on S. Suppose ∼ is an equivalence relation on S. Prove (a) {ρ ∈ Σ : x ∼ ρ(x) (∀x ∈ S)} is a subgroup of Σ. (b) The elements ρ ∈ Σ for which, for every x and y in S, ρ(x) ∼ ρ(y) if and only if x ∼ y is a subgroup of Σ.
QUERY PROCESSING JOIN 1) Let the schema of a relation r as R(A,B,C), and a relation...
QUERY PROCESSING JOIN 1) Let the schema of a relation r as R(A,B,C), and a relation s has schema S(C,D,E). Relation table r has 40K tuples, relation s has 60K tuples. The block factor of r is 25. The block factor of s is 30. Let the average seek time is t S and average block transfer time is t T . Assume you have a memory that contains M pages, but M< 40K/25 (indicating that s cannot be entirely...
Is P(Σ∗) countable for any finite Σ?
Is P(Σ∗) countable for any finite Σ?
Let A = R x R, and let a relation S be defined as: “(x​1,​ y​1)​...
Let A = R x R, and let a relation S be defined as: “(x​1,​ y​1)​ S (x​2,​ y​2)​ ⬄ points (x​1,​ y​1)​ and (x​2,​ y​2)​are 5 units apart.” Determine whether S is reflexive, symmetric, or transitive. If the answer is “yes,” give a justification (full proof is not needed); if the answer is “no” you ​must​ give a counterexample.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT