Professional Documents
Culture Documents
jvb
A Compilation of Modules
August 2023
REPUBLIC OF THE PHILIPPINES SCHOOL OF ENGINEERING AND TECHNOLOGY
J.H. CERILLES STATE COLLEGE Bachelor of Science in Information Technology
MAIN CAMPUS COURSE SYLLABUS
COURSE COURSE
J.H IT 100 Discrete Mathematics TERM 1ST SEMESTER. AY 2023-2024
NUMBER TITLE
COURSE COURSE
3 LECTURE PRE-REQUISITE
CREDITS TYPE
PRE-REQUISITE/CO-
CONTACT HOURS PER WEEK 3 HRS NONE
REQUISITE TO
JHCSC VISION Leading higher education institution serving the ASEAN community with quality, innovative and culture-sensitive
programs.
Provide need-based tertiary and advanced programs in Agriculture, Education and allied fields;
JHCSC MISSION Undertake applied research, extension and production services that yield workable and durable solutions to sector
specific challenges, thus improving the socio-economic well - being of identified communities.
SET GOAL The School of engineering and Technology aims to produce competent professionals equipped with technical skills that meets the
demands of the ASEAN community.
SET OBJECTIVES
BSIT PROGRAM OUTCOMES
GRADUATES ATTRIBUTES GRADUATES OUTCOMES
Analyze the GLOCAL impact of computing information technology on diverse individuals, organizations, and society
Diversified IT Individual Evaluate professional, ethical, legal, security and social issues and responsibilities in the utilization of information technology
Display professional commitment to ethical practices considering the varied cultures in the community
Exhibit ingenuous craftsmanship in all forms of communication with diverse clients in the IT industry
Conversationalist Interact effectively with the computing society through logical writing, presentations, and clear instructions
Utilizes gender fair language in expressing one’s idea in generating effective IT development plan
Engage into IT-based research activities in pursuit of new knowledge and understanding the environment and nature.
Techno- conservationist Generate computing researches aligned to diverse discipline areas of investigation of providing effective technology solutions and ingenuity.
Promote innovative ideas resilient to the changing environments and emerging technologies
Analyze complex problems in identifying and defining the computing requirements appropriate to its solution
Modern Problem Solver Implement computer-based systems and processes to meet desired organizational needs and requirements in different perspective
Integrate appropriate strategies and techniques that uses quality assurance framework in designing solution
COURSE DESCRIPTION:
This course introduces the foundations of discrete mathematics as they apply to computer science. Topics include functions, relations
and sets, basic logic, proof techniques, basics of counting and introduction to digital logic and digital systems.
COURSE LEARNING OUTCOMES:
GRADUATE OUTCOMES INDICATORS DUE DATE
1.
Diversified IT Individual
Conversationalist (K)
WEEK 2
TOPIC 1: SETS: AN OVERVIEW Online discussion and assessment via Synchronous discussions and
Definition of Set exclusive online platforms clarifications on the given
Set Notations Online submission of assignments and topics
Special Sets reports Submission of assignments,
group discussion,
feedbacking.
WEEK 3
Relationship Between Sets Online discussion and assessment via Synchronous discussions and
Cardinality of Set exclusive online platforms clarifications on the given
Power Set Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 4
Set Operations Online discussion and assessment via Synchronous discussions and
Venn Diagram exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 5
TOPIC 2: FUNCTIONS Online discussion and assessment via Synchronous discussions and
Definition of a Function exclusive online platforms clarifications on the given
Domain, Codomain, Image Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 6
Surjections, Injections, Bijections Online discussion and assessment via Synchronous discussions and
exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 7
TOPIC 3: INTRODUCTION TO LOGIC Online discussion and assessment via Synchronous discussions and
Statements exclusive online platforms clarifications on the given
Compound Statements Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 8
Truth Table Online discussion and assessment via Synchronous discussions and
exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 9
SUMMATIVE TEST
MIDTERM EXAM
FINAL:
TOPIC 4: TECHNIQUES IN PROVING Online discussion and assessment via Synchronous discussions and
WEEK 10 Direct Proof exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 11
Contrapositive Online discussion and assessment via Synchronous discussions and
exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 12
Contradiction Online discussion and assessment via Synchronous discussions and
exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 13
Principle of Mathematical Induction Online discussion and assessment via Synchronous discussions and
exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 14
TOPIC 5: BASICS OF COUNTING Online discussion and assessment via Synchronous discussions and
Additive Rule exclusive online platforms clarifications on the given
Multiplicative Rule Online submission of assignments and topics
reports Submission of assignments,
Inclusion and Exclusion group discussion,
Bit Strings feedbacking.
WEEK 15
Combinations Online discussion and assessment via Synchronous discussions and
Permutations exclusive online platforms clarifications on the given
Online submission of assignments and topics
reports Submission of assignments,
group discussion,
feedbacking.
WEEK 16
TOPIC 5: INTRODUCTION TO DIGITAL LOGIC AND DIGITAL Online discussion and assessment via Synchronous discussions and
SYSTEMS exclusive online platforms clarifications on the given
Representations of Combinational Circuits Online submission of assignments and topics
Boolean Algebra reports Submission of assignments,
group discussion,
feedbacking.
WEEK 17
Summative Test
WEEK 18
FINAL EXAM
References:
Date Prepared: ERIC G. LAURON, MSMATH ZENON MATOS, MSIT LINA T. CODILLA, PhD
Instructor Program In-Charge SET Dean VPAA
August 2023
Title Page 1
Course Syllabus 2
Table of Contents 9
2 SETS : AN OVERVIEW 7
2.1 Set Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Set Notations . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Special Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4 Relationship Between Sets . . . . . . . . . . . . . . . . . . . . 17
2.5 Cardinality of a Set . . . . . . . . . . . . . . . . . . . . . . . . 20
2.6 Power Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.7 Set Operations . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.8 Venn Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
APPENDICES 32
References 33
CHAPTER 1
In your previous math class, you may be acquainted with set of numbers
that are separate and individual. Example the set {1, 2, 3} are numbers that
are separate from each other and individual elements. This set is discrete.
We may have also numbers in an interval like (0, 5) wherein between these
two numbers we can still find rational numbers such as 0.5, 34 , 4, etc and some
√
irrational numbers such as 2, π, etc. Hence the interval (0, 5) is not discrete
but continuous.
Therefore, in a sense we can define discrete mathematics as a study of
mathematical structures/objects that can be considered discrete rather than
continuous.
Due to its broad scope which encapsulates as large number of sub-
ject/discipline, we may find it hard to concretely define what discrete math-
ematics is. In a way, discrete math extends to the study of sets, functions,
logic, proving, principles of counting etc.
Assessment 1.1
Name: Date:
Section:
Instruction: Create a summary on the topic ”What is Discrete Math” and
present the difference between discrete and continuous.
Assessment 1.2
Name: Date:
Section:
Instruction: Write an essay that explains the relationship between discrete
mathematics and the information technology. Provide some examples in the
essay where an IT concept has an underlying discrete math concept.
SETS : AN OVERVIEW
2. Summarize basic and advance set notations and as well as common and
special sets.
4. Identify and solve set operations and apply such to create a Venn dia-
gram.
The most fundamental objects we will use in our studies (and really
in all of math) are sets. Much of what follows might be review, but it is
very important that you are fluent in the language of set theory. Most of the
notation we use below is standard, although some might be a little different
than what you have seen before. For us, a set will simply be an unordered
collection of objects. Two sets are equal exactly if they contain the exact same
elements. For example, the set containing all of the vowels in the declaration
of independence is precisely the same set as the set of vowels in the word
“questionably” (namely, all of them); we do not care about order or repetitions,
just whether the element is in the set or not.
Based on this definition, there two criteria for a set. The first criterion
is that a set is a collection. Collection can be any as long as it is not an
abstract. The second criterion is that such collection of objects should be
clearly defined. This means that there should be a clear distinction whether
an object belongs to the set or not.
Example 2.2
The following are examples of a set:
In Example 2.2, these all satisfies the criterion for a set. Note that
municipalities are clearly define. We can distinguish which name of a place is
a municipality or not. For instance, Dumingag is a place and is contained in
the set since Dumingag is a municipality in the Philippines, Caridad is a place
but this is not a municipality, hence it is not contained in the set. Collection
of names of males is also clearly defined.
The following example shows a collection that does not satisfies the set
criteria:
Example 2.3
The following is not a sets:
rule that distinguish which name of a male belongs to the set or does not
belong to the set.
A = {1, 2, 3} .
This is read, ”A is the set containing the elements 1, 2 and 3.” We use curly
braces ”{, }” to enclose elements of a set. We use ”,” to separate the elements
in a set. Sets as usually denoted by uppercase English letters. A distinct
object in a set is referred to as element and is usually denoted by a lowercase
English alphabet.
Some more notation:
a ∈ {a, b, c}
The symbol ”∈” is read ”is in” or ”is an element of.” Thus the above means
that a is an element of the set containing the letters a, b, and c. Note that
this is a true statement. It would also be true to say that d is not in that set:
d∈
/ {a, b, c} .
Be warned:
We write ”x ∈ A” when we wish to express that one of the elements of the set
A is x. For example, consider the set,
A = {1, b, {x, y, z} , ∅} .
A = {0, 2, 4, 6, ...} ,
A = {x ∈ N : x = 2n for some n ∈ N} .
Let’s look at this carefully. First, there are some new symbols to digest:
”N” is the symbol usually used to denote that natural numbers, which we
will take to be the set {1, 2, 3, ...}. Next, the colon, ”:”, is read such that; it
separates the elements that are in the set from the condition that the elements
in the set must satisfy. So putting this all together, we would read the set as,
”the set of all x in the natural numbers, such that there exists some n in the
natural numbers for which x is twice n.” In other words, the set of all natural
numbers, that are even. Here is another way to write the same set,
A = {x ∈ N : x is even} .
symbol). Reading and comprehending sets written in this way takes practice.
Here are some more examples:
Example 2.4
Consider the following sets. Describe each set in statement form and write the
elements of each set in a list.
2. B = {x ∈ N|2 ≤ x < 9}
3. C = x ∈ N| x5 = a for some a ∈ N
4. D = {x ∈ N|x < 1}
Solution:
The sets enumerated in Example 2.4 are all written in a set builder form. We
will describe this set both in statement form and in listing form. Note that all
sets are taken from the natural numbers as indicated by x ∈ N which is read
as x is natural number or shall we say that x is taken from the set of natural
numbers N.
1. The elements of set A is taken from the natural numbers such that such
numbers are in the form of 2b + 1 where b is any natural number. To
illustrate, suppose b = 1 since 1 is a natural number, then x = 2b + 1 =
2(1) + 1 = 3. Hence, when b = 1, then x = 3. To illustrate further,
consider the following table,
b x
1 3
2 5
3 7
4 9
.. ..
. .
12
This implies that x are the odd numbers in the natural numbers except
1. Therefore, we can read the set A as the set of all natural numbers
that are odd except 1. We can list this as
A = {3, 5, 7, 9, 11, · · · } .
2. The elements of set B is also taken from the set of natural numbers.
However, the elements are restricted from 2 inclusive to 9 exclusive.
This mean that the natural numbers that we will get is from 2 until 8
only since 9 is not included. Thus, in statement form, we can say that
set B is a set of natural numbers from 2 inclusive to 9 exclusive. We can
list the elements as
B = {2, 3, 4, 5, 6, 7, 8} .
3. The elements of set C is also taken from the set of natural numbers.
x
However, the elements that we have to select are those in the form a = 5
1
for some natural numbers a. This means that if x = 1, then a = 5
is not
1
included in the set since 5
∈
/ N. This is also the same case for a = 2, 3, 4.
5
But if x = 5, we have a = 5
= 1. Since 1 ∈ N, then 5 ∈ C. To illustrate
further, we have the following table,
x a a is a natural number?
1
1 5
No
2
2 5
No
3
3 5
No
4
4 5
No
5
5 5
=1 Yes
6
6 5
No
7
7 5
No
8
8 5
No
9
9 5
No
10
10 5
=2 Yes
13
4. The elements of set D is also taken from the set of natural numbers.
However, the elements are restricted 1 exclusive. This means that 1 is not
included. However, as we had noted already, the set of natural numbers
started from 1. Hence, D contains no elements. Thus, in statement
form, we can say that set D is a set of natural numbers less than 1. In
listing form,
D = {} .
Aside from N, there are also many fields of numbers where a number
can be taken from. The following are some special sets.
In the theory of Numbers, there are several sets which can be a field.
The following are some of the fields of numbers which we give emphasis as
part of special sets.
not. If we collect all rational numbers that are whole numbers, we call such
number as integers Z. Examples of integers are −5, −6, −10, 0, 3, 7, 1000000,
etc.
In the set of integers, if we collect all positive integers, we call such set
as natural number of counting numbers N.
If we says that x ∈ R, this mean that the element x is a real number.
On the other hand, if x ∈ Z, then x is an integer. Now it is time to associate
this with our sets.
Example 2.5
Consider the following sets. Write the following in a list and in set builder.
1. A: The set of all integers that greater than -5 but less than or equal to
0.
2. B: The set of all real numbers from -6 exclusive to 9 inclusive that are
divisible by 3.
Solution:
Now, for the list of this set, note that x is an integer, that is a whole
number. To say that x is greater than -5 means that -5 is not included.
Therefore,
A = {−4, −3, −2, −1, 0} .
16
2. Set B is taken from the set of real numbers. If y is any arbitrary element
of B, then y ∈ R. Now since y is restricted from -6 to 9, then we say,
y
−6 < y ≤ 9. Finally, since y is divisible by 3, then we say that 3
= z for
some z ∈ Z. Putting this together, we have
n y o
B = y ∈ R : −6 < y ≤ 9 and = z for some integer z. .
3
A = {−3, 0, 1, 3, 6, 9} .
2. The following sets are in a statement form. Write the set in listing form
and set builder form.
17
(a) M : The set of all odd natural numbers less than 15 that are prime.
(b) N : The set of all even integers that less than or equal to 10 but
greater than or equal to -10.
3. The following are a list of the elements of a set. Write it in a set builder
and in a statement form.
Our discussion in sets not only encompass on number. Recall that set
is any collection of clearly define objects. It may not be a number. Consider
the example below:
Example 2.7
Let V be the collection of vowels in the English alphabet. Then we can write
the set V as:
V = {a, e, i, o, u}.
Notice that set A has three elements namely a, b, c. If we write B = {b, a, c},
we can say that A and B contains the same elements. Can we say that A and
B is just the same set? Definitely yes! Two sets are equal if they contain the
same elements. If we have C = {c, b, a}, then C is just the same set as B and
A.
18
However, if we have set D = {a, b}, then can we still say that A and D
is just the same set? Definitely not! This is because, D did not contained the
element c which is in A. But we can note that all elements in D is contained
also in A, that is, a, b ∈ D and a, b ∈ A. In this case we call D as a proper
subset of A. The symbol we used for proper subset is ⊂.
Definition 2.8
Let A and B be sets. If all elements of B is contained in A but not all elements
of A is contained in B, then we say B is a proper subset of A, that is, B ⊂ A.
Example 2.9
Let A = {1, 2, 3, 4, 5} and B = {1, 4, 5}. Since all elements of B is contained
in A but not all elements of A is contained in B, then surely B ⊂ A. Notice
also that C = {2, 3} is a proper subset of A, and D = {1} is also a proper
subset of A.
Theorem 2.11
The following are some properties of a subset:
3. If X ⊆ Y and Y ⊆ Z, then X ⊆ Z.
19
Proof :
1. A ⊂ B 4. ∅ ∈ A 7. 3 ∈ C
2. B ⊂ A 5. ∅ ⊂ A 8. 3 ⊂ C
3. B ∈ C 6. A < D 9. {3} ⊂ B
Solution:
4. False. A has exactly 6 elements, and none of them are the empty set.
This theorem tells us that two sets are equal if they are subsets one of another.
Example 2.14
Consider N and Z+ , where Z+ is the set of all positive integers. Note that
N ⊆ Z+ since all natural numbers are positive integers. Also Z+ ⊆ N since all
positive integers are natural numbers. Hence, N = Z+ .
In the theory of sets, we are often interested to know how many elements
are contained in a set. Knowing the size of a set gives us another approach in
comparing a set a another set. This is called cardinality of a set.
Definition 2.15
Let A be a set. The size of set A, that is the number of elements in a A is
called the cardinality of A. This is denoted as |A|.
Example 2.16
Consider set X = {a, b, c, 1, 2, 3}. If we count the number of elements in
this set, we can see that there are six unique elements contained in X. Thus
|X| = 6.
For sets that have a finite number of elements, the cardinality of the
set is simply the number of elements in the set. Note that the cardinality of
21
Solution:
2. Here |B| = 3. The three elements are the number 1, the set {2, 3, 4},
and the empty set.
Recall that if, A = {a, b, c}, we can have many subsets such as B =
{a, b, c}, E = {a, b}, F = {a, c}, G = {b, c}, H = {a}, I = {b}, and J = {c}.
If we collect all subsets of a set and put them together in a set, we call such a
set as power set.
Definition 2.18
Let A be a set. The collection of all subsets of A is called the power set,
indicated as P(A).
22
Example 2.19
Let A {1, 2, 3}. Find P(A).
read, “C is the union of A and B,” means that the elements of C are exactly the
elements which are either an element of A or an element of B (or an element of
both). For example, if A = {1, 2, 3} and B = {2, 3, 4}, then A ∪ B{1, 2, 3, 4}.
The other common operation on sets is intersection.
23
Definition 2.21
The intersection of sets is the set that contains all the elements that are com-
mon in the all sets.
C =A∩B
and say, “C is the intersection of A and B,” when the elements in C are
precisely those both in A and in B. So if A = {1, 2, 3} and B = {2, 3, 4}, then
A ∩ B = {2, 3}.
Often when dealing with sets, we will have some understanding as to
what “everything” is. Perhaps we are only concerned with natural numbers.
In this case we would say that our universe is N. Sometimes we denote this
universe by U. Given this context, we might wish to speak of all the elements
which are not in a particular set.
Definition 2.22
The complement of a set A is the set B which contains all elements in the
universal set that is not contained in the set A.
B = Ā
when B contains every element not contained in A. So, if our universal set U
is {1, 2, · · · 9, 10}, and A{2, 3, 5, 7}, then Ā = {1, 4, 6, 8, 9, 10}.
Of course we can perform more than one operation at a time. For
example, consider
A ∩ B̄.
24
This is the set of all elements which are both elements of A and not elements
of B. What have we done? We’ve started with A and removed all of the
elements which were in B.
Definition 2.23
Let A, B be sets. The set difference A \ B is the set of all elements in A which
are not contained in B.
A \ B = A ∩ Ā.
The first coordinate comes from the first set and the second coordinate comes
from the second set.
Sometimes we will want to take the Cartesian product of a set with itself, and
this is fine: A × A = {(a, b) : a, b ∈ A} (we might also write A2 for this set).
25
Notice that in A × A, we still want all ordered pairs, not just the ones where
the first and second coordinate are the same. We can also take products of 3
or more sets, getting ordered triples, or quadruples, and so on.
Example 2.25
Consider the following sets:
1. A : x ∈ Z+ : x ≤ 6.
2. B: The set of all positive even numbers less than or equal to 10.
3. C : x ∈ Z : −4 < x < 4.
1. A ∪ C 3. D ∩ E 5. B ∩ D
2. A ∪ E 4. A × D 6. B \ A
Solution:
We can write the sets as:
1. A = {1, 2, 3, 4, 5, 6}
2. B : {2, 4, 6, 8, 10}
4. D : {−1, 1, 3, 5}
5. E : {2, 3, 5}
26
1. A ∪ C
2. A ∪ E
A ∪ E = {1, 2, 3, 4, 5, 6} ∪ {2, 3, 5}
= {1, 2, 3, 4, 5, 6}
3. D ∩ E
D ∩ E = {−1, 1, 3, 5} ∩ {2, 3, 5}
= {3, 5}
4. A × D
A × D = {1, 2, 3, 4, 5, 6} × {−1, 1, 3, 5}
= {(1, −1), (1, 1), (1, 3), (1, 5), (2, −1), (2, 1),
(2, 3), (2, 5), (3, −1), (3, 1), (3, 3), (3, 5),
(4, −1), (4, 1), (4, 3), (4, 5), (5, −1), (5, 1),
(5, 3), (5, 5), (6, −1), (6, 1), (6, 3), (6, 5)}
5. B ∩ D
= (∅)
=A∪B∪C ∪D∪E
= U.
27
6. B \ C
= {4, 6, 8, 10} .
A B
The union of these two sets takes all elements of both sets. In drawing
the Venn diagram for the union, all shade all the region of the sets included
28
in the union. In this case, since we take the union of sets A and B, we shade
all the regions of both sets A and B.
Below is the Venn diagram for intersection.
A B
A B
B−A
In set difference, shade the region of the set that excludes all the in-
tersections. In this case, we have B \ A, we have to shade the region in B
excluding the intersection of B and A.
For more discussions on Venn Diagrams, don’t miss our classes.
29
Assessment 2.1
Name: Date:
Section:
Instruction: Consider the following sets. Write each statement in set builder
form and listing form.
1. I = the set of all positive odd integers less than or equal to 19.
Solution:
Solution:
3. K = the set of all odd counting numbers between 3.5 and 51 inclusively
that are divisible by 3.
Solution:
4. O = the set of all counting numbers less than or equal to 28 that are not
divisible by 4.
Solution:
5. B = the set of all rational numbers that between 2.3 and 83.5 that are
both divisible by 2 and 3.
Solution:
6. A= the set of all real numbers between -15.9 to 16.8 that are both di-
visible by 3 and 5.
Solution:
7. Y = the set of all even natural numbers between 2 to 500 exclusively that
are divisible by 3,5, and 7.
Solution:
30
Assessment 2.2
Name: Date:
Section:
Instruction: Consider the following sets:
2. B = {∅, {0, ∅} , 0} .
Do the following:
Solution:
Solution:
3. Calculate P(P(B)).
Solution:
31
Assessment 2.3
Name: Date:
Section:
Instruction: Consider the following sets:
1. (A ∩ C) \ B
Solution:
2. A \ (A \ B)
Solution:
3. Calculate A ∩ (B \ A).
Solution:
APPENDICES