Week 2: Sets, Functions, & Relations Flashcards
set
an unordered collection of distinct objects, called elements or members of the set
elements/members
the distinct objects that make up a set
N
natural numbers (positive whole numbers and 0)
Z
positive and negative whole numbers, including 0
Z+
positive numbers > 0 (exclusive)
R
set of real numbers
R+
set of positive real numbers
Q
set of rational number
C
set of complex numbers
Set Builder Notation
ex. O = {x ∈ Z⁺ | x is odd and x < 10}
Roster Method
ex. O = {1, 3, 5, 7, 9}
interval notation
[a,b] = {x | a ≤ x ≤ b}
[a,b) = {x | a ≤ x < b}
(a,b] = {x | a < x ≤ b}
(a,b) = {x | a < x < b}
set equality
Two sets are equal if and only if they have the same elements. We write A = B when A and B are equal
examples: {1,3,5} = {3, 5, 1}
{1,5,5,5,3,3,1} = {1,3,5}
universal set
the set containing everything
currently under consideration
* Sometimes implicit: V = {a,e,i,o,u}, What is U?
* Sometimes explicitly stated.
empty set
- Written as ∅ or {}.
- The empty set is different from a set containing the empty set.
- Notes: ∅ ≠ { ∅ }
subsets
The set A is a subset of B, denoted A ⊆ B, if and only if every
element of A is also an element of B.
proper subsets
If A is a subset of B, but A is not equal to B ( If A ⊂ B, but A ≠ B,)
set cardinality
A set A is finite if there are n distinct elements in A, where n is a
non-negative integer.
* The cardinality of a finite set A, denoted by |A|, is the number of
(distinct) elements of A
power sets
*The power set of A, denoted P(A), is
the set of all subsets of a set A
* Example: A = {a,b}
P(A) = {ø, {a},{b},{a,b}}
If a set A has n elements, then the
cardinality of its power set P(A)
2^n
cartesian product
- product of two sets A and B, denoted as A x B is set of ordered pairs (a, b) where a ∈ A and b ∈ B
- basically combination you can make with element in A/B
- A = {a,b} B = {1,2,3}
A × B = {(a,1),(a,2),(a,3), (b,1),(b,2),(b,3)} - B x A is NOT equal to A x B bc order is switched
set operations: difference
- difference of sets A and B, denoted by A - B, is set containing the elements of A that are NOT in B
- ex. A = {1,2,3,4,5} and B = {4,5,6,7,8}
- A - B = {1,2,3}
- B - A = {6,7,8}
set operations: complement
- if A is a set, complement of A (w/respect to universal set) is denoted by Ā or A^c, is the SET U - A
- If U is the positive integers less than 100 and A = {x | x > 70}.
What is the complement of A? ints from 71 to 99
set operations: intersection
- intersection of A and B, denoted by A ∩ B
- if intersection is empty, A and B are disjoint
- ex. {1,2,3} ∩ {3,4,5} is {3}
- ex. {1,2,3} ∩ {4,5,6} is ∅