Course Administrivia: + Introduction (What and Why?)
Course Administrivia: + Introduction (What and Why?)
+
Introduction [What
and Why?]
Welcome!!!
O To the Benchmark Course for the Computer
Science Students….
O Reference:
“Fundamentals of Discrete Structures”, by
Damian Lyons, Christina Papadakis-Kanaris,
Gary Weiss, and Arthur G. Werschulz.
Grading Scheme ☺
Instrument % of grade
Quizzes (5) 10%
Assignments (03) 10%
Practice Sets(05) 0%
Programming Assignment 10%
Midterm Exam (1) 20%
Final exam (1) 50%
Attendance Policy ☺
O Really just short of mandatory.
2 Sets/Relations/Functions 5
3 Logic 3
4 Proof Methods 4
5 Graph 3
Course Style
O Conversational Class Room: We will follow a modified
version of the Modified Moore Method (MMM)
16
Make Groups….
Groups will continue for the whole semester…
Class Web Site
Google Classroom
• Need MAJU ID to access
• [email protected]
• You need to frequently visit the page for
Announcements, Lectures, and Resources
20
Discrete mathematics
What and Why???
O Discrete mathematics is used
O − whenever objects are counted
O − when relationships between finite (or
countable) sets are studied, and
O − when processes involving a finite number
of steps are analysed
The kinds of problems solved
using discrete mathematics…
O How many ways are there to choose a valid password on a computer
system?
O What is the probability of winning a lottery?
O Is there a link between two computers in a network?
O How can I identify spam e-mail messages?
O How can I encrypt a message so that no unintended recipient can read
it?
O What is the shortest path between two cities using a transportation
system?
O How can a list of integers be sorted so that the integers are in
increasing order?
O How many steps are required to do such a sorting?
O How can it be proved that a sorting algorithm correctly sorts a list?
O How can a circuit that adds two integers be designed?
O How many valid Internet addresses are there?
O AND Finally… You have to PROVE each of your ANSWERS ☺
We start with set …
O Set is everywhere …
O the group of all students in our class is a set
O the group of all freshmen in our class is a set
O Some set are subset of another set
O Some sets are disjoint, i.e., have no common
elements
O e.g., the set of freshmen and the set of sophomore
O Operations on sets makes sense too
O union, intersection, complement, …
23
With set, we define relations
Among the set of all students in our
class, some pairs are special …
The pairs have same birthday
The pairs are from same states
The first is older than the second
All are binary relation defined on a set
of students
24
Functions as a special type of relations…
25
Our class: birthday remark
O Some says, “there are at least two students in the
class that are born in the same month (not
necessarily same year).”
O Do you agree ?
O Pigeonhole theorem
O If put n pigeons into
m holes, where n>m,
there is at least a hole
that has more than one
pigeons.
26
With set defined, one is naturally
interested in its size, counting the
number of elements in a set
27
Our class: counting problem
O Simple ones:
O How many students are there in the class, i.e. the
cardinality of the set ?
O How many ways can we elect a representative ?
O How many ways can we elect a representative and a
helper ?
O How many ways can we form studying groups of 2
students (3 students, …) ?
28
Counting is essential for
studying probability, i.e.,
how likely something
happens …
29
Logic: a tool for reasoning
and proving
30
An example
O Your friend’s comment:
O If the birds are flying south and the leaves are
turning, then it must be fall. Falls brings cold weather.
31
An example
O Is her argument sound/valid?
O Suppose the followings are true:
O If the birds are flying south and the leaves are turning,
the it must be fall.
O Falls brings cold weather.
O The leaves are turning but the weather is not cold.
O Can one conclude “the birds are not flying south” ?
32
Reasoning & Proving
O Prove by contradiction
O Assume the birds are flying south,
O then since leaves are turning too, then it must be fall.
O Falls bring cold weather, so it must be cold.
O But it’s actually not cold.
O We have a contradiction, therefore our assumption
that the birds are flying south is wrong.
33
So we have seen a list of topics
…
O Set
O Logic [Proof Techniques]
O Relation, Function
O Counting
34
Discrete structure is
essential for computer
problem solving
35
Problem solving Requires
Determination……..
Problem Solving……Mistakes
O You will make mistakes;
O Accept it.
O This is normal and you learn from them.
O Do not avoid risking making them.
O The Process is MORE important than ANSWER ☺
O “An expert is a man who has made all the mistakes which can
be made in a very narrow field.”Niels Bohr