470 likes | 750 Views
Introduction to Discrete Mathematics. Lecture 1: Sep 1. Basic Information. Course homepage : http://www.cse.cuhk.edu.hk/~chi/csc2110/ Newsgroup : cuhk.cse.csc2110. at news.cse.cuhk.edu.hk Instructor : Lau, Lap Chi Office hour : W7 (SHB 911) Lectures : M7-8 (ERB LT), W6 (TYW LT)
E N D
Introduction to Discrete Mathematics Lecture 1: Sep 1
Basic Information • Course homepage: http://www.cse.cuhk.edu.hk/~chi/csc2110/ • Newsgroup: cuhk.cse.csc2110. at news.cse.cuhk.edu.hk • Instructor: Lau, Lap Chi • Office hour: W7 (SHB 911) • Lectures: M7-8 (ERB LT), W6 (TYW LT) • Tutors: Chan Yuk Hei, Tom Fung Wai Shing, Isaac Yung Chun Kong, Darek Zhang Zixi, Jesse • Tutorials: H5 (ERB 404) or H6 (EGB 404)
Course Material • Textbook: Discrete Mathematics with Applications (DMA) Author: Susanna S. Epp Publisher: • Reference: Course notes from “mathematics for computer science” http://courses.csail.mit.edu/6.042/spring07/
Course Requirements • Homework, 20% • Midterm, 30% • Course project, 10% • Final Exam, 40% Midterm: Oct 27 (Monday), M7-8
Course Project Pick an interesting mathematical topic, write a report from 5 to 10 pages. 4 students in a group Can use any references, but cite them. Choose 3 groups to present, up to 5% bonus
A Project Tell an interesting story related to mathematics. More about good topic and nice presentation, than mathematical difficulty. • Interesting or curious problems, interesting history • Surprising or elegant solutions • Nice presentation, easy to understand
Checker x=0 Start with any configuration with all men on or below the x-axis.
Checker x=0 Move: jump through your adjacent neighbour, but then your neighbour will disappear.
Checker x=0 Move: jump through your adjacent neighbour, but then your neighbour will disappear.
Checker x=0 Goal: Find an initial configuration with least number of men to jump up to level k.
K=1 x=0 2 men.
K=2 x=0
K=2 x=0 Now we have reduced to the k=1 configuration, but one level higher. 4 men.
K=3 x=0 This is the configuration for k=2, so jump two level higher.
K=3 x=0 8 men.
K=4 x=0
K=4 x=0
K=4 x=0
K=4 x=0
K=4 x=0 Now we have reduced to the k=3 configuration, but one level higher 20 men!
K=5 • 39 or below • 40-50 men • 51-70 men • 71- 100 men • 101 – 1000 men • 1001 or above
Example 1 How to play Rubik Cube? Google: Rubik cube in 26 steps http://blog.sciencenews.org/mathtrek/2007/08/cracking_the_cube.html
Example 2 The mathematics of paper folding http://www.ushistory.org/betsy/flagstar.html http://erikdemaine.org/foldcut/
Example 3 3D-images http://128.100.68.6/~drorbn/papers/PDI/
Project Ideas • Magic tricks • More games, more paper folding, etc • Famous paradoxes • Prime numbers • Game theory http://www.cse.cuhk.edu.hk/~chi/csc2110/project.html Deadline: November 17.
Why Mathematics? Design efficient computer systems. • How did Google manage to build a fast search engine? • What is the foundation of internet security? algorithms, data structures, database, parallel computing, distributed systems, cryptography, computer networks… Logic, number theory, counting, graph theory…
Topic 1: Logic and Proofs How do computers think? Logic: propositional logic, first order logic Proof: induction, contradiction Artificial intelligence, database, circuit, algorithms
Topic 2: Number Theory • Number sequence • Euclidean algorithm • Prime number • Modular arithmetic Cryptography, coding theory, data structures
Topic 3: Counting • Sets • Combinations, Permutations, Binomial theorem • Functions • Counting by mapping, pigeonhole principle • Recursions, generating functions Probability, algorithms, data structures
Topic 3: Counting How many steps are needed to sort n numbers?
Topic 4: Graph Theory • Relations, graphs • Degree sequence, isomorphism, Eulerian graphs • Trees Computer networks, circuit design, data structures
What is discrete mathematics? Logic: artificial intelligence (AI), database, circuit design Number theory: cryptography, coding theory Counting: probability, analysis of algorithm Graph theory: computer network, data structures logic, sets, functions, relations, etc CSC 2100, ERG 2040, CSC 3130, CSC 3160
c b a Pythagorean theorem Familiar? Obvious?
Good Proof c b a Rearrange into: (i) a cc square, and then (ii) an aa & a bb square
Good Proof c b-a c c a b c
b-a b-a Good Proof c b a
Good Proof a b a a b-a b 74 proofs in http://www.cut-the-knot.org/pythagoras/index.shtml
Statement (Proposition) Statement is either True or False True 2 + 2 = 4 Examples: False 3 x 3 = 8 787009911 is a prime Non-examples: Hello. How are you?
P P Q Q P Q P Q Logic Operators
Compound Statement p = “it is hot” q = “it is sunny” It is hot and sunny It is not hot but sunny It is neither hot nor sunny
Exclusive-Or exclusive-or coffee “or” tea How to construct a compound statement for exclusive-or?
Logical Equivalence Two statements have the same truth table De Morgan’s Law De Morgan’s Law
Simplifying Statement A tautology is a statement that is always true. A contradiction is a statement that is always false.
Two Important Things http://appsrv.cse.cuhk.edu.hk/~acmprog/web2008/ Class Photos! Identify your face and send us your name and nicknames