Discrete Structure 1
Discrete Structure 1
Lecture # 1
Topics
Grading
Today’s Lecture
Discrete Structures
Study of Discrete (individually separate and distinct) Objects
Consisting of Distinct Objects
• How to sort a list of integers? OR How many steps are needed to sort a list
using a given method?
• How to prove that an algorithm works correctly?
• ….
Why Study Discrete Structures???
Ability to understand and create mathematical
arguments
Gateway to more advanced courses
• Algorithms
• Database theory
• Automata theory
• Compiler theory
• Computer security
• Operating system
Topics we’ll study
Logic and Proofs
Mathematical Induction
Sequences and Recursion
Set Theory (used in software engineering and databases)
Functions
Relations
Trees
Course organization
• Class Schedule
• Lecture # 1: Check the Timetable
• Lecture # 2: Check the Timetable
• Text Book
• Susana Epp, Discrete Mathematics with its
Applications, (4th Edition)
• Kenneth H. Rosen, Discrete Mathematics and Its
Applications, 4th Edition
Grading
Project (10%)
Cooperation Policy
Feedback
Bonus Points
Today’s Lecture
Integers:
• Arithmetic Properties
• Powers
• Divisibility
• Primes of Composite Numbers
Rational Numbers
• Equivalent fractions
• Operating with fractions
• Decimals
Irrational Numbers
Real Numbers
• Square roots
• N-th roots
• Logarithms
• Inequalities
Oder of Operations
Numbers
N= {1,2,3, . . .} The set of Natural Numbers
𝓡
numbers
, the set of real number. e.g. Real Space
Q
Z Irrational Numbers
N
Integers
Simple rule of Addition
• For an integer a,
• 0+a = a+0=a
Commutativity
• a+b=b+a
Associativity
• (a + b) + c = a + (b + c)
Integers
Rules of Addition
• If a + b = 0, then b = -a and a = -b
• Proof
a + b =0
Add –a to both sides
-a + a + b=0 – a
0+b=0–a
b=-a
As desired.
• If a + b = a + c, then b = c
Exercise:
Commutativity
• If a and b are integers, then
• a*b=b*a
Associativity
• If a , b and c are integers, then
• (a * b) * c = a * (b * c)
Distributivity
• a * (b + c) = a * b + a * c
• (b + c) * a = b * a + c * a
• -1 * a = -a
• -(a * b) = (-a) * (b) or -(a * b) = a * (-b)
• (-a ) * (-b) = a * b
Integers
Powers
An exponent is used to indicate repeated
multiplication.
Tells how many times the base is used as a
factor.
• a * a = a2
• a * a * a = a3
• (am)n = am * n
• (a + b)2 = a2 + b2 +2ab
• (a - b)2 = a2 + b2 - 2ab
• (a + b) (a - b) = a2 – b2
Integers
Even and Odd integers
An even integer is an integer which can be
written in the form 2n for some integer n
• 2=2*1
• 4=2*2
• 6=2*3
An odd integer is an integer that differs from an even
integer by 1.
It can be written in the form 2m ± 1 for some integer
m.
• 1 = (2 * 1) - 1
• 3 = (2 * 2) - 1
• 7 = (2 * 3) + 1
Integers
Theorem
• Let a , b be integers,
• If a is even and b is also even, then a + b is
also even
• If a is even and b is odd, then a + b is odd
• If a is odd and b is even, then a + b is odd
• If a is odd and b is also odd, then a + b is also
even
Exercise.
• n=1*n
Improper fraction
Proper fraction
• m smaller than n
Rational Numbers
Equivalent Fractions
• =
How can we know whether two fractions are
equivalent?
Theorem:
• or
• or
Let
• such that
• ...
Irrational Numbers
• …
• ...
Irrational Numbers
Is an irrational number?
• No!
• Because
Is an irrational number?
Multiplication
• a*b=b*a
• a * (b * c) = (a * b) * c
• real numbers a, b , c.
Also
• a * (b + c) = a * b + a * c
• (b + c) * a = b * a + c * a
Real Numbers
Absolute Value
• for a positive a.
• for a negative a
(in which case –a is positive).
Real Numbers
Square Roots
If a > 0, then there exists () a number b such
that (s.t).
•
N-th Roots
There exists a unique real number r such
that
•
It is called the n-th root of a, and is
denoted by
• or
Real Numbers
Logarithms
Can be seen as the reverse operation of the
exponentiation.
The logarithm of a number is the exponent to
which another fixed value, the Base must be
raised to produce that number.
• , because 104=10000
• , because 24=16
• , because 3-1=
Logarithms
Properties of Logarithms:
Product:
Quotient:
Power:
Change of Base:
Inequalities
Symbol Meaning Example
> Greater Than (X + 3) > 2 ,
for any X
< Less Than (7X) < 28 ,
X= {…, -2, -1, 0 , 1 , 2 , 3}