Professional Documents
Culture Documents
Set Theory: Week 5
Set Theory: Week 5
Set Theory: Week 5
Chapter 2
Set Theory
Week 5
Acquire
Set theory is the mathematical theory of well-defined collections, called sets, that is
completely described by its elements or members. Its application is utilized mostly in the field of
math and science. We use set theory in our daily life like the collection of songs in our playlist, the
goods in stores are categorized according to the type of items and even ln planning, managing and
operating business.
Example.
Let X be the set of all students at a university.
Let A be the set of students who are first year students,
B the set of students who are second year students,
C the set of students who are in a discrete mathematics course,
D the set of students who are international relations majors,
E the set of students who went to a concert on Monday night
and F the set of students who studied until 2 A.M. on Tuesday.
Express in set theoretic notation the following sets of students:
1. All second year students in the discrete mathematics course.
2. All first year students who studied until 2 A.M. on Tuesday.
3. All students who are international relations majors and went to
the concert on Monday night.
4. All students who studied until 2 A.M. on Tuesday, are second
year students and are not international relations majors.
5. All first and second year students who did not go to the concert
on Monday night but are international relations majors.
6. All students who are first year international relations majors or
who studied until 2 A.M. on Tuesday.
7. All students who are first year or second year who went to a concert on Monday
night .
8. All first year students who are international relations majors or went to a concert on
Monday night.
Write three descriptions of the elements of the set {2, 5, 8, 11, 14}.
{2, 5, 8, 11, 14}
2. { n Є N : n=3 k−1 for some k Є N such that 1 ≤ k ≤ 5 }
3. { n Є Z : n=3 k +2 for some k Є Z such that−1<k <5 }
Definition 2:
The set membership symbol Є is used if it is a member of the set
Otherwise , Ɇ which means not a member of the set.
Example
Definition 3. The set are equal sets if they have exactly the same
members.
Example
Definition 4: The cardinality of a set is its size. In symbolic notation , the size of a set
S is written |S|.
Example.
If Q={1,2,3}
Then the set cardinality is 3 written as |Q| = 3
Set Operations
Definition 5: The intersection of two sets is the collection of all objects that are in both
sets The notation used is ∩.
Example
If Q = {1,2,3,5}, R= {1,3,4,5}, S= {2,3,4,5}
Then,
Q ∩ R= {1,3,5},
Q ∩ S= {2,3,5},
R ∩ S = {3,4,5}
Definition 6: The union of sets is the collection of all objects that are in either set.
The notation used is ∪ .
Example
R ∪ S = {1, 2, 3, 4, 5}
Definition 7: The universal set, at least for a given collection of set theoretic
computations, is the set of all possible objects.
Definition 8: The compliment of a set Q is the collection of objects in the universal set
that are not in Q.
The notation for set Q is Qc .
Qc = {x : ¬(x ∈ Q)}
Example.
Definition 9: The difference of two sets is the collection of objects in the set that is
not found in the other set.
The difference of set Q to set R is written as Q−R .
Q − R = {x : x ∈ (Q ∩ (Rc))},
Or
Q − R = {x : (x ∈ Q) ∧ (x /∈ R)}
Example:
Let Q = {a, b, c, d} and R = {b, d, e}. Then Q – R = {a, c} and R– Q = {e}.
Definition 10: The symmetric difference of two sets is the set of objects that are in
one and only one of the sets. The symmetric difference of sets Q and R is written as
Q∆ R
Example.
If Q = {1,2,3,4,5} and R = {2,4,6}. The symmetric difference between these sets is
Q ∆ R ={1,3,5,6}.
Definition 11: For two sets Q and R we say that Q is a subset of R if each element of
Q is also an element of R.
notation, Q ⊆ R if for all x Q we have x ∈ R .
Example
If M = {a, b, c} then M has eight different subsets:
∅ {a} {b} {c}
{a, b} {a, c} {b, c} {a, b, c}
Notice that M ⊆ M and in fact each set is a subset of
itself. The empty set ∅ is a subset of every set.
Venn Diagram
A Venn diagram uses figures like overlapping circles to illustrate all the possible logical
relations between two or more sets. It is convenient for a learner to visualize information
about similarities and differences of the given sets.
Venn diagram was created by john Venn in
1880 and Clarence Lewis published it in his
book in1918. Venn diagram shows all the
possible relations betweensets even it does
not exist in reality while Euler diagram only
shows the relationship that exists in real life.
Week 6
Application of Set theory
Acquire
Mathematical induction
Mathematical induction is a proof technique used to prove that a proposition is true for
all natural numbers.
The Principle of Mathematical Induction:
If Q is a subset of N (Q⊆N)such that
1. 1∈Q, and
2. For every k∈N, if k∈Q, then (k+1)∈Q.
3. Then Q=N.
Example:
Prove that
1+2+···+n= (½) n(n + 1) for all integer n ≥ 1 .
n
We can rewrite the sum using summation notation ∑i
i=1
The equation becomes,
n
∑ i=¿(½) n(n + 1)
i=1
∑ i=¿(½) n(n + 1)
i=1
1
∑ i=¿(½) 1(1 + 1)
i=1
1= 1
We have shown that it is true if n=1.
If n= k , the equation
n
∑ i=¿(½) k+1((k+1)+ 1)
i=1
k +1
∑ i=¿(½) k+1(k+1+ 1)
i=1
k +1
∑ i=¿(½)( k+1)(k+2)
i=1
Proof:
k +1
∑ i=¿1 + 2 + · · · + k + (k+1)
i=1
∑ i=¿1 + 2 + · · · + k + (k+1)
i=1
Becomes
k +1
∑ i=¿1/2(k 2 + k )+(k+1)
i=1
k +1
∑ i=¿(k 2 + k )/2+(k+1)
i=1
k +1
∑ i=¿(k 2 + k )+2(k+1)]/2
i=1
k +1
∑ i=¿(k 2 + k +2k+2)]/2
i=1
k +1
∑ i=¿(k 2 + 3k+2)]/2
i=1
k +1
∑ i=¿(k +1)(k+2)]/2 or
i=1
k +1
∑ i=¿(½)( k+1)(k+2)
i=1
Conclusion:
Therefore, by mathematical induction the equation
n
∑ i=¿(½) n(n + 1)
i=1
Holds true for all integer n ≥ 1 .
A group of students are working on a project that involves writing a sort program.
Gino and Sarah have each written an algorithm for a function that takes two lists.
List1 and List2 , of length p and q and merges them into a third list, List3.