Comp106 - Intro (13 Feb)
Comp106 - Intro (13 Feb)
Discrete Mathematics
for Computer Science and Engineering
• Instructor:
– Yücel Yemez, Eng 139, Office hours: TBA
• Lectures:
– Tue/Th, 8:30-9:40 @ SNA-A43
– Problem session (Tue 17:30-18:40 @ SOS-B10)
• Teaching assistants:
– TBA (check course website)
• Textbook:
– Kenneth H. Rosen, Discrete Mathematics and Its Applications,
McGraw-Hill (8th edition)
• Course webpage:
– Blackboard
Computer Vision (AI)
(what I do as a researcher)
• Attend classes;
• Do your homework assignments (on your own!);
• Attend problem sessions;
• Read your textbook;
• Ask when you don’t understand; do not get lost!
Honor Code
• You are expected to submit your own work in all exams, homeworks and
quizzes.
• While doing homeworks, you can have ideas or tips from others on how
to do things, but you must not exchange any material, work together, or
let others do their work (even partially).
• In exams, all forms of information transfer between students are
prohibited.
• Finally, being a part of a dishonest plot intentionally (for example,
helping others cheat, doing others’ homeworks, giving your homeworks
to others) will also be considered as cheating.
• Please be aware that, in past semesters, a number of students had to
face the Disciplinary Committee for various incidents of academic
dishonesty in computer engineering courses.
Course Objectives
• Discrete Mathematics
– Logic
– Mathematical reasoning, notation, theorems, proofs
– Number theory
• Algorithms
– Problem solving, algorithm design, complexity analysis
• Discrete Structures
– Tools for problem solving and algorithm design
– Relations, finite-state machines, Turing machines
• Applications
Course Outline
• Ch. 1-2: Foundations:
– Logic, propositional logic, sets, functions.
• Ch. 3: Algorithms:
– Complexity of algorithms, integers.
• Ch. 4: Number theory:
– Cryptography, modular arithmetic, prime numbers.
• Ch. 5: Induction & Recursion:
– Mathematical induction, recursive algorithms, recurrence.
• Ch. 9: Relations:
– Representing relations, connectivity analysis, equivalence relations.
• Ch. 13: Modeling Computation:
– Theory of computation, grammars, finite-state machines, Turing machines.
Discrete Mathematics
1 = 1 = (-1)(-1) = - 1 - 1 = -1
What’s wrong?
1 1 1
= - (multiply by )
2 2 2
3
2 =1 (add )
2
“If you are older than 18 years, then you can have a driving license”
“If you can have a driving license, then you are older than 18 years”
or
“If you can’t have a driving license, then you are not older than 18 years”
Mathematical language (Example)
“If you are older than 18 years, then you can have a driving license”
p → q
“If you can have a driving license, then you are older than 18 years”
q → p
“If you can’t have a driving license, then you are not older than 18 years”
┐q → ┐p
Tools: Discrete Structures (Example)
Consider the flight network of an airline company
Problem: Given a task (of any kind), can it be done with a computer?