Lecture-08 Student
Lecture-08 Student
1 2 3 4 ....
Discrete mathematics
x( | x )
1 Chapter 2
x 1 ?
x
x 1 x ?
RIZOAN TOUFIQ
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
RAJSHAHI UNIVERSITY OF ENGINEERING & TECHNOLOGY
Sets
Section 2.1
Section Summary
Definition of sets
Describing Sets
– Roster Method
– Set-Builder Notation
Some Important Sets in Mathematics
Empty Set and Universal Set
Subsets and Set Equality
Cardinality of Sets
Tuples
Cartesian Product
Introduction
Sets are one of the basic building blocks for the types of
objects considered in discrete mathematics.
– Important for counting.
– Programming languages have set operations.
Set theory is an important branch of mathematics.
– Many different systems of axioms have been used to develop set
theory.
– Here we are not concerned with a formal set of axioms for set
theory. Instead, we will use what is called naïve set theory.
Sets
S = {a,b,c,d}
Order not important
S = {a,b,c,d} = {b,c,a,d}
Each distinct object is either a member or not; listing
more than once does not change the set.
S = {a,b,c,d} = {a,b,c,b,c,d}
Elipses (…) may be used to describe a set without listing all
of the members when the pattern is clear.
S = {a,b,c,d, ……,z }
Roster Method
[a,b] = {x | a ≤ x ≤ b}
[a,b) = {x | a ≤ x < b}
( a, b ] = { x | a < x ≤ b }
( a, b ) = { x | a < x < b }
This is equivalent to
A⊆B and B ⊆A
Proper Subsets
is true.
Venn Diagram
U
B
A
Set Cardinality
Example:
A = {a,b} B = {1,2,3}
A × B = {(a,1),(a,2),(a,3), (b,1),(b,2),(b,3)}
1 2 3 4 ....
x y ( x y ) ?
1
x 1 x ?
x 1 ?
x
x( | x ) ? x y ( x y ) ?
1
1 2 3 4 .... ?
x 1 ?
1 1 1 1 1 ......... ? x