Podcast
Questions and Answers
Which of the following best describes a relation between sets?
Which of the following best describes a relation between sets?
- The cardinality (size) of the union of two or more sets.
- A description of how elements within or between sets are associated. (correct)
- A function that maps elements from one set to another.
- A listing of all possible subsets of a given set.
Given set A = {1, 2, 3} and set B = {a, b}, which of the following is a valid binary relation from A to B?
Given set A = {1, 2, 3} and set B = {a, b}, which of the following is a valid binary relation from A to B?
- { 1, 2, 3, a, b }
- { (1, 2), (a, 3) }
- { (1, a, b), (2, a) }
- { (1, a), (2, b), (3, a) } (correct)
If R is a binary relation, what does aRb
signify?
If R is a binary relation, what does aRb
signify?
- a is not related to b under the relation R.
- a is somehow related to Rb.
- a is related to every element in a set called b.
- The ordered pair (a, b) is an element of the relation R. (correct)
Given the relation R = {(1, 2), (2, 3), (1, 4)}, what is the range of R?
Given the relation R = {(1, 2), (2, 3), (1, 4)}, what is the range of R?
Consider a relation R on set A. For R to be reflexive, what condition must be met?
Consider a relation R on set A. For R to be reflexive, what condition must be met?
If a relation R on a set A is symmetric, which of the following must be true?
If a relation R on a set A is symmetric, which of the following must be true?
What is the key condition for a relation R on a set A to be considered antisymmetric?
What is the key condition for a relation R on a set A to be considered antisymmetric?
For a relation to be transitive, what condition must hold true?
For a relation to be transitive, what condition must hold true?
Consider the relation R = {(1, 2), (2, 1), (1, 1), (2, 2)} on the set A = {1, 2}. Which properties does R possess?
Consider the relation R = {(1, 2), (2, 1), (1, 1), (2, 2)} on the set A = {1, 2}. Which properties does R possess?
Which of the following relations on the set of integers is both symmetric and transitive?
Which of the following relations on the set of integers is both symmetric and transitive?
Let R1 = {(1, 2), (2, 3)} and R2 = {(2, 4), (3, 5)} be two relations. What is the composition of R1 and R2 (R2 o R1)?
Let R1 = {(1, 2), (2, 3)} and R2 = {(2, 4), (3, 5)} be two relations. What is the composition of R1 and R2 (R2 o R1)?
Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (2, 3)}, what is R1 ∪ R2?
Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (2, 3)}, what is R1 ∪ R2?
Using the relations R1 and R2 from the previous question, what is R1 ∩ R2?
Using the relations R1 and R2 from the previous question, what is R1 ∩ R2?
Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (1, 1)}, what is R2 - R1?
Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (1, 1)}, what is R2 - R1?
How is a relation between finite sets typically represented using a matrix?
How is a relation between finite sets typically represented using a matrix?
Suppose you have set A = {a, b, c} and a relation R = {(a, b), (b, c), (c, a)}. How would you represent R as a directed graph (digraph)?
Suppose you have set A = {a, b, c} and a relation R = {(a, b), (b, c), (c, a)}. How would you represent R as a directed graph (digraph)?
In the matrix representation of a relation, what does a '1' in the (i, j)-th entry signify?
In the matrix representation of a relation, what does a '1' in the (i, j)-th entry signify?
Given the directed graph representation of a relation, how do you identify if the relation is reflexive?
Given the directed graph representation of a relation, how do you identify if the relation is reflexive?
What visual characteristic in the digraph of a relation indicates symmetry?
What visual characteristic in the digraph of a relation indicates symmetry?
If a relation R is represented by a matrix M, how can you determine if R is reflexive?
If a relation R is represented by a matrix M, how can you determine if R is reflexive?
For a symmetric relation R represented by a matrix M, what property must the matrix possess?
For a symmetric relation R represented by a matrix M, what property must the matrix possess?
Let R be a relation on A = {1, 2, 3} represented by the matrix [[1, 0, 1], [0, 1, 0], [1, 0, 1]]
. Which ordered pairs are in R?
Let R be a relation on A = {1, 2, 3} represented by the matrix [[1, 0, 1], [0, 1, 0], [1, 0, 1]]
. Which ordered pairs are in R?
Consider a relation R where R = {(a, b) | a is a parent of b}. Is this relation symmetric?
Consider a relation R where R = {(a, b) | a is a parent of b}. Is this relation symmetric?
Which of the following relations is most likely to be transitive?
Which of the following relations is most likely to be transitive?
Determine which of the following relations on the set of all people is reflexive:
Determine which of the following relations on the set of all people is reflexive:
Determine which of the following relations on the set of all people is antisymmetric:
Determine which of the following relations on the set of all people is antisymmetric:
If relation R = {(1, 2), (2, 3), (1, 3), (3, 3)} exists on set A = {1, 2, 3}, determine which property does NOT describe relation R.
If relation R = {(1, 2), (2, 3), (1, 3), (3, 3)} exists on set A = {1, 2, 3}, determine which property does NOT describe relation R.
Given a zeroes-one matrix representation of a relation, how is transitivity determined?
Given a zeroes-one matrix representation of a relation, how is transitivity determined?
Given R₁ = {(a, b), (b, c)} and R₂ = {(x, y), (y, z)}, under what circumstances would it be possible to perform R₁ U R₂?
Given R₁ = {(a, b), (b, c)} and R₂ = {(x, y), (y, z)}, under what circumstances would it be possible to perform R₁ U R₂?
For a set A = {1, 2, 3} with relations R = {(1, 2), (2, 3)} and S = {(1, 1), (3, 2)}, find S ∘ R.
For a set A = {1, 2, 3} with relations R = {(1, 2), (2, 3)} and S = {(1, 1), (3, 2)}, find S ∘ R.
If R is a binary relation from A to B, what statement is false?
If R is a binary relation from A to B, what statement is false?
What property must a directed graph follow to visually represent transitivity?
What property must a directed graph follow to visually represent transitivity?
Let A = {1, 2, 3, 4}. Which relation R on A is neither reflexive, symmetric, antisymmetric, nor transitive?
Let A = {1, 2, 3, 4}. Which relation R on A is neither reflexive, symmetric, antisymmetric, nor transitive?
What is the significance of the elements of sets A and B not needing to be listed in any particular arbitrary order?
What is the significance of the elements of sets A and B not needing to be listed in any particular arbitrary order?
If language x is available on computer y, what type of relation does this statement represent?
If language x is available on computer y, what type of relation does this statement represent?
Flashcards
What is a Binary Relation?
What is a Binary Relation?
A relation from set A to set B is a set R of ordered pairs where the first element comes from A and the second from B.
What does aRb mean?
What does aRb mean?
Denoted as aRb, this means that the ordered pair (a, b) is an element of the relation R.
What is the Domain of a Binary Relation?
What is the Domain of a Binary Relation?
The set of all first entries (first coordinates) which occur in the relation.
What is the Range of a Binary Relation?
What is the Range of a Binary Relation?
Signup and view all the flashcards
What is a Binary Relation on a Set?
What is a Binary Relation on a Set?
Signup and view all the flashcards
What is a Reflexive Relation?
What is a Reflexive Relation?
Signup and view all the flashcards
What is a Symmetric Relation?
What is a Symmetric Relation?
Signup and view all the flashcards
What is an Antisymmetric Relation?
What is an Antisymmetric Relation?
Signup and view all the flashcards
What is a Transitive Relation?
What is a Transitive Relation?
Signup and view all the flashcards
Combining Relations
Combining Relations
Signup and view all the flashcards
What is Composition of a Relation?
What is Composition of a Relation?
Signup and view all the flashcards
What is a Digraph?
What is a Digraph?
Signup and view all the flashcards
What is a loop in a digraph?
What is a loop in a digraph?
Signup and view all the flashcards
How can relations be represented using matrices?
How can relations be represented using matrices?
Signup and view all the flashcards
Study Notes
- A relationship between elements of sets is a key aspect when discussing sets.
- Relations can exist within a single set or among multiple sets.
- Relations are descriptive tools for illustrating relationships between objects.
Examples of Relations
- M = {(x,y)| x is married to y} is a relation on the set of people, e.g., if A = {Dingdong, Mateo, Dennis, Daniel }, B = {Sarah, Jenilyn, Marian, Kathryn }, then M = { (Dingdong, Marian), (Mateo, Sarah), (Dennis, Jenilyn) }.
- R = {(x,y) | language x is available on computer y} showcases the relation between sets of languages and computers.
- G = {(x,y) | x < y} gives a relation of pairs where x is less than y.
- H = {(x,y) | y = x3} represents a relation where y is the cube of x.
- I = {(x,y) | x+y = 7} is a relation where the sum of x and y equals 7.
Binary Relations
- A binary relation R from set A to set B is a subset of R ⊆ A × B.
- A binary relation from A to B is a set R of ordered pairs where the first element of each ordered pair is from A, and the second is from B.
- For example: If A = {0,1,2} and B = {a,b}, then R = {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.
- Notation:
- aRb ⇔ (a, b) ∈ R
- aRb ⇔ (a, b) ∉ R
- If R = {(0, a), (0, b), (1,a), (2, b)}, then (0, a) ∈ R and (1, b) ∉ R.
- Domain of a relation includes all first entries of ordered pairs.
- Range includes all second coordinates.
- Example:
- If A = {1,2,3} and B = {1,2,3,4}, and G = {(a,b)| a < b}, then G = {(1,2), (1,3), (1,4),(2,3),(2,4), (3,4)}.
- Dom(G) = {1,2,3}
- Range(G) = {2,3,4}
- A binary relation R on a set A is a subset of A × A or a relation from A to A.
- Ex: If A = {a,b,c}, then R = {(a,a), (a,b), (a,c)} is a relation on A.
- Ex: If A = {1, 2, 3, 4}, then R = {(a,b) | a divides b} is R = {(1,1), (1, 2), (1,3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.
Relations example
- Consider the following relations on Z:
- R₁ = { (a, b) | a≤b}
- R₂ = { (a, b) | a>b }
- R₃ = { (a, b) | a = b or a = −b }
- R₄ = { (a, b) | a = b }
- R₅ = { (a, b) | a = b+1 }
- R₆ = { (a, b) | a + b ≤ 3 }
- Pair containments for each relation:
- R₁ contains (1,1), (1,2), (2,2)
- R₂ contains (2,1), (1,-1)
- R₃ contains (1,1), (1,-1), (2,2)
- R₄ contains (1,1), (2,2)
- R₅ contains (2,1)
- R₆ contains (1,1), (1,2), (2,1), (1,-1)
- List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to B = {0, 1, 2, 3}, where (a, b) ∈ R if and only if of these sets:
- a = b. R1 = {(0,0),(1,1), (2,2), (3,3)}
- a + b = 4. R2 = {(1,3),(2,2), (3,1),(4,0)}
- a > b. R3 = {(1,0), (2,0), (2,1), (3,0),(3,1),(3,2), (4,0),(4,1), (4,2),(4,3)}
Properties of Relations
- Reflexive
- Symmetric
- Antisymmetric
- Transitive
Reflexive Relations
- R is reflexive if and only if (a,a) ∈ R for every element a ∈ A.
- Symbolically: ∀x[x∈A → (x,x) ∈ R]
- R = {(1,1),(2,2), (3,3), (4,4) }
- S= {(Java, Java), (Pascal, Pascal), (C#,C#)}
- Consider the following relations on {1, 2, 3, 4}:
- R₂ = { (1,1), (1,2), (2,1) }
- R3 = { (1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4) }
- R₄ = { (2,1), (3,1), (3,2), (4,1), (4,2), (4,3) }
- R3 is reflexive
Symmetric Relations
- R is symmetric if and only if (b,a) ∈ R whenever (a,b) ∈ R for all (a,b) ∈ A.
- Symbolically: ∀x∀y [(x,y) ∈R → (y,x) ∈ R]
- R = {(1,2), (2,1), (3,4), (4,3), (4,4)}
- S = {printer, ribbon), (ribbon, printer), (pen, paper), (paper, pen)}
Antisymmetric Relations
- A relation R on a set A for all a,b ∈ A, if (a,b) ∈ R and (b,a) ∈ R, then a = b is called antisymmetric.
- Symbolically: ∀x∀y [(x,y) ∈R ∧ (y,x) ∈ R → x = y]
- For all a,b if (a,b) R and a ≠ b, then (b,a) R
- R = {(1,2), (5,6), (3,7),(4,9),(2,2)}
- Ex:
- R₂ = { (1,1), (1,2), (2,1) }
- R3 = { (1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4) }
- R₄ = { (1,1), (2,1), (3,1), (3,2), (4,1), (4,2), (4,3) }
- R2 and R3 are symmetric
- R₄ is antisymmetric
Transitive Relations
- A relation R on a set A is transitive if whenever (a,b) ∈ R and (b,c) ∈ R, then (a,c) ∈ R, for all a,b,c ∈ A.
- Symbolically: VxVy Vz[(x,y) ∈R ∧ (y,z) ∈ R → (x,z) ∈ R ]
- Ex: R = {(1,2), (2,3),(1,3), (3,4), (2,4), (1,4) }
- Given a relation on the set {1, 2, 3, 4}, decide whether it is reflexive, whether it is symmetric, whether it is antisymmetric, and whether it is transitive:
- {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
- Reflexive because (a, a) is in the relation for all a = 1, 2, 3, 4.
- Symmetric because for every (a, b), there is (b, a)
- Not antisymmetric because there is (1, 2) and (2, 1)
- Transitive because while there are (1, 2) and (2, 1), there is also (1, 1) or (2, 2) in the relation.
- {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
- Determine if the relations on the set {1, 2, 3, 4} are reflexive, symmetric, antisymmetric, and transitive:
- {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
- { (2, 4), (4, 2)}
- {(1, 2), (2,2), (2, 3), (3, 4)}
- {(1, 1), (2, 2), (2,4), (3,1), (3, 3), (4, 4)}
Combining Relations
- Given two relations R1 and R2, combine them using set operations:
- R1 ∪ R2
- R1 ∩ R2
- R1 − R2
- R2 − R1
- Ex: A = {1,2,3} and B = {1,2,3,4}
- R1 = {(1,1),(2,2),(3,3)}
- R2 = {(1,1),(1,2),(1,3),(1,4)}
- R1 ∪ R2 ={(1,1), (1,2), (1,3),(1,4),(2,2),(3,3)}
- R1 ∩ R2 ={(1,1)}
- R1 − R2 ={(2,2),(3,3)}
- R2 − R1 ={(1,2), (1,3),(1,4)}
Composition of a Relation
- R is a relation from set A to set B, and S is a relation from B to set C. The composite of R and S has ordered pairs (a, c), where a ∈ A, c ∈ C, and there is an element b ∈ B where (a, b) ∈ R and (b, c) ∈ S. This is denoted S ◦ R.
- Computing the composite of two relations requires finding elements that are the second element of ordered pairs in the first relation and the first element of ordered pairs in the second relation
- Ex: R is the relation from {1, 2, 3} to {1, 2, 3, 4}.
- R = {(1, 1), (1, 4), (2, 3), (3, 1), (3, 4)}
- S is the relation from {1, 2, 3, 4} to {0, 1, 2}.
- S = {(1, 0), (2, 0), (3, 1), (3, 2), (4, 1)}
- S ○ R = { (1,0), (1,1 ), (2,1), (2,2) , (3,0), (3,1)}
Representing Relations Using
- Digraphs
- Matrices
- A directed graph, or digraph, consists of a set V of vertices (or nodes) together with a set E of ordered pairs of elements of V called edges (or arcs).
- The vertex a is the initial vertex of the edge (a,b), and the vertex b is the edge’s terminal vertex.
- An edge of the form (a,a) is called a loop.
- Ex: Draw the directed graph with vertices a, b, c, and d, for relation R = {(a, b), (a, d), (b, b), (b, d), (c, a), (c, b), (d, b)}
- What are the ordered pairs in the relation represented by this directed graph?
- R = {(1, 3), (1, 4), (2, 1), (2, 2), (2, 3), (3, 1), (3, 3), (4, 1), (4, 3) }
Representing Relations Using Matrices
- A relation between finite sets is represented using a zero-one matrix.
- If R is a relation from A = {a1, a2, …, am} to B = {b1, b2, …, bn}:
- The elements can be arbitrarily ordered; when A = B, the same ordering is used.
- The relation R is represented by the m x n matrix MR = [mij], where mij is 1 if (ai, bj) ∈ R, 0 if (ai, bj) ∉ R.
- The matrix representing R has a 1 as its (i,j) entry when ai is related to bj and a 0 if ai is not related to bj.
- Ex: A = {1,2,3} and B = {1,2}. R is the relation from A to B containing (a,b) if a ∈ A, b ∈ B, and a > b. The matrix representing R (assuming the increasing numerical order) is:
- Let A = {1, 2, 3,} and B = {1,2,3,4,5}. The ordered pairs in the relation R represented by the matrix is: R = { (1,2),(2,1),(2,3),(2,4), (3,1), (3,3), (3,5)}.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.