COS 341 Discrete Mathematics

Similar documents
Administrative Information. COS 341 Discrete Mathematics. Administrative Information. Discussion Sessions/Office Hours

Discrete Mathematics. Spring 2017

Math/EECS 1028M: Discrete Mathematics for Engineers Winter Suprakash Datta

Introduction to CS 4104

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

Introduction Propositional Logic

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

Induction. Announcements. Overview. Defining Functions. Sum of Squares. Closed-form expression for SQ(n) There have been some corrections to A1

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

CS Module 1. Ben Harsha Apr 12, 2017

CSE 421 Algorithms. Richard Anderson Autumn 2015 Lecture 1

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

EECS 1028 M: Discrete Mathematics for Engineers

CS 340: Discrete Structures for Engineers

Computational Models

Discrete Mathematics. Spring 2017

Today s Menu. Administrativia Two Problems Cutting a Pizza Lighting Rooms

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

MAT 300 RECITATIONS WEEK 7 SOLUTIONS. Exercise #1. Use induction to prove that for every natural number n 4, n! > 2 n. 4! = 24 > 16 = 2 4 = 2 n

Strong Mathematical Induction

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

Mathematical Induction. Section 5.1

Discrete Mathematics & Mathematical Reasoning Course Overview

Fall 2017 November 10, Written Homework 5

1.1 Administrative Stuff

Basic Proof Examples

Support for UCL Mathematics offer holders with the Sixth Term Examination Paper

Trinity Christian School Curriculum Guide

MATH 2200 Final LC Review

1.1 Inductive Reasoning filled in.notebook August 20, 2015

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

Discrete Mathematics for CS Fall 2003 Wagner Lecture 3. Strong induction

Course Staff. Textbook

Slides for a Course Based on the Text Discrete Mathematics & Its Applications (5 th Edition) by Kenneth H. Rosen

Mathematics Without Calculations It s a Beautiful Thing!

Solutions to Assignment 1

UC DAVIS. Circuits I Course Outline

21 Induction. Tom Lewis. Fall Term Tom Lewis () 21 Induction Fall Term / 14

Lecture 3.2: Induction, and Strong Induction

CSEP 521 Applied Algorithms. Richard Anderson Winter 2013 Lecture 1

MATH 137 : Calculus 1 for Honours Mathematics. Online Assignment #2. Introduction to Sequences

Physics 2D Lecture Slides Lecture 1: Jan

Fall 2017 September 20, Written Homework 02

Welcome to Physics 161 Elements of Physics Fall 2018, Sept 4. Wim Kloet

Carmen s Core Concepts (Math 135)

Sums of Squares. Bianca Homberg and Minna Liu

Climbing an Infinite Ladder

Preparing for the CS 173 (A) Fall 2018 Midterm 1

MATH 2200 Final Review

Discrete Math in Computer Science Solutions to Practice Problems for Midterm 2

ICS141: Discrete Mathematics for Computer Science I

PRINCIPLE OF MATHEMATICAL INDUCTION

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Homework #2 solutions Due: June 15, 2012

With Question/Answer Animations

Climbing an Infinite Ladder

Recursion: Introduction and Correctness

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

CS 172: Computability and Complexity. Introduction and Course Overview. Sanjit A. Seshia EECS, UC Berkeley

Sum of Squares. Defining Functions. Closed-Form Expression for SQ(n)

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

CSE 20 DISCRETE MATH. Winter

HOMEWORK #2 - MATH 3260

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

CS173 Lecture B, November 3, 2015

Welcome to Physics 202

Section Summary. Proof by Cases Existence Proofs

International Mathematics TOURNAMENT OF THE TOWNS

CSE 548: (Design and) Analysis of Algorithms

7.2 Applications of Euler s and Fermat s Theorem.

Fall 2014 CMSC250/250H Midterm II

arxiv: v1 [math.co] 27 Aug 2015

EECS 1028 M: Discrete Mathematics for Engineers

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

Greedy Algorithms. CSE 101: Design and Analysis of Algorithms Lecture 9

Ph 1a Fall General Information

CSE 311: Foundations of Computing. Lecture 14: Induction

MATH 215 Final. M4. For all a, b in Z, a b = b a.

CS 581: Introduction to the Theory of Computation! Lecture 1!

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Induction and recursion. Chapter 5

CS1800: Mathematical Induction. Professor Kevin Gold

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Problem One: Order Relations i. What three properties does a binary relation have to have to be a partial order?

Physics 2D Lecture Slides Lecture 1: Jan

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

IS 709/809: Computational Methods for IS Research. Math Review: Algorithm Analysis

Chemistry 8 Principles of Organic Chemistry Spring Semester, 2013

GEOLOGY 100 Planet Earth Spring Semester, 2007

CS280, Spring 2004: Prelim Solutions

CS1800 Discrete Structures Fall 2016 Profs. Gold & Schnyder April 25, CS1800 Discrete Structures Final

CSE 311: Foundations of Computing I. Lecture 1: Propositional Logic

Transcription:

COS 341 Discrete Mathematics 1

Administrative Information http://www.cs.princeton.edu/courses/archive/fall02/cs341/ Professor: Moses Charikar moses@cs.princeton.edu 305 CS building, 8-7477 Secretary: Mitra Kelly mkelly@cs.princeton.edu 323 CS Building, 8-4562 Teaching Assistants: Adriana Karagiozova karagioz@cs.princeton.edu 414 CS Building, 8-5388 Renato Werneck rwerneck@princeton.edu 314 CS Building, 8-5135 2

Administrative Information Required text: Invitation to Discrete Mathematics Jiri Matousek and Jaroslav Nesetril Reference: Discrete Mathematics and its Applications Kenneth Rosen All handouts posted on web page Class mailing list Homeworks assigned every Wed., due in class next Wed. Grading: 9-10 homeworks (80%), take-home final (20%) Collaboration policy 3

Discussion Sessions/Office Hours Discussion Sessions in addition to office hours (perhaps) Times announced next week on basis of student choices My office hours for next week: Tue, 2:00-4:00 pm 4

What is Discrete Mathematics? Mathematics dealing with finite sets Topics: counting, combinatorics, graph theory, probability Goals: Develop mathematical maturity Foundation for advanced courses in Computer Science Flavor of questions: How many valid passwords on a computer system? What is the probability of winning a lottery? What is the shortest path between two cities? 5

Toy problems as illustrations Puzzle: Three houses, three wells: Can we connect each house to each well by pathways so that no two pathways cross? Real world problem: VLSI: Given placement of components of circuit on a board, is it possible to connect them along a board so that no two wires cross? 6

Proof techniques 7

Evidence vs. Proof pn ( n n 2 ) = + + 41 Claim: n Ν, p( n) is prime 8

Evidence p(0) = 41 prime p(1) = 43 prime p(2) = 47 prime p(3) = 53 prime p (20) = 461 prime looks promising! p (39) = 1601 prime must be true! 9

Only prime numbers? n Ν, p n = n + n+ 2 ( ) 41is prime Cannot be a coincidence Hypothesis must be true! But it is NOT! p (40) = 1681 is NOT PRIME 10

Evidence vs. Proof Euler s conjecture (1769): a + b + c = d 4 4 4 4 has no solution for abcd,,, positive integes r Counterexample: 218 years later by Noam Elkies: 4 4 4 4 95800 + 217519 + 414560 = 422481 Example courtesy: Prof. Albert R. Meyer s lecture slides for MIT course 6.042, Fall 02 11

Evidence vs. Proof Hypothesis: 313 ( x + y ) = z 3 3 3 has no positive integer solution False! But smallest counterexample has more than 1000 digits! Example courtesy: Prof. Albert R. Meyer s lecture slides for MIT course 6.042, Fall 02 12

Mathematical Induction Find a general formula for n 2 i i= 0 0 2 = 1 0 1 2 + 2 = 3 0 1 2 2 + 2 + 2 = 7 0 1 2 3 2 + 2 + 2 + 2 = 15 n i n+ 1 2 = 2 1? i= 0 13

1. (Basis step) Mathematical Induction n 2 i 2 n+ 1 = 1 i= 0 n 2 i 2 n+ 1 = 1 i= 0 holds for n = 0 2. (Inductive step) Suppose formula holds for n= n 0 (inductive hypothesis) We prove that it also holds for n= n 0 + 1 n + 1 0 i= 0 n0 i i 2 = 2 + 2 = i= 0 ( n ) 0 + 1 2 1 2 n0 + 2 = 0 + 2 1 n + 1 n + 1 0 14

n 2 2 n Show that any chessboard with one square removed can be tiled using L-shaped pieces, each covering three squares. 2 n 2 n 15

basis step inductive step 2 n 2 n 2 n 2 n 2 n 2 n 2 n 2 n 16

Template for proof by Induction Prove that P(n) is true for all positive integers n BASIS STEP: Show that P(1) is true INDUCTIVE STEP: Show that P(k) P(k+1) 17

Strong Induction Prove that P(n) is true for all positive integers n BASIS STEP: Show that P(1) is true INDUCTIVE STEP: Show that [ P(1) P(2) Pk ( )] Pk ( + 1) 18

Strong Induction example Show that if n is an integer greater than 1, n can be written down as a product of primes P(n): n can be written down as a product of primes Basis Step: P(2) is true, 2=2 Inductive Step: Assume P(j) is true for all j k Need to show that P(k+1) is true Case 1: k+1 is prime, P(k+1) is true Case 2: k+1 = a b By induction hypothesis, both a and b can be written as a product of primes. 19

Proof by contradiction Prove that 2 is irrational m Suppose 2 = gcd( mn, ) = 1 n 2 m 2 = 2 n m is even m = 2k 4k 2 = 2 n n = 2k 2 2 2 n is even Contradiction! 20