Notes Discrete Mathematics: Introduction. Computer Science & Engineering 235 Discrete Mathematics. Notes. Notes. Why Discrete Mathematics?

Similar documents
Adam Blank Spring 2017 CSE 311. Foundations of Computing I

Introduction. How can we say that one algorithm performs better than another? Quantify the resources required to execute:

Trinity Christian School Curriculum Guide

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)

CIS Spring 2018 (instructor Val Tannen)

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

EECS 1028 M: Discrete Mathematics for Engineers

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Lecture 22: Counting

The P versus NP Problem. Ker-I Ko. Stony Brook, New York

ICS141: Discrete Mathematics for Computer Science I

Introduction Introduction. Discrete Mathematics Andrei Bulatov

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

: Approximation and Online Algorithms with Applications Lecture Note 2: NP-Hardness

Do not turn this page until you have received the signal to start. Please fill out the identification section above. Good Luck!

NETS 412: Algorithmic Game Theory March 28 and 30, Lecture Approximation in Mechanism Design. X(v) = arg max v i (a)

CSE 101. Algorithm Design and Analysis Miles Jones Office 4208 CSE Building Lecture 1: Introduction

Get started [Hawkes Learning] with this system. Common final exam, independently administered, group graded, grades reported.

University of Toronto Department of Electrical and Computer Engineering. Final Examination. ECE 345 Algorithms and Data Structures Fall 2016

MATH 115 Concepts in Mathematics

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Latest Syllabus - NMO

TABLE OF CONTENTS POLYNOMIAL EQUATIONS AND INEQUALITIES

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

SE 2FA3: Discrete Mathematics and Logic II. Teaching Assistants: Yasmine Sharoda,

CS 6783 (Applied Algorithms) Lecture 3

P.1. Real Numbers. Copyright 2011 Pearson, Inc.

Coffeyville Community College MATH-102 COURSE SYLLABUS FOR INTERMEDIATE ALGEBRA. Ryan Willis Instructor

College Algebra. Basics to Theory of Equations. Chapter Goals and Assessment. John J. Schiller and Marie A. Wurster. Slide 1

Notes. Functions. Introduction. Notes. Notes. Definition Function. Definition. Slides by Christopher M. Bourke Instructor: Berthe Y.

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

1.1 Administrative Stuff

Finite and infinite sets, and cardinality

Math 164-1: Optimization Instructor: Alpár R. Mészáros

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

MATHia Unit MATHia Workspace Overview TEKS

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

MTH 167 Pre Calculus I (Spring 2015) 3 credits. Department of Mathematics at Cleveland State University

Dynamic Programming: Interval Scheduling and Knapsack

Chemistry 8 Principles of Organic Chemistry Spring Semester, 2013

Honors Integrated Algebra/Geometry 3 Critical Content Mastery Objectives Students will:

California: Algebra 1

Sequence convergence, the weak T-axioms, and first countability

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

Stellar Astronomy 1401 Spring 2009

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

Algebra II. A2.1.1 Recognize and graph various types of functions, including polynomial, rational, and algebraic functions.

CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction. Linda Shapiro Spring 2016

Physics Fundamentals of Astronomy

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

CS684 Graph Algorithms

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

COS 341: Discrete Mathematics

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Algebra 1 Correlation of the ALEKS course Algebra 1 to the Washington Algebra 1 Standards

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

Operations with Integers

Exercises NP-completeness

Natural Numbers: Also called the counting numbers The set of natural numbers is represented by the symbol,.

Chapter 2: The Basics. slides 2017, David Doty ECS 220: Theory of Computation based on The Nature of Computation by Moore and Mertens

The Natural Role of the Sequences and Series Calculus Course

Content Standard 1: Numbers, Number Sense, and Computation Place Value

Class Note #20. In today s class, the following four concepts were introduced: decision

Countable and uncountable sets. Matrices.

Seunghee Ye Ma 8: Week 2 Oct 6

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

Recursion. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Los Angeles Unified School District Secondary Mathematics Branch

K-center Hardness and Max-Coverage (Greedy)

Warm-Up Problem. Is the following true or false? 1/35

grasp of the subject while attaining their examination objectives.

Course Descriptions. Mathematics LA 848, (406)

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi

Food Chemistry Fundamentals FST 422/522 Course Syllabus; Fall, 2009

Math 414, Fall 2016, Test I

Computational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs

More Approximation Algorithms

Physics Fundamentals of Astronomy

PETERS TOWNSHIP HIGH SCHOOL

SOLVING EQUATIONS AND DEVELOPING THE FOUNDATION FOR PROOFS

Elementary Algebra SAMPLE Final Examination Fall 2017

SYLLABUS FOR [FALL/SPRING] SEMESTER, 20xx

Pre-Algebra (6/7) Pacing Guide

MTH 173 Calculus with Analytic Geometry I and MTH 174 Calculus with Analytic Geometry II

Computational Models

Distributed Optimization. Song Chong EE, KAIST

Notes about changes to Approved Syllabus # 43080v2

Honors Algebra 2 Summer Practice Problems 2017

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

Willmar Public Schools Curriculum Map

Outline / Reading. Greedy Method as a fundamental algorithm design technique

Algebra 2 Secondary Mathematics Instructional Guide

Intermediate Algebra

Course: Math 111 Pre-Calculus Summer 2016

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

Mathematical Methods 2019 v1.2

Fundamentals of Mathematics (MATH 1510)

9th and 10th Grade Math Proficiency Objectives Strand One: Number Sense and Operations

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

Instructors Manual Algebra and Trigonometry, 2e Cynthia Y. Young

Transcription:

Discrete Mathematics: Introduction Slides by: Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 Computer Science & Engineering 235 Introduction to Discrete Mathematics cse235@cse.unl.edu Computer Science & Engineering 235 Discrete Mathematics Roll Syllabus Lectures: M/W/F 1:30 2:20 (Avery 109) Recitations: Tuesdays 5:30 6:20 (Avery 108) Office hours: Instructor: M/W 2:30 3:30 (Avery 123B) TA: Chris Bourke: 1:00 2:00 (Wed in Avery 123C and Thu in Avery 13A) Must have cse account Must use webhandin Bonus points: report bugs Why Discrete Mathematics? I You have to. Computer Science is not programming. It is not even Software Engineering. Computer Science is no more about computers than astronomy is about telescopes. Edsger Dijkstra Computer Science is problem solving.

Why Discrete Mathematics? II Mathematics is at the heart of problem solving. Often, even defining a problem requires a level of mathematical rigor. Competent use and analysis of models/data structures/algorithms requires a solid foundation in mathematics. Justification for why a particular way of solving a problem is correct or efficient (i.e., better than another way) requires analysis within a well defined mathematical model. Why Discrete Mathematics? III Abstract thinking is necessary to applying knowledge. Rarely will you encounter a problem in an abstract setting (your boss is not going to ask you to solve MST). Rather, it is up to you to determine the proper model of such a problem. Scenario I A limo company has hired you (or your company) to write a computer program to automate the following tasks for a large event. Task 1 In the first scenario, businesses request limos and drivers for a fixed period of time (specifying a start-date/time and end-date/time) and charged a flat rate. The program should be able to generate a schedule so that the maximum number of customers can be accommodated.

Scenario II Task 2 In the second scenario, the limo service is considering allowing customers to bid on a driver (so that the highest bidder gets a limo/driver when there aren t enough available). The program should thus make a schedule a feasible (i.e., no limo can handle two customers at the same time) while at the same time, maximizing the profit by selecting the highest overall bids. Scenario III Task 3 In a third scenario, a customer is allowed to specify a set of various times and bid an amount for the entire event. A driver must choose to accept the entire set of times or reject it all. The scheduler must still maximize the profit. Scenario What s your solution? How can you model such scenarios? How can you develop algorithms for these scenarios? How can you justify that that they work? That they actually guarantee an optimal (i.e., maximized profit) solution?

Scenario The fundamentals that this course will teach you are the foundations that you will use to eventually solve these problems. The first scenario is easily (i.e., efficiently) solved by a greedy algorithm. The second scenario is also efficiently solvable, but by a more involved technique, dynamic programming. The last scenario is not efficiently solvable (it is NP-hard) by any known technique. It is believed that to guarantee an optimal solution, one needs to look at all (exponentially many) possibilities. Fundamentals Notation A set is a collection of similar objects. We denote a set using brackets. For example, is a finite set and is an infinite set. S = {s 1, s 2, s 3,..., s n } S = {s 1, s 2, s 3,...} We denote that an object is an element of a set by the notation, s 1 S read s 1 (is) in S (or we can write s 1 S for s 1 (is) not in S ) Fundamentals Notation You should at least be familiar with the sets of integers, rationals and reals. We denote the set of natural numbers as N = {0, 1, 2, 3,...} We denote the set of integers as Z = {0, 1, 1, 2, 2, 3, 3,...} We denote the set of rational numbers as { a } Q = b a, b Z We denote the set of reals as R = {x x is a decimal number}

Algebra I Definition Let a, b Z with b 0. we say that b divides a if and only if a = qb for some integer q. We will use the notation b a Algebra II Example 2 divides 64 since 64 = 32 2 2 32 3 divides 27 since 27 = 9 3 3 27 However, 2 does not divide 27 since there is no integer q such that 27 = 2q In this case, we write 2 27 Topics Topic Sections Propositional Logic 1.1 1.2 Predicate Logic 1.3 1.4 Proofs 1.5 1.6 Sets 2.1 2.2 Functions 2.3 Relations 8.1, 8.3 8.6 Algorithms 3.1 3.3 Number Theory 3.4 3.7 Induction 4.1 4.2 Counting 5.1 5.2 Combinatorics 5.3 5.5 Recursion 7.1 7.2 PIE 7.5 Graphs 9.1 9.5 Trees 10.1 10.3