Unit 1 Sec 1
Unit 1 Sec 1
Discrete
Mathematics
Mary Ann Ritzell P. Vega, Ph.D.
Department of Mathematics and Statistics
CSM, MSU-IIT
Goals of Discrete Mathematics as a Course
Discrete mathematics provides the mathematical foundations for
many computer science and engineering courses including data
structures, algorithms, database theory, automata theory, formal
languages, compiler theory, computer security, and operating
systems
❖Five important themes for discussion:
1. mathematical reasoning
Students must understand mathematical reasoning in order to read,
comprehend, and construct mathematical arguments;
Goals of Discrete Mathematics as a Course
2. combinatorial analysis
Students should acquire the problem-solving skill of counting or enumerating objects
3. discrete structures
Students should learn how to work with discrete structures, the abstract
mathematical structures used to represent discrete objects and relationships between
these objects. These discrete structures include sets, permutations, relations, graphs
and trees .
4. algorithmic thinking
T T T
T F F
F T T
F F T
Conditional Statement
The mathematical concept of a conditional statement is
independent of a cause-and effect relationship between hypothesis
and conclusion.
Example 8. The conditional statements
“If Juan has a smartphone, then 2 + 3 = 5” is always true;
“If Juan has a smartphone, then 2 + 3 = 6” is true if Juan does not have a
smartphone, even though 2 + 3 = 6 is false.
Our definition of a conditional statement specifies its truth values; it is not
based on English usage.
Conditional Statement
The if-then construction used in many programming languages is different from that
used in logic. Most programming languages contain statements such as
if p then S, where p is a proposition and S is a program segment (one or more
statements to be executed).When execution of a program encounters such a
statement, S is executed if p is true, but S is not executed if p is false.
EXAMPLE 9 What is the value of the variable x after the statement if 2 + 2 = 4 then x := x + 1
if x = 0 before this statement is encountered? (The symbol := stands for assignment. The
statement x := x + 1 means the assignment of the value of x + 1 to x.)