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

Similar documents
Course Staff. Textbook

ICS141: Discrete Mathematics for Computer Science I

COS 341: Discrete Mathematics

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

Introduction Introduction. Discrete Mathematics Andrei Bulatov

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

SYLLABUS SEFS 540 / ESRM 490 B Optimization Techniques for Natural Resources Spring 2017

CS684 Graph Algorithms

COS 341: Discrete Mathematics

Introduction Propositional Logic

1.1 Administrative Stuff

Calculus, Series and Differential Equations

Ph 1a Fall General Information

Introduction to Quantum Computing

CENTRAL TEXAS COLLEGE-FORT RILEY SYLLABUS FOR DSMA 0301 DEVELOPMENTAL MATHEMATICS II SEMESTER HOURS CREDIT: 3 FALL 2014 SYLLABUS (08/11/14 10/05/14)

EECS 1028 M: Discrete Mathematics for Engineers

CSEP 521 Applied Algorithms. Richard Anderson Winter 2013 Lecture 1

Probability (Devore Chapter Two)

Spring 2014 ECEN Signals and Systems

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

About this class. Yousef Saad 1. Noah Lebovic 2. Jessica Lee 3. Abhishek Vashist Office hours: refer to the class web-page.

CprE 281: Digital Logic

PHYSICS 206, Spring 2019

EE595A Submodular functions, their optimization and applications Spring 2011

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

MATH 251 Ordinary and Partial Differential Equations Summer Semester 2017 Syllabus

Computational Models

MATH 345 Differential Equations

MATH 18.01, FALL PROBLEM SET # 2

CMPSCI 240: Reasoning about Uncertainty

Foundations II: Data Structures and Algorithms

Ch. 2: Lec. 1. Basics: Outline. Importance. Usages. Key problems. Three ways of looking... Colbert on Equations. References. Ch. 2: Lec. 1.

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

Regular Languages and Finite Automata

CprE 281: Digital Logic

CprE 281: Digital Logic

PHY 6500 Thermal and Statistical Physics - Fall 2017

CprE 281: Digital Logic

FENG CHIA UNIVERSITY

Quiz 3 Reminder and Midterm Results

CpE358/CS381. Switching Theory and Logical Design. Summer

Lecture 1/25 Chapter 2

SCIENCE PROGRAM CALCULUS III

Practice Second Midterm Exam I

COS 341 Discrete Mathematics

CSE 241 Class 1. Jeremy Buhler. August 24,

CE261 ENGINEERING MECHANICS - DYNAMICS

Welcome to Physics 211! General Physics I

Physics 106 Dr. LeClair

Calculus (Math 1A) Lecture 1

HEAT AND THERMODYNAMICS PHY 522 Fall, 2010

CSE 240 Logic and Discrete Mathematics

CSCI 2033 Spring 2016 ELEMENTARY COMPUTATIONAL LINEAR ALGEBRA

CSE 21 Practice Exam for Midterm 2 Fall 2017

Math 200 A and B: Linear Algebra Spring Term 2007 Course Description

NHTI Concord s Community College 31 College Drive Concord, NH

Multivariable Calculus

Math 51 Midterm 1 July 6, 2016

Syllabus, Math 343 Linear Algebra. Summer 2005

Midterm Exam Information Theory Fall Midterm Exam. Time: 09:10 12:10 11/23, 2016

NP-Completeness Part II

Check Mate-rix. These are examples of the Identity Matrices. They are the final result after Gauss-Jordan Elimination.

CALIFORNIA POLYTECHNIC STATE UNIVERSITY Mechanical Engineering Department ME 347, Fluid Mechanics II, Winter 2018

Mr. Miles 8 th Grade Math Class Info & Syllabus

Midterm Exam Solution

Department of Mechanical & Mechatronics Engineering. Welcome to 4A Mechanical Engineering!

Today s Outline. Biostatistics Statistical Inference Lecture 01 Introduction to BIOSTAT602 Principles of Data Reduction

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

NP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20

Recap from Last Time

MATH 122 SYLLBAUS HARVARD UNIVERSITY MATH DEPARTMENT, FALL 2014

GEORGETOWN UNIVERSITY Department of Chemistry General Chemistry II - Summer General Information for CHEM 002 and CHEM 010

Chemistry Physical Chemistry I Fall 2017

CS188: Artificial Intelligence, Fall 2009 Written 2: MDPs, RL, and Probability

Posted Thursday February 14. STUDY IN-DEPTH...the posted solutions to homeworks 1-3. Compare with your own solutions.

CS 154 Introduction to Automata and Complexity Theory

Stat 609: Mathematical Statistics I (Fall Semester, 2016) Introduction

Course Information Course Overview Study Skills Background Material. Introduction. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics

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

Problem set 1. (c) Is the Ford-Fulkerson algorithm guaranteed to produce an acyclic maximum flow?

Columbus State Community College Mathematics Department Public Syllabus

AS The Astronomical Universe. Prof. Merav Opher - Fall 2013

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

Astronomy 001 Online SP16 Syllabus (Section 8187)

2. Introduction to commutative rings (continued)

Biophysical Chemistry CHEM348 and CHEM348L

Discrete Mathematics & Mathematical Reasoning Course Overview

Algebra III and Trigonometry Summer Assignment

Algorithm Design and Analysis (NTU CSIE, Fall 2017) Homework #3. Homework #3. Due Time: 2017/12/14 (Thu.) 17:20 Contact TAs:

CS 6375 Machine Learning

Physics Fall Semester. Sections 1 5. Please find a seat. Keep all walkways free for safety reasons and to comply with the fire code.

CSE 311: Foundations of Computing I

Fall 2014: PHYSICS 170 GENERAL PHYSICS I

LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING AND COMPUTER SCIENCE

Who should take this course? How to succeed in this course. Course Information

Stellar Astronomy 1401 Spring 2009

CH 331 Syllabus Fall 2012

Homework #1 RELEASE DATE: 09/26/2013 DUE DATE: 10/14/2013, BEFORE NOON QUESTIONS ABOUT HOMEWORK MATERIALS ARE WELCOMED ON THE FORUM.

ORF 363/COS 323 Final Exam, Fall 2018

Transcription:

Welcome! L01

Today s Menu Administrativia Two Problems Cutting a Pizza Lighting Rooms

Administrativia Course page: https://www.cs.duke.edu/courses/spring13/compsci230/ Who we are: Instructor: TA: UTAs: Chittaranjan Tripathy (please call me Chittu) Branka Lakic Nicholas Gordon Alessio Santoro schedule Lectures Recitations Office Hours Chittu: Branka: Physics 130, Tue.Thu 10:05AM-11:20AM Soc Psy 126, Fri 11:45AM-1:00PM LSRC D301, Tue.Wed 4:00PM-5:00PM (tentative) N002 North Bldg, Tue.Wed 5:00PM-6:00PM (tentative)

Administrativia Textbooks: Required: [R] Discrete Mathematics and its Applications, 7th Edition, 2011. Kenneth H. Rosen. Optional (free PDF! Nice book!): [LLM] Mathematics for Computer Science, 2012. Eric Lehman, F. Thomson Leighton, Albert R. Meyer. Grading Class Interaction. [5 points] Weekly Homework Assignments. [30 points] First In-class Closed-book Midterm Exam. [15 points] Second In-class Closed-book Midterm Exam. [15 points] In-class Closed-book Final Exam. [35 points] Late Homework Policy No credits for late submissions. Please check the course page regularly for more administrative stuffs and updates and ask us if you have any questions

Administrativia Collaborations on Homework Problems Collaborations and team work is highly encouraged Anything submitted for grading must be your own write-up If you collaborated, then please clearly mention the name of your collaborators in your write-up Please type or clearly hand-write solutions. Clearly written, tothe-point solutions often receive more credits You may not consult solutions on the internet or any other electronic sources Duke honor code applies strictly

What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous) objects. Calculus deals with continuous objects and is not part of discrete mathematics. Examples of discrete objects: Integers #steps taken by computer program #airline routes (paths) from RDU to Mumbai Picking up winning set of numbers in a lottery

Discrete Mathematics is Used to Solve Shortest paths between two cities Shortest tour of a number of cities (e.g. buying multiple destinations flight tickets) Representing a program in computer Proving a theorem or an impossibility! Showing that your sorting algorithm is better than mine! In theory! And in practice? Proving that an algorithm always terminates and gives correct answer on all valid inputs And many problems we study in this course and beyond!

Goals of COMPSCI 230 Mathematical Reasoning: Ability to read, understand, and construct mathematical arguments and proofs Combinatorial Analysis: Techniques for counting objects of different kinds Discrete Structures: Abstract mathematical structures that represent objects and the relationships between them, e.g. sets, permutations, relations, graphs, trees, and finite state machines.

Goals of COMPSCI 230 Thinking Algorithmically Design of Algorithms Proving that they are correct Analyzing their performance: time, space (= memory, or other resources) Applications and Modeling Networking AI Systems, eg. Compilers Biology Chemistry Physics Economics

Gateway Course for other Courses Computer Science: Computer Architecture, Data Structures, Algorithms, Programming Languages, Compilers, Computer Security, Databases, Artificial Intelligence, Networking, Graphics, Game Design, Theory of Computation, Mathematics: Logic, Set Theory, Probability, Number Theory, Abstract Algebra, Combinatorics, Graph Theory, Game Theory, Network Optimization, The concepts learned will also be helpful in continuous areas of mathematics. Other Disciplines: Biology, philosophy, economics, linguistics,...

Two Problems Cutting a Pizza Lighting Rooms

Cutting a Pizza Given: a convex (e.g. circular or rectangular shapes) pizza, and a knife Goal: You are asked to make n straight vertical cuts of the pizza so that the number of slices is maximized

Cutting a Pizza Let s try to guess a solution for the number of regions (slices) R n R 0 = 1, R n = R n-1 + n, for n > 0 Seems correct! But, how to prove that our guess is correct?

First, How did I guess? R n-1 slices after n-1 cuts How do I make the nth cut that maximizes the #slices? Observe: If nth cut splits k old slices then #slices increase by k. Easy! Possible if and only if nth cut (line) intersects previous k-1 cuts (lines) in k-1 different points But I have n-1 cuts (lines) previously! So I get n-1 intersection points, that is, n more new slices. Therefore, R n R n-1 + n for n > 0. Can we show R n R n-1 + n?

First, How did I guess? Observe: I can make nth cut (line) such that It is NOT parallel to any of the previous cuts (lines) It intersects them all in different points (no intersection point reused!) Therefore, R n R n-1 + n R 0 = 1, R n = R n-1 + n, for n > 0 What does such a formula mean? How to solve such a formula?

Solving R 0 = 1 R n = R n-1 + n for n > 0 One Method we learned in High School: Unfold the repetitive pattern and express using smaller (and simpler) terms R n = R n-1 + n = R n-2 + n-1 + n = R n-3 + n-2 + n-1 + n = = R 0 + 1 + 2 + + n = 1 + (1 + + n) = 1 + (n(n+1)/2) R n = 1 + (n(n+1)/2)

Solving R 0 = 1, R n = R n-1 + n, for n > 0 Second Method: Guess the solution and verify that it is correct Guess: c 2 n 2 + c 1 n + c 0. Find out the constants from R 0, R 1 and R 2. Exercise! But how to prove that your guess is correct for all n? We need more tools to express our ideas formally. Tools = Proof Techniques!

Lighting the Rooms Switches Input Line http://www.playhookey.com/digital/combination al/decoder_demux_four.html How can we implement the deciding unit (Demux)? Logic and Boolean Gates! More on logic in the next lecture!