Equivalence relations and partitions - Discrete Math
- Consider the set of all polynomials with integer coefficients. Define relation on by if and only if for all integers . Which polynomial is in the same equivalence class as ? Answer: because of Fermat's Little Theorem reducing exponents By Fermat's Little Theorem, for any integer and prime , we have . For any integer , this gives us and . Therefore, for all integers . Choice A fails because having congruent coefficients mod 5 is not sufficient—we need the polynomial values to be congruent for all integer inputs. Choices C and D can be verified to fail by checking specific values.
- Let and be two partitions of the set . The partition that corresponds to the equivalence relation (where is the equivalence relation corresponding to ) is: Answer: For , elements and are related iff they are in the same block in BOTH AND . Checking each pair: (1,3) are together in but separate in , so not related in intersection. (2,4) and (2,6) are together in , but only (2,6) are together in . (4,6) are together in but separate in . (3,5) are separate in . Only (2,6) remain together in both partitions. All other elements are isolated. Choice A would be correct only if no pairs were together in both partitions. Choices B and D incorrectly preserve relationships that don't exist in both partitions.
- Let be a relation on defined by if and only if . Which of the following statements about the partition induced by is correct? Answer: The partition has exactly 2 equivalence classes: and First, we compute for each element: , , , , , . Elements are equivalent if their squares have the same remainder mod 4. This gives us two classes: (remainder 1) and (remainder 0). Choice B incorrectly separates elements with the same remainder. Choice C gives the wrong number of classes. Choice D fails to recognize that this relation creates non-trivial equivalences.
- Consider the relation on the set of rational numbers defined by if and only if is an integer. Let denote the equivalence class of under . Which statement about the structure of these equivalence classes is correct? Answer: Each equivalence class contains exactly one rational number in the interval and is countably infinite Two rationals and are equivalent iff , i.e., they have the same fractional part. Each equivalence class consists of all rationals of the form where is the fractional part of and . This means each class contains exactly one representative in and is countably infinite (in bijection with ). Choice A misses that classes are infinite. Choice B misses the unique representative property. Choice C incorrectly describes the cardinality of the quotient set (there are only countably many rationals in ).
- Consider the relation on the set of all polynomials with real coefficients defined by if and only if and . Which statement about is correct? Answer: is an equivalence relation, and polynomials and are in the same equivalence class is reflexive ( and ), symmetric (if and , then and ), and transitive (if and , then and ). For : , . For : , . Since both conditions match, . Choice B incorrectly claims they're in different classes. Choices C and D incorrectly claim is not an equivalence relation.
- A computer science student defines relation on the set of all finite binary strings where if and only if string can be obtained from string by any sequence of the following operations: (1) inserting '01' anywhere in the string, (2) deleting '01' from anywhere in the string. Which statement correctly characterizes the equivalence classes of ? Answer: Each equivalence class contains all strings that reduce to the same substring when all '01' patterns are removed Since we can insert or delete '01' freely, two strings are equivalent iff they have the same 'reduced form' after removing all possible '01' substrings. For example, '1101' reduces to '11' (removing one '01'), and any string equivalent to '1101' must also reduce to '11'. Choice A is wrong because '11' and '101' have the same number of 1s but different reduced forms ('11' vs '1'). Choice B is wrong because length changes arbitrarily with '01' operations. Choice D is wrong because the number of '01' substrings changes during the operations.
- Consider the set with partition . If we define relation on such that if and only if and are in the same block of , and then define a new relation on by if and only if or or , which statement about is correct? Answer: is not an equivalence relation because it lacks transitivity is reflexive (each element relates to itself either through or the condition) and symmetric (if , then by the same reasoning). However, fails transitivity: (since ), (since ), but because and are in different blocks of and neither is . Choice A is wrong about the number of classes. Choice B incorrectly assumes is an equivalence relation and miscalculates the classes. Choice C is incorrect since is symmetric.
- Consider the equivalence relation on defined by if and only if is divisible by 8. Which of the following correctly describes the equivalence classes of this relation? Answer: Three equivalence classes where , , , with distinct classes based on squares modulo 8 Here exactly when , so integers are grouped by the value of their square mod 8. Checking residues: . Only 0, 1 and 4 occur, giving three classes: multiples of 4 (), the odd integers (), and integers that are 2 mod 4 (). Four classes mod 4 is wrong because 1 and 3 are related (). Even versus odd is wrong because 2 and 4 are not related (, not divisible by 8). Eight classes mod 8 ignores that different residues such as 1 and 3 have equal squares.
- Define relation on by if and only if . This relation partitions into equivalence classes. Which statement about the equivalence class containing is true? Answer: The equivalence class is infinite and represents all ordered pairs equivalent to the fraction On , holds exactly when , so each equivalence class is one rational number in all of its fraction forms. (Excluding a second coordinate of 0 matters: would be related to every pair, and transitivity would fail.) The class of is all with , that is : the pairs for every nonzero integer , which is infinitely many. All four listed pairs belong: , , and , so saying only 2 or 3 of them belong miscounts. The class is not finite, and a gcd of 3 is not the test: has gcd 1 and belongs, while has gcd 3 and does not.
- Let be a partition of a set with , , , and . If we define a new relation on by merging and into a single equivalence class while keeping and separate, how many ordered pairs are in the symmetric difference of the original equivalence relation and ? Answer: 12 ordered pairs, representing the new connections between former classes and The original equivalence relation has pairs within each . Relation merges and , so it has all pairs from the original relation plus new pairs where or . The symmetric difference contains only these new pairs: . Choice B incorrectly doubles this count. Choice C miscalculates by including existing internal pairs. Choice D overestimates the total structural change.
- Let and suppose is a partition of where each has exactly 3 elements. If we know that , , and under the equivalence relation corresponding to , what additional relationship must be true? Answer: Either and , or and , with 8 and 6 in different blocks We have (complete). The remaining elements must be split into two blocks of size 3 each. We know and . Each of these pairs needs one more element to complete their respective blocks. The remaining elements are 6 and 8. So either: (i) and , giving us and , or (ii) and , giving us and . In both cases, 6 and 8 are in different blocks. Choices A, B, and C incorrectly suggest that 6 and 8 could be in the same block or that multiple simultaneous relationships are impossible.
- Define relation on by if and only if . If is an equivalence relation, which of the following statements about the equivalence class containing is true? Answer: The equivalence class is , which represents a line with slope 1 A pair is in the class of when , which means . This simplifies to , or , a line with slope 1 that passes through . The set is the line ; it has the right slope but passes through instead of , the result of a sign slip. The set treats the relation as if it required , which gives slope −1. The set adds the second line , whose points are not related to , so it is too large to be the equivalence class.
- Let and define relation on by if and only if . Which of the following statements about is true? Answer: is not an equivalence relation because it fails to be reflexive on all elements of Reflexivity needs for every , that is, . For , , and for , . So and fail, and is not reflexive, which is enough to rule out an equivalence relation. The claim that is reflexive and symmetric but not transitive is false because of its first part: is not reflexive (it is symmetric and also not transitive, since and hold but does not). Symmetry never fails, because implies . The classes , , belong to congruence mod 3, a different relation; under , 1 is not even related to 4, since .
- Let be the relation on where if and only if and have the same remainder when divided by 3, OR both and are greater than 6. Which of the following best describes the partition induced by ? Answer: is not an equivalence relation because it fails transitivity when elements satisfy different conditions Consider (both have remainder 1 mod 3), (both > 6), but since 1 and 8 have different remainders mod 3 and 1 is not > 6. This violates transitivity. The relation combines two different conditions with OR, creating a situation where transitivity fails. Choices B and C incorrectly assume the relation is an equivalence relation and attempt to describe its partition. Choice D makes the same error while misunderstanding how the conditions interact.