Which of these sets are equal?
{x,y,z}, {z,y,z,x}, {y,x,y,z}, {y,z,x,y}
List the elements of each set where N = {1,2,3,...}.
(a) A= { x∈N | 3<x<9}
(b) B= { x∈N | x is even, x<11}
Prove that B∖A=B∩A
(The complement of a set X, X = {x | x∈U and x∉X})
Give some example sets that make the following statements true:
(a) A∩B=A∩C and B≠C
(b) $D∪E=D∪F and E=F
Prove that A∩(B∪C)=(A∩B)∪(A∩C) (Set distributivity law)
Determine the validity of the following argument, using a Venn diagram:
All my friends are musicians.
Link is my friend.
None of my neighbors are musicians.
Therefore Link is not my neighbor.
Which of the following sets are identical?
A={x∣x2−4x+3=0}
B={x∣x2−3x+2=0}
C={x∣x∈N,x<3}
D={x∣x∈N,x is odd, x<5}
E={1,2}
F={1,2,1}
G={3,1}
H={1,1,3}
Find the power set P(A) of A={{a,b},{c},{d,e,f}}
Relations
Some examples:
If A={1,2} and B={a,b,c}, then:
A×B={⟨1,a⟩,⟨1,b⟩,⟨1,c⟩,⟨2,a⟩,⟨2,b⟩,⟨2,c⟩}
A binary relationR from A to B is a subset of A×B
If ⟨a,b⟩∈R, then we can write Rab or aRb.
The former is typically preferred, since it allows us an easy convention for notating relationships with >2 relata, e.g. Rabc, and to notate the negation ¬Rab, using our logical vocabulary.
The inverse relationR−1 is the relation from B to A which consists of the ordered pairs, which, when reversed, belong to R. In symbolic notation: R−1={⟨b,a⟩∣⟨a,b⟩∈R}
Relations can be depicted by graphs. Draw a graph for the following relation R. R={⟨1,2⟩,⟨2,2⟩,⟨2,4⟩,⟨3,2⟩,⟨3,4⟩,⟨4,1⟩,⟨4,3⟩}
What does the inverse R−1 look like?
Relations can also be represented as a table or two dimensional array. What would that look like? Construct one for R.
Relation Composition or product:
Suppose that we have three sets A, B, and C, a relation R defined from A to B, and a relation S defined from B to C. We can define a composition of R and S, written (R∣S) (but sometimes S∘R), as follows. If a is an element of A and c is an element of C, then (R∣S)ac iff there exists some element b in B such that Rab and Sbc. So we have a relation R∣S from a to c iff a is R related to b and b is S related to c.
Let A = {1, 2, 3, 4}, R = {(1, 2), (1, 2), (2, 4), (3, 2)} ----- using () as angle brackets
and S = {(1, 4), (1, 3), (2, 3), (3, 1), (4, 1)}
Find R∣S.
Relations have many interesting properties. Some that we’re interested in include: reflexivity, symmetry, antisymmetry, transitivity, equivalence, and partial and total order.
Construct or name an example for each property.
Consider the following relations on the set A = {1, 2, 3}. R = {(1, 1), (1, 2), (1, 3), (3, 3)} S = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3)} T = {(1, 1), (1, 2), (2, 2), (2, 3)} ∅ = empty relation A×A = universal relation on A
Let l be any collection of sets. Is the subset relation, ⊆, a partial order on l?
Unfamiliar notation: generalized set operation: A1∪A2∪A3∪...∪Am=⋃i=1mRi
The transitive closure of a binary relation R on set A is the smallest relation on A that contains R and is transitive. If R is transitive, then R is the transitive closure.