1 COMP2121 Discrete Mathematics Introduction Hubert Chan [O1 Abstract Concepts] [O2 Proof Techniques] [O3 Basic Analysis Techniques]

Slides:



Advertisements
Similar presentations
5/19/2015CS 2011 CS 201 – Data Structures and Discrete Mathematics I Syllabus Spring 2014.
Advertisements

CS/CMPE 535 – Machine Learning Outline. CS Machine Learning (Wi ) - Asim LUMS2 Description A course on the fundamentals of machine.
About the Course Lecture 0: Sep 2 AB C. Plan  Course Information and Arrangement  Course Requirement  Topics and objectives of this course.
CS 331 / CMPE 334 – Intro to AI CS 531 / CMPE AI Course Outline.
Overview Discrete Mathematics and Its Applications Baojian Hua
MATH 330: Ordinary Differential Equations Fall 2014.
Welcome to CSCA67 Discrete Mathematics for Computer Scientists
CS 581: Introduction to the Theory of Computation Lecture 1 James Hook Portland State University
CSNB143 – Discrete Structure
About the Course Lecture 0: Sep 10 AB C. Plan  Course Information and Arrangement  Course Requirement  Topics and objectives of this course.
CS 103 Discrete Structures Lecture 01 Introduction to the Course
CST 229 Introduction to Grammars Dr. Sherry Yang Room 213 (503)
Introduction to Discrete Mathematics J. H. Wang Sep. 14, 2010.
Course overview Course title: Discrete mathematics for Computer Science Instructors: Dr. Abdelouahid Derhab Credit.
Lecture 5.2: Special Graphs and Matrix Representation CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
Discrete mathematics Kwon, Taekyoung Courtesy of Dr. Michael P. Frank University of Florida.
Course Guide CS 285 Discrete Mathematics Dr. Eng. Manal Farrag Prince Sultan University, College for Women
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
PHY 1405 Conceptual Physics (CP 1) Spring 2010 Cypress Campus.
Discrete Mathematics CS204 Spring CS204 Discrete Mathematics Instructor: Professor Chin-Wan Chung (Office: Rm 3406, Tel:3537) 1.Lecture 1)Time:
Welcome to CMPSC 360!. Today Introductions Student Information Sheets, Autobiography What is Discrete Math? Syllabus Highlights
IT Semester 1 Course Introduction IT Portfolio IT 1140 ( Semester 1) Hong Kong Baptist University IT 1140 – IT Portfolio – Course Introduction.
CPSC 121: Models of Computation Unit 0 Introduction George Tsiknis Based on slides by Patrice Belleville and Steve Wolfman.
Introduction to ECE 2401 Data Structure Fall 2005 Chapter 0 Chen, Chang-Sheng
ICS202 Data Structures King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science Department.
1/10/ Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta Office: CSEB 3043 Phone:
COMP1927 Course Introduction 16x1
CS151 Introduction to Digital Design Noura Alhakbani Prince Sultan University, College for Women.
1 CS 381 Introduction to Discrete Structures Lecture #1 Syllabus Week 1.
Data Structures and Algorithms in Java AlaaEddin 2012.
1 CSC 281 Discrete Mathematics for Computer Science Dr.Yuan Tian Syllabus.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
1.  This course covers the mathematical foundations of computer science and engineering. It provides an introduction to elementary concepts in mathematics.
CIT 592 Discrete Math Lecture 1. By way of introduction … Arvind Bhusnurmath There are no bonus points for pronouncing my last name correctly Please call.
Discrete Structures MT217 Lecture 01. Course Objectives Express statements with the precision of formal logic Analyze arguments to test their validity.
RAIK 283 Data Structures and Algorithms
Lecture 5.4: Paths and Connectivity
Course Overview - Database Systems
Computer Engineering Department Islamic University of Gaza
Networking CS 3470, Section 1 Sarah Diesburg
CS101 Computer Programming I
MATH/COMP 340: Numerical Analysis I
CSc 1302 Principles of Computer Science II
CPT S 317: Automata and Formal Languages
COMP 283 Discrete Structures
Computer Networks CNT5106C
Lecture 5.2: Special Graphs and Matrix Representation
Theory and Practice of Web Technology
CSC 111 Course orientation
Introduction to Programming Spring 2016
Computer Science 102 Data Structures CSCI-UA
CS 201 – Data Structures and Discrete Mathematics I
CS 201 – Data Structures and Discrete Mathematics I
Computer Networks CNT5106C
Course Overview - Database Systems
Welcome to CS 1340! Computing for scientists.
Jeremy Bolton, PhD Assistant Teaching Professor
Welcome to CS 1301! Principles of Programming I.
CMPT 438 Algorithms Instructor: Tina Tian.
Welcome to MAT 142.
CS 281: Discrete Mathematics for Computer Science
26 July 2011 SC 611 Class 1.
Tonga Institute of Higher Education IT 141: Information Systems
First Semester 1439/1440 Welcome 
CPT S 317: Automata and Formal Languages
CPSC 465: Design and Analysis of Algorithms
Σ 2i = 2 k i=0 CSC 225: Proof of the Day
Tonga Institute of Higher Education IT 141: Information Systems
Course Introduction Data Visualization & Exploration – COMPSCI 590
CS 232 Geometric Algorithms: Lecture 1
Presentation transcript:

1 COMP2121 Discrete Mathematics Introduction Hubert Chan [O1 Abstract Concepts] [O2 Proof Techniques] [O3 Basic Analysis Techniques]

2 Teaching Team Hubert Chan Office: CB429 hubert at cs.hku.hk I check my frequently! Teaching Assistants  Chenzi Zhang (CB-LG101, czzhang at cs.hku.hk)  Bintao Sun (CB-LG101, btsun at cs.hku.hk) Please with COMP2121: in subject.

3 Meeting Times  Time Tue: 9:30-10:20AM Fri: 9:30AM-11:20AM  Location Meng Wah Complex Theatre 3

4 Tutorials and Quizzes Tuesday: 9:30AM-10:20AM [Chenzi Zhang, Bintao Sun] There will be 3 quizzes during tutorials

5 Consultation (Optional) Instructor Office Hours Friday: 11:30AM-12:30PM CYC 429 TA Office Hours Chenzi Zhang Tuesday: 10:30AM-11:30AM CYC LG101 Bintao Sun Tuesday: 10:30AM-11:30AM CYC LG101 You can also send us s to arrange appointments.

6 Timetable MonTueWedThuFri 09:30AM- 10:20AM [Tutorial and Quizzes: Chenzi & Bintao] 10:30AM- 11:30AM [Consultation, Chenzi & Bintao] 09:30AM- 11:20AM [Lecture, Hubert] 11:30AM- 12:30PM [Consultation, Hubert]  Outside consultation hours: by appointments

7 Homepage (Moodle) We publish all course materials using moodle. We announce news through moodle. It sends to your hku address. You are encouraged to discuss in the discussion forum. Students are suggested to visit moodle and check their s regularly. Please send us for a prompt response.

8 Textbook(Optional) Discrete Mathematics and Its Applications (6th Edition) Kenneth H. Rosen, McGraw-Hill International Editions. Exercise questions from the book might appear in Quizzes and Exam!

9 Assessment 3-hour final examination + continuous assessment Examination: 50% Continuous assessment: 50%  3 homeworks: 28%  3 quizzes: 22%

10 Homeworks Assignment Box: CYC Building 3/F Late Policy: 1 day late: 50% penalty 2 days late: no marks will be given Assignments should be submitted before 7 pm on the due date. Scheduled assignments (deadlines):  (Sep 30, Nov 18, Dec 2)

11 Plagiarism Plagiarism is the action of using or copying someone else's idea or work and pretending that you thought of it or created it. First Attempt: Students who admit committing plagiarism for the first time shall be warned in writing and receive a zero mark for the component concerned. For those who do not confess, the case would be referred to the Programme Director for consideration. Subsequent Attempt: If students commit plagiarism more than once during the course of studies, the case shall be referred to the Programme Director for consideration. The Programme Director will investigate the case and consider referring it to the University Disciplinary Committee, which may impose any of the following penalties: a published reprimand, suspension of study for a period of time, fine, or expulsion from the University. But discussing with classmates is encouraged!

12 Outcome Based Learning: Objectives [O1 Abstract Concepts] Understand abstract mathematical concepts which are fundamental to computer science, e.g., logic, sets, functions, basic probability, graph theory. [O2 Proof Techniques] Be able to perform abstract thinking and present logical argument using techniques such as mathematical induction, proof by contradiction. [O3 Basic Analysis Techniques] Be able to apply formal reasoning to analyze and enumerate the possible outcomes of a computational problem e.g. model and compute the number of operations using recursion, counting and combinatorics.

13 Topics Logic Sets and relations Counting Probability Graphs

14 Counting problem People in a party shake hands with each other. How many handshakes have been made? Assume n = number of people, (p 1, p 2,…p n ) n = 1, 0 handshake n = 2, 1 handshake, (p 1 and p 2 ) n = 3, 3 handshakes (p 1 and p 2 ), (p 1 and p 3 ), (p 2 and p 3 ) … n = k, ? handshakes

15 Problem Modeling [O1] How can the problem be represented and studied? How people are represented? How handshakes are represented? Person by a dot (vertex, node) Handshake between A and B by a line (edge) joining vertices A and B “GRAPH” REPRESENTATION “Graph” consists of vertices and edges (not charts). For example: A, B, C are in the party A shakes hands with B, and B with C A B C X

16 Counting Handshakes [O3] n = 1, no handshake  A single vertex n = 2, one handshake  A graph with 2 vertices and an edge n = 3, three handshakes  A graph with 3 vertices and 3 edges n = 4, …  A graph with 4 vertices and 6 edges … Number of handshakes = Number of edges Number of handshakes made by a particular person? Degree of a vertex = number of edges (handshakes) adjacent to that vertex (made by that person) degree = 0 degree = 1 degree = 2 degree = 3

17 Maximum Number of Edges in a Graph n = k,  A graph with k vertices and ? edges Degree of every vertex = k -1 (connected to every other vertices, number of handshakes each person has made) Total number of degrees = k (k -1) However there are DOUBLE-COUNTING, because each handshake is done by two persons, i.e, each handshake is counted twice Number of handshakes = k(k -1) / 2

18 Another Handshaking Problem People in a party may not shake hand with everyone. ANOTHER PROBLEM [O2]: Show that there are at least 2 persons who have shaken hands with the same number of people.

19 An Example A, B, C and D are in the party A shakes hands with B B shakes hands with D D shakes hands with C B shakes hands with C C and D have made the same number of handshakes or the same degree (degree-2 vertices), i.e, C and D shake hand with exactly 2 persons. Every graph (with at least 2 vertices) must have two vertices of equal degree. A B C D GRAPH

20 Handshaking problem (case study) Easy to prove for 2 persons For 3 persons, how many cases are there? There are 4 distinct cases Proof by exhaustion (try all cases) For 4 persons, how many distinct cases are there? How can we ensure that we have exhausted all cases? COUNTING is needed.

21 Exhaustion for n = 4 persons No of handshakes No of cases Easy to prove when the number of handshakes is 0 or 1. 2 handshakes: 3 handshakes: 4 handshakes: 5 handshakes:

22 Handshaking Problem This claim is true for any number of persons for any number of handshakes even some people do not shake hands with anyone Graph problem: given n vertices, no matter how the lines (edges) are drawn, there are at least two vertices with the same number of degrees. Proof?

23 Revision Handshaking problem  counting  Solving by exhaustion What did we learn? Why this? To know that  there always exist two people with the same number of handshakes? Any graph must have two equal degree vertices?

24 Revision Knowing that how to count the number of handshakes, every graph has two equal-degree vertices, … is important. However, the most important is to learn … Problem-solving techniques e.g., in programming, to ensure all cases are covered without redundancy Abstraction and problem analysis e.g., problem reduction and how many cases needed to be studied (time complexity) Ability to deduce and prove some facts from observations