Professional Documents
Culture Documents
Discrete Structure
Discrete Structure
Discrete Structure
perspective.
Introduction to Discrete Structures and Set
Theory P1
Discrete SET THEORY
- Constituting a separate entity and consisting of - Set theory was developed by mathematicians to
distinct or unconnected elements. be able to talk or discuss about collections of
objects.
Examples of Discrete Data:
- It has turned out to be an invaluable tool for
Number of boys in the class defining some of the most complicated
Number of candies in a packet mathematical structures.
Number of suitcases lost by an airline
SET
Continuous
- A set is a collection of objects.
- Something that is going on or extending without
interruption or break; Examples of a set:
- Unbroken and connected
A deck of cards
Examples of Continuous Data: All students enrolled in IT1103
The collection of all even integers
Height of a person
Time in a race - The objects belonging to the set are called the
Distance traveled by a car elements of the set.
Examples of elements:
2. Given:
Practice: Define Sets using Element Notation
X = {2,4,6,8,10}
Example:
Asked:
The element 18 is an integer, thus, we can
write: Describe the given set using set-builder notation.
Use the lowercase letter n to denote the property
18 ∈ Z variable.
Write the definition of some of the following Answer
elements of some universal sets:
X = {n ∈ Z | n is even, and 2 ≤ n ≤ 10 or X = {n
a) The number 6 is an even integer. ∈ 2Z | 2 ≤ n ≤ 10}
b) The number 5 is an odd integer. Important Notes: Describing Sets
- Use curly braces to designate sets
Methods of Defining or Describing Sets - Use commas to separate set elements
- The variable in the set–builder notation doesn’t
Word description have to be x
- Use ellipses (. . . ) to indicate a continuation of
- Describing a set by using words in a sentence
a pattern established before the ellipses, i.e. {1,
Roster method (listing method) 2, 3, 4, . . . , 100}
- The symbol | is read as “such that”
- Describing a set by listing the elements - An element or member of a set is an object
Set-builder notation method that belongs to the set.
- The symbol ∈ means “is an element of” .
- Describing a set by defining its property - The symbol ∉ means “is not an element of” .
Notation: - Generally, capital letters are used to represent
sets and lowercase letters are used for other
A = { x | x S, P(x) } or objects, i.e. S = {2, 3, 5, 7}
A = { x S | P(x) } - Thus, a ∈ S means a is an element of S
Is 2 ∈ {0, 2, 4, 6}?
(A is the set of all elements x of S, such that x
Is 2 ∈ {1, 3, 5, 7, 9}?
satisfies the property P)
Set Cardinality
- The cardinality of a set is the number of Singleton Set
distinct elements in the set.
- A set with only one element.
- The cardinality of a set A is denoted by n(A)
or |A|. Example:
Example: H={4}
1. Given: n(H) = |H| = 1
Given:
Asked:
Subset
Find the proper subsets.
- Set A is a subset of Set B if and only if every
element in A is also an element in B. Answers:
- It is denoted by A ⊆ B. B⊂A
Example: C⊂A
Given: D⊂A
A = {1,2,3}
B = {0,1,2,3,4,5,6}
Example: Set S = {s,i,r}
Given: Asked:
Let A = {s,i,r} a) Determine P(S).
Proper Superset
Standard Symbols (Denote Sets of Numbers)
- Set A is a proper superset of Set B if Set A is
a superset of Set B and A ≠ B. N : The set of all natural numbers (i.e., all
- It is denoted by A ⊃ B. positive integers)
Z : The set of all integers
Sample:
Z+ : The set of all positive integers
A = {9,14,28} ⊃ B = {9,14} Z* : The set of all nonzero integers
E : The set of all even integers
Q : The set of all rational numbers
Power Set Q* : The set of all nonzero rational numbers
Q+ : The set of all positive rational numbers
- The set of all the subsets of a set.
R : The set of all real numbers
Example: R* : The set of all nonzero real numbers
R+ : The set of all positive real numbers
Given:
C : The set of all complex numbers
C* : The set of all nonzero complex
numbers
Important Notes
- Any set is a subset of itself
- Any set is a subset of the universal set
- The empty set is a subset of every set including
itself
DISCRETE STRUCTURES 1 It is the set of elements common to both
sets.
Set Theory: Operations on Sets Venn diagram
It is denoted by A B.
Set Operations
The intersection of A and B is:
Operation:
A B = {x | x A and x B}
It is a rule or procedure by which one or
more objects are used to obtain another In other words, for an object to be in A B,
object (usually a set or number). it must be a member of both A and B.
Operation on Set: Example:
It is where two sets are combined to Given the sets:
produce a third set.
A = {2,3,4,5}
It is the finding of intersections, unions,
differences and complements of sets. B = {4,5,6,7,8}
C = {3,6,7,8,9}
The union of two sets A and B is the set of Find each of the following sets:
all elements of A together with all elements
a) A B
of B.
b) B C
It is the set of elements belonging to either
of the sets. Answers:
It is denoted by A B. a) A = {2,3,4,5}
b) B = {4,5,6,7,8}
The union of A and B is: c) C = {3,6,7,8,9}
A B = {x | x A or x B} (a) A B = {4,5}
In other words, for an object to be in A B,
it must be a member of either A or B. (b) B C = {6,7,8}
Example:
a) A B = {1,2,3,4,5,6,7,8} = B Asked:
Set Intersection b) B’
c) G – H = {} John Venn
A⊂U
B⊂A