2 - sets,relation and function Flashcards
collection of distinct object or elements
set
An object inside a set is called an element. For example, in the set
above, a is an element of V.
elements
a set having only one elements is called a _______
singleton
a set with no elements at all is called the ______ which is denoted
by { } or ∅.
empty set
A ________ is necessary to determine whether a particular element belongs to
a given set.
membership criterion
two common ways to indicate the members of a set:
a) List all the elements, e.g, {a, e, i, o, u}.
b) Provide some kind of an algorithm or a rule, such as a grammar.
A set is written using curly braces {}. For example, a set of vowels
in the alphabet can be written as: V = {a, e, i, o, u}
notation
To indicate that x is a member of the set S, we write ________
x ∈ S
every element of set A is also an element of set B, we say that A
is a ______ of B, and write ______
Example: A = {a, b}, B = {a, b, c} ⟹ ______
subset, A ⊆ B
If every element of set A is also an element of set B, but B also has
some elements not contained in A, we say that A is a _______
of B and write _____
proper subset, A ⊂ B
four types of operations
union
intersection
set difference
complement
The _____ of two sets A and B is the set of all elements that are
in A, in B, or in both
A ∪ B = {x ∣ x ∈ A or x ∈ B}
Example: A = {1, 2, 3}, B = {3, 4, 5} ⟹ A ∪ B = {1, 2, 3, 4, 5}
union
The intersection of two sets A and B is the set of elements
that are in both A and B
A ∩ B = {x ∣ x ∈ A and x ∈ B}
Example: A = {1, 2, 3}, B = {3, 4, 5} ⟹ A ∩ B = {3}
intersection
Written as A – B, is the set that contains everything
that is in A but not in B.
A − B = {x : x ∈ A and x ∉ B}
Example: A = {1, 3, 9}, B = {3, 5}
A − B = {1, 9}
set difference
Written as Ā or AC is the set containing everything that
is not in A but in the universal set U.
Example: If U = {1, 2, 3, 4, 5} and A = {1, 2}, then:
AC = {3, 4, 5}
complement