Sets and Relations
Overview
Welcome to the foundational chapter on Sets and Relations, the bedrock upon which much of Discrete Mathematics β and indeed, many advanced topics in Data Science β is built. This chapter is absolutely critical for your Masters in Data Science journey at CMI, as it equips you with the precise language and conceptual tools to formally define, manipulate, and reason about collections of objects (data points, entities) and the connections that exist between them. A strong grasp of these fundamentals is not merely academic; it's a prerequisite for understanding data structures, database theory, graph theory, and the theoretical underpinnings of algorithms and machine learning.
In the CMI context, proficiency in Sets and Relations will directly impact your ability to tackle problem-solving questions. You'll find these concepts permeating various exam topics, from defining sample spaces in probability and characterizing data structures to understanding graph connectivity and formalizing algorithmic logic. This chapter will enable you to describe complex systems with mathematical rigor, ensuring clarity and precision in your data science work.
By mastering the principles laid out here, you will develop the analytical rigor necessary to articulate problems, design solutions, and interpret results in a mathematically sound manner. This foundational knowledge will empower you to build robust models and algorithms, making it an indispensable part of your toolkit for success in both your coursework and future career.
---
Chapter Contents
| # | Topic | What You'll Learn |
|---|-------|-------------------|
| 1 | Set Theory | Define, operate, and represent collections of items. |
| 2 | Relations | Model connections between elements within sets. |
---
Learning Objectives
After studying this chapter, you will be able to:
- Define and perform fundamental operations on sets, including Cartesian products ().
- Analyze and prove properties of sets using formal notation and Venn diagrams.
- Classify and characterize different types of binary relations (e.g., reflexive, symmetric, transitive, equivalence, partial order).
- Represent relations using matrices and digraphs, and determine their properties and closures.
---
Now let's begin with Set Theory...
## Part 1: Set Theory
Introduction
Set theory forms the bedrock of discrete mathematics, providing a fundamental language and framework for organizing, classifying, and reasoning about collections of objects. In the CMI Masters in Data Science curriculum, a solid grasp of set theory is indispensable. It underpins concepts in logic, relations, functions, graph theory, and probability, which are crucial for understanding algorithms, data structures, and statistical models. This unit covers the core definitions, operations, and principles of set theory, focusing on the cardinality of sets and the Principle of Inclusion-Exclusion, which are frequently tested in CMI examinations for their application in counting problems and data analysis scenarios.A set is a well-defined collection of distinct objects, called elements or members of the set. The order of elements in a set does not matter, and duplicate elements are not allowed.
If is an element of set , we write .
If is not an element of set , we write .
---
---
Key Concepts
1. Basic Definitions and Notations
Sets can be described in two primary ways:
Example: The set of even numbers less than 10 is .
Example: The set of all natural numbers less than 10 is .
The universal set, denoted by , is the set of all possible elements under consideration in a particular context. All other sets in that context are subsets of the universal set.
The empty set, denoted by or , is the unique set containing no elements.
A set is a subset of a set , denoted by , if every element of is also an element of .
If and , then is a proper subset of , denoted by .
Two sets and are equal, denoted by , if and only if they have exactly the same elements. This means and .
The power set of a set , denoted by or , is the set of all possible subsets of .
If a set has elements, then its power set has elements.
Worked Example:
Problem: Given the set . Determine its power set.
Solution:
Step 1: Identify the elements of the set .
Step 2: List all subsets, starting with the empty set and single-element subsets.
Step 3: List all two-element subsets.
Step 4: List the set itself (the three-element subset).
Step 5: Combine all identified subsets to form the power set.
Answer: The power set has elements, as listed above.
---
2. Set Operations
The union of two sets and , denoted by , is the set containing all elements that are in , or in , or in both.
The intersection of two sets and , denoted by , is the set containing all elements that are common to both and .
Two sets and are disjoint if their intersection is the empty set, i.e., .
The difference of two sets and , denoted by or , is the set containing all elements that are in but not in .
The complement of a set , denoted by or , is the set of all elements in the universal set that are not in .
The symmetric difference of two sets and , denoted by or , is the set containing all elements that are in or in but not in their intersection (i.e., elements that are in exactly one of the sets).
Alternatively, it can be expressed as:
Properties of Set Operations:
Set operations follow several algebraic laws, analogous to arithmetic operations. Key ones include:
* Commutative Laws:
* Associative Laws:
* Distributive Laws:
* De Morgan's Laws:
These laws are fundamental for simplifying set expressions and proving identities.
---
3. Cardinality of Sets and Inclusion-Exclusion Principle
The cardinality of a set , denoted by , is the number of distinct elements in the set.
For any finite sets and :
Variables:
- = Number of elements in the union of A and B
- = Number of elements in set A
- = Number of elements in set B
- = Number of elements common to A and B
When to use: When finding the total number of elements in the combined region of two sets, especially in survey or counting problems where elements might be counted twice.
For any finite sets , , and :
Variables:
- = Number of elements in the union of A, B, and C
- = Cardinalities of individual sets
- = Cardinalities of pairwise intersections
- = Cardinality of the intersection of all three sets
When to use: For complex counting problems involving three overlapping categories, ensuring each element is counted exactly once.
Other useful cardinality relations:
*
*
*
*
Worked Example:
Problem: In a class of 50 students, 30 like Math, 25 like Physics, and 10 like both. How many students like neither Math nor Physics?
Solution:
Step 1: Define the sets and given cardinalities.
Let be the set of students who like Math.
Let be the set of students who like Physics.
Universal set is the class of students.
Step 2: Use the Inclusion-Exclusion Principle to find the number of students who like Math or Physics (or both).
Step 3: Find the number of students who like neither Math nor Physics by taking the complement of with respect to the universal set.
Answer: students like neither Math nor Physics.
---
---
4. Venn Diagrams
Venn diagrams are visual representations of sets and their relationships, typically using overlapping circles within a rectangle representing the universal set. They are incredibly useful for visualizing set operations and understanding the regions corresponding to different combinations of sets.
The diagram above shows a universal set and three sets . Each distinct region in a Venn diagram corresponds to a unique combination of elements belonging or not belonging to the sets. For example:
* The region where all three circles overlap represents .
* The region inside circle but outside and represents .
* The region outside all circles but inside the rectangle represents .
Understanding how to shade specific regions and translate them into set expressions (and vice versa) is crucial for solving problems involving multiple sets.
---
5. Real Number Intervals
While sets often deal with discrete elements, they can also represent continuous ranges of real numbers, known as intervals. This concept is particularly relevant for problems involving time, duration, or continuous measurements, as seen in some CMI questions.
An interval is a set of real numbers that contains all real numbers lying between any two numbers of the set.
Common types of intervals:
Closed Interval: (includes endpoints)
Open Interval: (excludes endpoints)
Half-Open/Half-Closed Intervals:
*
Set operations like union and intersection apply to intervals as well.
Worked Example:
Problem: Find the intersection of the intervals and .
Solution:
Step 1: Visualize the intervals on a number line.
includes 2 and 7, and all numbers between.
includes numbers strictly greater than 5 up to and including 10.
Step 2: Identify the overlap.
For to be in both intervals, it must satisfy AND .
Combining these conditions:
The lower bound must be the maximum of the lower bounds: . Since is open at 5, the intersection will be open at 5.
The upper bound must be the minimum of the upper bounds: . Since is closed at 7, the intersection will be closed at 7.
Step 3: Write the resulting interval.
Answer: The intersection is .
---
Problem-Solving Strategies
- Translate to Set Notation: For word problems, identify the universal set and define specific sets based on the categories given. Translate phrases like "A or B," "A and B," "A but not B," "neither A nor B," "exactly one of A or B" into their corresponding set operations (, , , , ).
- Draw Venn Diagrams: For problems involving 2 or 3 sets, sketching a Venn diagram can clarify relationships and help visualize the regions you need to count. Label each distinct region with a variable if you're using equations, or directly with counts if known.
- Apply Inclusion-Exclusion: Use the Principle of Inclusion-Exclusion formula for unions of sets to systematically count elements, especially when there are overlaps. Remember to subtract intersections to avoid double-counting and add back the triple intersection for three sets.
- Break Down Complex Regions: If asked for the cardinality of a complex region (e.g., ), express it in terms of simpler intersections and differences for which you have formulas or can derive counts. For example, .
- For Interval Problems: Represent intervals on a number line. This visual aid simplifies finding unions, intersections, and complements of intervals. Pay close attention to whether endpoints are included (closed brackets) or excluded (open parentheses).
---
---
Common Mistakes
- β Confusing Union and Intersection: Students often mix up "or" (union, ) and "and" (intersection, ).
- β Incorrectly Applying Inclusion-Exclusion: Forgetting to subtract intersections or not adding back the triple intersection for three sets.
- β Misinterpreting "Exactly One": Confusing "A or B" with "exactly one of A or B".
- β Errors with Complements: Incorrectly calculating the complement, especially with respect to the universal set.
- β Endpoint Mistakes in Intervals: Incorrectly handling open vs. closed intervals during intersection or union.
- β LCM Errors for Multiples: When dealing with multiples of numbers for set intersections, simply multiplying the numbers instead of finding their Least Common Multiple (LCM).
---
Practice Questions
:::question type="MCQ" question="A survey of 100 students revealed that 60 students like Math, 50 students like Science, and 40 students like History. 30 students like Math and Science, 25 like Math and History, 20 like Science and History, and 10 students like all three subjects. How many students like none of the three subjects?" options=["10","15","20","25"] answer="15" hint="Use the Inclusion-Exclusion Principle for three sets to find the total number of students who like at least one subject, then subtract from the total number of students." solution="Let be the set of students who like Math, for Science, and for History.
We are given:
First, find the number of students who like at least one subject using the Inclusion-Exclusion Principle for three sets:
The number of students who like none of the three subjects is the total number of students minus those who like at least one:
Answer: "
:::
---
Now that you understand Set Theory, let's explore Relations which builds on these concepts.
---
Part 2: Relations
Introduction
Relations are fundamental mathematical structures that describe connections or associations between elements within sets. In the realm of Discrete Mathematics, particularly for a Masters in Data Science, understanding relations is crucial for modeling relationships in data, designing databases, analyzing network structures, and formalizing logical deductions. This topic lays the groundwork for advanced concepts in graph theory, order theory, and the construction of abstract data types.At its core, a relation formalizes the intuitive idea of "being related to." For instance, in a set of people, "is a sibling of" or "is taller than" are relations. In data science, "is connected to" in a social network, "is an instance of" in an object-oriented model, or "is a prerequisite for" in a course catalog are all examples of relations. This chapter will delve into the formal definitions, various properties, and classifications of relations, equipping you with the tools to analyze and apply them effectively in CMI examinations.
A binary relation from a set to a set is a subset of the Cartesian product . If , we say that is related to , often denoted as .
If is a relation from to (i.e., ), it is called a relation on .
---
Key Concepts
1. Definition and Representation of Relations
A relation can be represented in several ways, each offering a different perspective, which is useful for different types of problems.
Ordered Pairs
The most direct way to represent a relation is as a set of ordered pairs.Example:
Let and be the relation " divides " on .
The relation can be written as:
Relation Matrix
For relations on finite sets, a relation matrix (or adjacency matrix) provides a compact representation. If is a relation on , the relation matrix is an binary matrix where the entry is if and otherwise.For a relation on a finite set , the relation matrix is defined by:
Variables:
- = entry in the -th row and -th column of the matrix.
- = elements of the set .
When to use: When the set is finite and its elements are ordered, useful for algorithmic processing of relations.
Worked Example:
Problem: Let and . Represent as a relation matrix.
Solution:
Step 1: Order the elements of . Let .
Step 2: Fill in the matrix entries based on the definition of .
For if , and otherwise.
Answer:
The relation matrix is .
Directed Graph (Digraph)
A relation on a set can be visualized as a directed graph. The elements of are the vertices (nodes) of the graph, and an ordered pair corresponds to a directed edge (arc) from vertex to vertex .Worked Example:
Problem: Let and . Draw the digraph representing .
Solution:
Step 1: Represent each element of as a vertex.
Step 2: Draw an arrow from to for each . A loop is drawn for .
Answer: The diagram above visually represents the relation .
---
2. Properties of Relations
Understanding the properties of relations is crucial for classifying them and predicting their behavior. These properties are frequently tested in CMI.
A relation can possess multiple properties simultaneously. These properties are not mutually exclusive (except for a few specific pairs like symmetric and asymmetric).
a. Reflexivity
A relation on a set is reflexive if every element is related to itself.A relation on a set is reflexive if for every , .
Matrix Representation: All diagonal entries are .
Digraph Representation: Every vertex has a loop.
b. Irreflexivity
A relation on a set is irreflexive if no element is related to itself.A relation on a set is irreflexive if for every , .
Matrix Representation: All diagonal entries are .
Digraph Representation: No vertex has a loop.
c. Symmetry
A relation on a set is symmetric if whenever is related to , then is also related to .A relation on a set is symmetric if for all , if , then .
Matrix Representation: is a symmetric matrix (i.e., , or ).
Digraph Representation: If there is an edge from to , there is also an edge from to .
d. Antisymmetry
A relation on a set is antisymmetric if the only way for to be related to and to be related to is if and are the same element. This is a critical property, often confused with asymmetry.A relation on a set is antisymmetric if for all , if and , then .
Matrix Representation: For , if , then . (Diagonal entries can be or ).
Digraph Representation: For any two distinct vertices , if there is an edge from to , there cannot be an edge from to .
β A common misconception is that symmetric and antisymmetric are opposite. They are not.
β
A relation can be both symmetric and antisymmetric (e.g., the equality relation ).
A relation can be neither symmetric nor antisymmetric (e.g., on ).
A relation is symmetric if .
A relation is antisymmetric if .
e. Asymmetry
A relation on a set is asymmetric if it is both irreflexive and antisymmetric.A relation on a set is asymmetric if for all , if , then .
Matrix Representation: For all , if , then . (This implies for all ).
Digraph Representation: No loops, and if there is an edge from to , there is no edge from to .
f. Transitivity
A relation on a set is transitive if whenever is related to and is related to , then is also related to .A relation on a set is transitive if for all , if and , then .
Matrix Representation: If is computed using Boolean matrix multiplication (where multiplication is replaced by logical AND, and addition by logical OR), then implies . More simply, if there is a path of length 2 from to , there must be a direct edge from to .
Digraph Representation: If there's a path of length two from to (i.e., ), then there must be a direct edge from to .
Worked Example (Properties):
Problem: Consider the relation on the set . Determine if is reflexive, symmetric, antisymmetric, and transitive.
Solution:
Step 1: Check for Reflexivity.
For to be reflexive, all for must be in .
The pairs are .
All these pairs are in .
So, is reflexive.
Step 2: Check for Symmetry.
For to be symmetric, if , then .
Consider . Is ? Yes.
Consider . Is ? Yes.
All other pairs are type, which trivially satisfy symmetry.
So, is symmetric.
Step 3: Check for Antisymmetry.
For to be antisymmetric, if and , then .
Consider and . Here, . But .
This violates the condition for antisymmetry.
So, is not antisymmetric.
Step 4: Check for Transitivity.
For to be transitive, if and , then .
Consider and . We must have . Yes, it is.
Consider and . We must have . Yes, it is.
Consider and . We must have . Yes, it is.
Consider and . We must have . Yes, it is.
Other combinations are similar or involve which only relates to itself.
So, is transitive.
Answer: is reflexive, symmetric, and transitive, but not antisymmetric.
---
---
#
## 3. Special Types of Relations
#
### a. Equivalence Relations
An equivalence relation partitions a set into disjoint subsets called equivalence classes. This concept is fundamental in many areas of mathematics and computer science.
A relation on a set is an equivalence relation if it is:
- Reflexive: For all , .
- Symmetric: For all , if , then .
- Transitive: For all , if and , then .
Let be an equivalence relation on a set . For any , the equivalence class of , denoted by (or simply if is understood), is the set of all elements in that are related to .
The set of all distinct equivalence classes of an equivalence relation on a set forms a partition of . This means:
- Every element of belongs to exactly one equivalence class.
- Any two distinct equivalence classes are disjoint.
- The union of all equivalence classes is .
Worked Example (Equivalence Relation):
Problem: Let and let be the relation on defined by if . Show that is an equivalence relation and find its equivalence classes.
Solution:
Step 1: Check Reflexivity.
For any , , and is divisible by .
So, , which means .
is reflexive.
Step 2: Check Symmetry.
Assume . This means , so for some integer .
Then . Since is an integer, .
So, .
is symmetric.
Step 3: Check Transitivity.
Assume and .
This means and .
So, and for some integers .
Adding these equations:
Since is an integer, .
So, .
is transitive.
Since is reflexive, symmetric, and transitive, it is an equivalence relation.
Step 4: Find Equivalence Classes.
The equivalence classes are determined by the remainder when divided by .
Answer: is an equivalence relation. The equivalence classes are , , and .
#
### b. Partial Order Relations
Partial order relations establish a hierarchy or ordering among elements, not necessarily requiring every pair of elements to be comparable.
A relation on a set is a partial order relation (or partial order) if it is:
- Reflexive: For all , .
- Antisymmetric: For all , if and , then .
- Transitive: For all , if and , then .
A set with a partial order is called a partially ordered set or poset, denoted .
Example:
- The "less than or equal to" relation () on the set of real numbers.
- The "subset of" relation () on the power set of a set.
- The "divides" relation () on the set of positive integers.
π
Total Order Relation
A partial order on a set is a total order relation (or linear order) if for every , either or . That is, every pair of elements is comparable.
Example: The "less than or equal to" relation () on the set of real numbers is a total order. The "divides" relation on integers is not a total order because, e.g., does not divide and does not divide .
---
#
## 4. Operations on Relations
Relations, being sets, can be combined using set operations.
#
### a. Union of Relations
The union of two relations and on a set is . An ordered pair is in if it is in or in .
Let and be relations from to . The union of and , denoted , is defined as:
Property: The union of two equivalence relations is not always an equivalence relation. It might fail transitivity or reflexivity if the sets are different. For example, if and are equivalence relations on , is reflexive and symmetric, but not necessarily transitive.
Consider , , .
.
Here, and , but . Thus, is not transitive.
#
### b. Intersection of Relations
The intersection of two relations and on a set is . An ordered pair is in if it is in both and .
Let and be relations from to . The intersection of and , denoted , is defined as:
Property: The intersection of two equivalence relations is always an equivalence relation.
- Reflexivity: If are reflexive, then and for all . So .
- Symmetry: If , then and . By symmetry of , and . So .
- Transitivity: If and , then , and , . By transitivity of , and . So .
#
### c. Composition of Relations
The composition of relations is analogous to function composition.
Let be a relation from set to set , and be a relation from set to set . The composition of and , denoted , is a relation from to defined as:
Note: The order of composition is crucial. means apply first, then . This is consistent with function notation .
Matrix Multiplication for Composition: If is the matrix for from to , and is the matrix for from to , then the matrix for is given by the Boolean product . Note that some texts define and others . It depends on whether matrix multiplication is (row-column) or (column-row). C.L. Liu uses with standard row-column product.
Worked Example (Composition):
Problem: Let , on , and on . Find .
Solution:
Step 1: Identify pairs and .
We need to find such that and .
Step 2: List potential compositions.
- From :
- This gives .
- From :
- This gives .
Step 3: Collect all resulting pairs.
Answer: .
---
#
## 5. Relation Closures
Sometimes a relation may not possess a desired property (e.g., transitivity). We can add the minimum number of ordered pairs to make it possess that property, resulting in a "closure" of the original relation. This concept is crucial for problems involving "paths" or "reachability."
The reflexive closure of a relation on a set , denoted , is , where is the diagonal relation (identity relation).
The symmetric closure of a relation on a set , denoted , is , where is the inverse of .
The transitive closure of a relation on a set , denoted , is the smallest transitive relation containing . It consists of all pairs such that there is a path of length one or more from to in the digraph of .
where is the -th power of (composition of with itself times). For finite sets, this union terminates.
The concept of "path" and "finitely many applications" in PYQ 1/7 directly relates to the transitive closure of the relation defined by the transformation rules. If can be transformed into , is in the transitive closure of the base transformation relation.
---
---
Problem-Solving Strategies
- Understand Definitions: Be precise with definitions. For example, "antisymmetric" is not the same as "not symmetric."
- Use Counterexamples: To disprove a property (e.g., "not transitive"), find a specific instance that violates the definition.
- General Proofs: To prove a property, use arbitrary elements and follow logical deductions from the definitions.
- Matrix/Digraph Aids: For finite sets, visual representations can help identify properties quickly (e.g., loops for reflexivity, symmetry of matrix, paths for transitivity).
- Boolean Matrix Multiplication for Transitivity: For a relation on a set with elements, . The matrix for can be found using Warshall's algorithm or by computing powers of using Boolean matrix multiplication.
When a problem involves counts of connections (like handshakes, or degree of vertices in a graph), remember the Handshaking Lemma:
The sum of the degrees of all vertices in a graph is equal to twice the number of edges.
This implies that the sum of degrees must always be an even number. This is directly applicable to PYQ 4.
---
Common Mistakes
- β Confusing Symmetric and Antisymmetric: These properties are independent. A relation can be both (e.g., equality), neither (e.g., ), symmetric only (e.g., ), or antisymmetric only (e.g., ).
- β Incorrectly Verifying Transitivity: For transitivity, you must check all pairs and in . It's not enough to find one instance where it holds; you must ensure no counterexample exists. For large relations, this is where matrix methods or Warshall's algorithm become useful.
- β Assuming Union of Equivalence Relations is Equivalence: As shown in the notes, this is false.
- β Errors in Relation Composition Order: means apply first, then . The 'intermediate' element must be related to by and to by .
- β Misinterpreting "Path" in Equivalence Relations: If a relation is defined by a set of transformation rules, "x and y are equivalent if there is a path from x to y" implies that the relation is the transitive closure (and usually also reflexive and symmetric closure) of the base transformations.
---
Practice Questions
:::question type="MCQ" question="Let and be a relation on represented by the matrix:
Which of the following statements about is true?" options=["A. is reflexive and antisymmetric.","B. is symmetric and transitive, but not reflexive.","C. is an equivalence relation.","D. is neither symmetric nor antisymmetric."] answer="C. is an equivalence relation." hint="Convert the matrix to ordered pairs if it helps, then check reflexivity, symmetry, and transitivity." solution="
Step 1: Convert to a set of ordered pairs.
Step 2: Check Reflexivity.
All diagonal elements are 1 ( are all 1).
So, . is reflexive.
Step 3: Check Symmetry.
The matrix is symmetric ().
For example, . .
So, is symmetric.
Step 4: Check Antisymmetry.
For to be antisymmetric, if and , then .
We have and , but .
So, is NOT antisymmetric.
Step 5: Check Transitivity.
We need to check if and .
Consider and . (Holds)
Consider and . (Holds)
Consider and . (Holds)
Consider and . (Holds)
All possible paths of length 2 lead to an existing edge. For example, (using Boolean multiplication).
So, is transitive.
Step 6: Evaluate the options.
- A. is reflexive and antisymmetric. (False, not antisymmetric)
- B. is symmetric and transitive, but not reflexive. (False, is reflexive)
- C. is an equivalence relation. (True, is reflexive, symmetric, and transitive)
- D. is neither symmetric nor antisymmetric. (False, is symmetric)
Therefore, is an equivalence relation.
Answer: \boxed{C. R \text{ is an equivalence relation.}}
"
:::
:::question type="NAT" question="A conference has attendees. Some attendees exchange business cards. Each attendee recorded the number of cards they received. The sum of all recorded numbers is . How many business card exchanges occurred in total?" answer="160" hint="Consider the problem as a graph where attendees are vertices and an exchange is an edge. Each exchange involves two cards." solution="
Step 1: Understand the problem in terms of graph theory.
Let the attendees be vertices of a graph.
Let an exchange of business cards be an edge .
If person A exchanges a card with person B, this implies two cards are exchanged: A gives one to B, and B gives one to A. This is a single edge between A and B in an undirected graph.
Step 2: Relate recorded numbers to graph properties.
Each attendee records the number of cards they received. If A exchanges with B, A receives a card from B, and B receives a card from A.
The number of cards an attendee receives is equal to the number of people they exchanged cards with. This is precisely the degree of the vertex representing that attendee in the graph.
Step 3: Apply the Handshaking Lemma.
The sum of all recorded numbers is the sum of the degrees of all vertices in the graph.
Let be the sum of all recorded numbers.
.
According to the Handshaking Lemma, , where is the total number of edges (business card exchanges).
Step 4: Calculate the total number of exchanges.
Thus, business card exchanges occurred in total.
Answer: \boxed{160}
"
:::
:::question type="MSQ" question="Let and be two equivalence relations on a non-empty set . Which of the following statements is/are true?" options=["A. is always an equivalence relation.","B. is always an equivalence relation.","C. If , , and , then is not transitive.","D. If and are partial orders on , then is always a partial order.""] answer="B,C" hint="Recall the properties of union and intersection of relations. For union, consider a counterexample for transitivity." solution="
Step 1: Evaluate Option A: is always an equivalence relation.
This statement is False. While will be reflexive and symmetric if and are, it is not necessarily transitive.
Consider the counterexample provided in the notes:
Let .
(equivalence relation on ).
(equivalence relation on ).
Then .
We have and . For transitivity, must be in , but it is not.
So, is not transitive, and thus not an equivalence relation.
Step 2: Evaluate Option B: is always an equivalence relation.
This statement is True. As discussed in the notes:
- Reflexivity: If are reflexive, then for all , and . Thus .
- Symmetry: If , then and . Since are symmetric, and . Thus .
- Transitivity: If and , then , and , . Since are transitive, and . Thus .
Step 3: Evaluate Option C: If , , and , then is not transitive.
This statement is True. This is the exact counterexample used for Option A. As shown in Step 1, for these specific relations is not transitive because and , but .
Step 4: Evaluate Option D: If and are partial orders on , then is always a partial order.
This statement is False. A partial order must be reflexive, antisymmetric, and transitive.
While will be reflexive (if is non-empty), it is not necessarily antisymmetric or transitive.
Counterexample for antisymmetry: Let .
(partial order).
(partial order).
.
This union is not antisymmetric because and , but .
Counterexample for transitivity (similar to equivalence relations):
Let .
.
Here, and , but . So it's not transitive.
Final Answer: Options B and C are true.
Answer: \boxed{B,C}
"
:::
:::question type="SUB" question="Let . A relation on is defined as . Find the smallest relation on that contains and is an equivalence relation. List all ordered pairs in ." answer="R' = {(1,1), (2,2), (3,3), (1,2), (2,1), (2,3), (3,2), (1,3), (3,1)}" hint="To make an equivalence relation, you must ensure it is reflexive, symmetric, and transitive. Start by adding pairs for reflexivity, then symmetry, then transitivity. Repeat until all conditions are met." solution="
Step 1: Start with the given relation .
Step 2: Make reflexive.
To be reflexive, all for must be in the relation. Add .
Step 3: Make symmetric.
For every , must also be in .
From , add .
From , add .
At this point, is reflexive and symmetric.
Step 4: Make transitive.
We need to check all pairs and in and ensure is also in .
- and (already present).
- and must be in . Add .
- and (already present).
- and (already present).
- and must be in . Add .
- and (already present).
Let's update the relation after adding and :
Step 5: Re-check symmetry for .
We added , so we need . This was added.
We added , so we need . This was added.
is still symmetric.
Step 6: Re-check transitivity for (newly formed chains).
- and (present).
- and (present).
- and (present).
- and (present).
The relation is now reflexive, symmetric, and transitive.
The smallest equivalence relation containing is .
Answer: \boxed{R' = \{(1,1), (2,2), (3,3), (1,2), (2,1), (2,3), (3,2), (1,3), (3,1)\}}
"
:::
:::question type="NAT" question="Consider the set . How many points in have coordinates where and ?" answer="6" hint="This is a counting problem based on absolute value equations. Break it down by quadrants or cases for ." solution="
Step 1: Understand the given set .
The set consists of integer coordinate points such that .
Step 2: Focus on the condition and .
If and , then and .
The equation becomes .
Step 3: List integer solutions for where and .
Possible pairs are:
- If , then . So .
- If , then . So .
- If , then . So .
- If , then . So .
- If , then . So .
- If , then . So .
Step 4: Count the number of such points.
There are distinct points that satisfy the conditions.
Answer: \boxed{6}
"
:::
:::question type="MCQ" question="Let be the power set of . A relation on is defined as if and only if . Which of the following properties does possess?" options=["A. Reflexive, Symmetric, Not Transitive","B. Reflexive, Antisymmetric, Transitive","C. Irreflexive, Symmetric, Transitive","D. Irreflexive, Antisymmetric, Not Transitive"] answer="B. Reflexive, Antisymmetric, Transitive" hint="Recall the properties of the subset relation ()." solution="
Step 1: Determine the set .
The power set of is .
Step 2: List the relation explicitly.
.
Step 3: Check Reflexivity.
For any , is always true.
So, are all in .
is reflexive.
Step 4: Check Symmetry.
If , does imply ? No, for symmetry, if , then must hold without .
Consider . For to be symmetric, must be in . But .
So, is NOT symmetric.
Step 5: Check Antisymmetry.
If and , then .
This means if and , then . This is a fundamental property of sets.
So, IS antisymmetric.
Step 6: Check Transitivity.
If and , then .
This means if and , then . This is also a fundamental property of sets.
So, IS transitive.
Step 7: Evaluate the options.
- A. Reflexive, Symmetric, Not Transitive (False, not symmetric, is transitive)
- B. Reflexive, Antisymmetric, Transitive (True)
- C. Irreflexive, Symmetric, Transitive (False, is reflexive, not symmetric)
- D. Irreflexive, Antisymmetric, Not Transitive (False, is reflexive, is transitive)
Therefore, is reflexive, antisymmetric, and transitive. This means is a partial order.
Answer: \boxed{B. Reflexive, Antisymmetric, Transitive}
"
:::
---
---
Summary
- Definitions are King: Precisely understand reflexivity, symmetry, antisymmetry, and transitivity. Small nuances (like the "if and only if" vs. "if...then") make a big difference.
- Equivalence vs. Partial Order: Equivalence relations (reflexive, symmetric, transitive) partition a set into disjoint equivalence classes. Partial orders (reflexive, antisymmetric, transitive) establish an ordering, where not all elements need to be comparable.
- Relation Operations: Know how to perform union, intersection, and especially composition. Understand their impact on properties (e.g., intersection of equivalence relations is always an equivalence relation, but union is not).
- Closures: The concept of transitive closure is vital for problems involving "paths" or "reachability."
- Graph Connections: Relations can be represented as digraphs. Concepts like the Handshaking Lemma (sum of degrees is ) are direct applications of relation/graph theory.
---
What's Next?
This topic connects to:
- Graph Theory: Relations are directly represented as graphs. Understanding graph properties, connectivity, and algorithms (e.g., Warshall's algorithm for transitive closure) builds upon relation concepts.
- Abstract Algebra: Equivalence relations are fundamental to constructing quotient sets and defining algebraic structures like groups, rings, and fields modulo an equivalence relation.
- Formal Languages and Automata: Equivalence relations are used to define states in finite automata and minimize them. The concept of "equivalence classes of words" as seen in PYQs often arises here.
- Set Theory: Relations are defined as subsets of Cartesian products, so a strong grasp of set operations and properties is essential.
Master these connections for comprehensive CMI preparation!
Chapter Summary
To excel in CMI, ensure you have a firm grasp of the following essential concepts from Sets and Relations:
- Fundamental Set Operations and Properties: Master the definitions and properties of union (), intersection (), complement ( or ), Cartesian product (), and power set (). Understand how to apply the Principle of Inclusion-Exclusion for calculating cardinalities of unions of finite sets.
- Precise Definitions of Relations: Understand what constitutes a binary relation on a set , and be able to identify its domain, codomain, and range. Practice listing ordered pairs for relations defined by specific rules.
- Properties of Relations: Know the definitions and how to verify if a given relation is reflexive, symmetric, antisymmetric, and transitive. Be prepared to provide counterexamples if a property does not hold.
- Equivalence Relations and Partitions: Recognize that an equivalence relation is one that is reflexive, symmetric, and transitive. Crucially, understand the one-to-one correspondence between equivalence relations on a set and partitions of that set. Be able to find equivalence classes.
- Partial Orders: Understand that a partial order is a relation that is reflexive, antisymmetric, and transitive. Be familiar with concepts like minimal/maximal elements, greatest lower bound (GLB), and least upper bound (LUB), and how to represent partial orders using Hasse diagrams.
- Functions as Special Relations: A function is a relation where every element in is mapped to exactly one element in . Differentiate between injective (one-to-one), surjective (onto), and bijective (one-to-one correspondence) functions.
- Counting Principles for Sets and Relations: Be able to count the number of possible relations, reflexive relations, symmetric relations, and functions (injective, surjective, bijective) between finite sets. This often involves applying combinatorial techniques.
---
Chapter Review Questions
:::question type="MCQ" question="Let . Consider two relations and on .
Which of the following statements about is true?" options=["(A) is reflexive but not symmetric." "(B) is symmetric but not reflexive." "(C) is an equivalence relation." "(D) is neither reflexive nor symmetric."] answer="(A)" hint="First, list the elements of and . Then find . Finally, check its properties: reflexivity, symmetry, and transitivity." solution="Let's first list the elements of and :
. This means and must have the same parity (both even or both odd).
.
Now, let's find :
Let's check the properties of :
For , we need to be in .
All these pairs are present in .
Therefore, is reflexive.
Consider . For to be symmetric, must also be in .
However, (it is in but not in because does not divide ).
Therefore, is not symmetric.
Since is reflexive but not symmetric, it cannot be an equivalence relation (which requires symmetry).
The correct statement is (A).
Let's quickly check transitivity for completeness, though not required by options:
Consider and there is no where .
Consider . There is no where .
It might seem transitive, but let's be careful. If and , then must be in .
For example, and . Then must be in , which it is.
If we had in and in , then would need to be in . But .
The relation is indeed transitive, but since it is not symmetric, it is not an equivalence relation.
The final answer is "
:::
:::question type="NAT" question="Let be a finite set with . What is the number of relations on that are both reflexive and symmetric?" answer="2^{n(n-1)/2}" hint="A relation on is a subset of . Consider the conditions for reflexivity and symmetry on the elements ." solution="Let be a set with . A relation on is a subset of . The total number of possible ordered pairs in is .
Consider the off-diagonal pairs, where . There are such pairs.
These off-diagonal pairs can be grouped into distinct pairs of the form where . For example, if , has 9 pairs.
Diagonal pairs: . (3 pairs)
Off-diagonal pairs: . (6 pairs)
These form 3 sets: , , .
For each of these groups of two distinct off-diagonal pairs , we have two choices for :
* Include both and in .
* Include neither nor in .
We cannot include one without the other, as that would violate symmetry.
So, for the diagonal pairs, there is only 1 choice (they must all be in ).
For the groups of off-diagonal pairs, there are 2 choices for each group.
Therefore, the total number of relations that are both reflexive and symmetric is .
The final answer is "
:::
:::question type="NAT" question="Let . How many functions are there such that is injective and for all ?" answer="265" hint="An injective function from to is a permutation. The condition means it's a derangement. Recall the formula for derangements." solution="The set has elements.
A function that is injective (one-to-one) is also surjective (onto) when the domain and codomain are the same finite set. Such a function is called a permutation of .
The condition for all means that is a derangement. A derangement is a permutation where no element is mapped to itself.
The number of derangements of a set of elements, denoted by or , is given by the formula:
For , we need to calculate :
The final answer is "
:::
:::question type="NAT" question="Let . How many non-empty proper subsets of contain exactly 3 even numbers?" answer="320" hint="Break the problem into choosing even numbers and choosing odd numbers. Remember the conditions: non-empty and proper." solution="Let .
The even numbers in are , so .
The odd numbers in are , so .
We are looking for the number of subsets such that:
Let's construct such a subset .
Step 1: Choose the even numbers for .
Since must contain exactly 3 even numbers, we choose 3 elements from the set .
The number of ways to do this is .
Step 2: Choose the odd numbers for .
The remaining elements of (if any) must be chosen from the set . We can choose any number of odd elements (from 0 to all ).
For each of the 5 odd numbers in , we have two choices: either include it in or not.
The number of ways to choose odd numbers for is .
Step 3: Combine the choices.
The total number of subsets that contain exactly 3 even numbers is the product of the choices from Step 1 and Step 2:
Step 4: Check the conditions (non-empty and proper subset).
* Non-empty: Any subset constructed this way will always contain 3 even numbers, so it will have at least 3 elements. Thus, all 320 subsets are non-empty.
* Proper subset: A subset is proper if . The set contains 5 even numbers. Since all our constructed subsets contain exactly 3 even numbers (which is not 5), none of these subsets can be equal to . Thus, all 320 subsets are proper subsets.
Therefore, the number of non-empty proper subsets of that contain exactly 3 even numbers is 320.
The final answer is "
:::
---
What's Next?
You've mastered Sets and Relations! This foundational chapter is critical for many advanced topics in mathematics, especially those emphasized in the CMI entrance exam.
Key connections and next steps:
Building on Functions: The concept of functions as special relations is fundamental. Your next steps will involve a deeper dive into properties of functions (e.g., composition, inverse, specific types like permutations and derangements), and advanced counting techniques for functions.
Combinatorics: Sets and Relations are the bedrock of Combinatorics. The counting principles you've learned here (like inclusion-exclusion, counting subsets, relations, and functions) directly apply to permutations, combinations, partitions, and other advanced combinatorial problems. Prepare to tackle problems involving binomial coefficients, generating functions, and recurrence relations.
Discrete Structures: This chapter provides essential building blocks for other discrete mathematical structures. For instance, relations are generalized to graphs (where vertices are related by edges), and partially ordered sets (posets) lead to the study of lattices, which are important in various areas of theoretical computer science and logic.
Mathematical Proofs: The rigorous definitions and property checks in Sets and Relations offer excellent practice in constructing formal mathematical proofs and understanding logical arguments, skills that are indispensable for CMI.