The Product Rule can be viewed as counting the number of elements in the Cartesian product of the finite sets

Similar documents
6.1 Basics of counting

Today s Topics. Sometimes when counting a set, we count the same item more than once

Counting: Basics. Four main concepts this week 10/12/2016. Product rule Sum rule Inclusion-exclusion principle Pigeonhole principle

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Math 365 Wednesday 2/20/19 Section 6.1: Basic counting

What is counting? (how many ways of doing things) how many possible ways to choose 4 people from 10?

Outline. Content The basics of counting The pigeonhole principle Reading Chapter 5 IRIS H.-R. JIANG

The Pigeonhole Principle

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n ways to do the first task and n

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

Counting and Probability Math 2320

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

With Question/Answer Animations. Chapter 6

Theory of Probability - Brett Bernstein

Sec 5.1 The Basics of Counting

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

Counting. Chapter 6. With Question/Answer Animations

CSE 21 Math for Algorithms and Systems Analysis. Lecture 2 Lists Without Repe>>on

Topics to be covered

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting

8.2 Union, Intersection, and Complement of Events; Odds

1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in the building?

Algebra II- Chapter 12- Test Review

CPCS 222 Discrete Structures I Counting

MC215: MATHEMATICAL REASONING AND DISCRETE STRUCTURES

Reading 14 : Counting

12. 6 jokes are minimal.

Discrete Finite Probability Probability 1

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Counting (Enumerative Combinatorics) X. Zhang, Fordham Univ.

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Jong C. Park Computer Science Division, KAIST

THE PIGEONHOLE PRINCIPLE. MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin

Exercises Exercises. 1. List all the permutations of {a, b, c}. 2. How many different permutations are there of the set {a, b, c, d, e, f, g}?

Discrete Structures Lecture Permutations and Combinations

Discrete Mathematics. Spring 2017

CSCI FOUNDATIONS OF COMPUTER SCIENCE

Probability MAT230. Fall Discrete Mathematics. MAT230 (Discrete Math) Probability Fall / 37

Math236 Discrete Maths with Applications

MAT 115: Finite Math for Computer Science Problem Set 5

Chapter 2. Permutations and Combinations

Elementary Combinatorics

PIGEONHOLE PRINCIPLE

Multiple Choice Questions for Review

Name: Exam 1. September 14, 2017

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

Probability and Counting Techniques

3 The multiplication rule/miscellaneous counting problems

BMT 2018 Combinatorics Test Solutions March 18, 2018

With Question/Answer Animations. Chapter 6

Chapter 1. Probability

4.1 Sample Spaces and Events

Lecture 18 - Counting

3 The multiplication rule/miscellaneous counting problems

Chapter 1. Probability

Strings. A string is a list of symbols in a particular order.

Sec.on Summary. The Product Rule The Sum Rule The Subtraction Rule (Principle of Inclusion- Exclusion)

CISC 1400 Discrete Structures

Mat 344F challenge set #2 Solutions

CSE 312: Foundations of Computing II Quiz Section #1: Counting

CHAPTER 7 Probability

EECS 203 Spring 2016 Lecture 15 Page 1 of 6

Contest 1. October 20, 2009

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Chapter 8: Probability: The Mathematics of Chance

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

1. Counting. 2. Tree 3. Rules of Counting 4. Sample with/without replacement where order does/doesn t matter.

Dependence. Math Circle. October 15, 2016

November 8, Chapter 8: Probability: The Mathematics of Chance

and problem sheet 7

Math 42, Discrete Mathematics

ON SPLITTING UP PILES OF STONES

POKER (AN INTRODUCTION TO COUNTING)

In how many ways can we paint 6 rooms, choosing from 15 available colors? What if we want all rooms painted with different colors?

Lecture 14. What s to come? Probability. A bag contains:

Math 1111 Math Exam Study Guide

CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions)

HOMEWORK ASSIGNMENT 5

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018

10-1. Combinations. Vocabulary. Lesson. Mental Math. able to compute the number of subsets of size r.

Week 6: Advance applications of the PIE. 17 and 19 of October, 2018

SALES AND MARKETING Department MATHEMATICS. Combinatorics and probabilities. Tutorials and exercises

Finite Math - Fall 2016

7.1 Experiments, Sample Spaces, and Events

Data Collection Sheet

IB HL Mathematics Homework 2014

The probability set-up

Lecture 2: Sum rule, partition method, difference method, bijection method, product rules

Senior Math Circles February 10, 2010 Game Theory II

Contents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39

6. In how many different ways can you answer 10 multiple-choice questions if each question has five choices?

Combinatorics, the study of arrangements of objects, is an important part of discrete mathematics.

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

Fundamentals of Probability

Chapter 1: Sets and Probability

Section The Multiplication Principle and Permutations

Junior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?

Math 166: Topics in Contemporary Mathematics II

Transcription:

Chapter 6 - Counting 6.1 - The Basics of Counting Theorem 1 (The Product Rule). If every task in a set of k tasks must be done, where the first task can be done in n 1 ways, the second in n 2 ways, and in general the ith can be done in n i ways, and the way in which the ith task is completed doesn t affect the number of ways to complete the remaining tasks, then the k tasks can be done in n 1 n 2... n k ways. The Product Rule can be viewed as counting the number of elements in the Cartesian product of the finite sets A 1, A 2,..., A k : A 1 A 2... A k = A 1 A 2... A k Example 1. (a) How many functions are there from a set of three elements into a set of four elements? (b) How many functions are there from a set of m elements into a set of n elements? Example 2. (a) How many 1-1 functions are there from a set of three elements into a set of four elements? (b) How many 1-1 functions are there from a set of m elements into a set of n elements? Example 3. (a) How many nine digit Social Security Numbers are there? (b) How many of them are even? 1

Example 4. How many subsets are there of a set of n elements? i.e., what is the order of the power set of a set of n elements? Theorem 2 (The Sum Rule). If exactly one task in a set of k tasks must be done, where the first task can be done in n 1 ways, the second in n 2 ways, and in general the ith can be done in n i ways, and the way in which the ith task is completed doesn t affect the number of ways to complete the remaining tasks, then the number of ways to choose an perform that one task is n 1 + n 2 + + n k. Example 5. A regional manager must be chosen to oversee a three-state area. State A has 10 candidates, state B has 7 candidates, and state C has 15 candidates. In how many ways can the choices be made? Theorem 3 (The Division Rule). If a task can be done using a procedure that can be carried out in n ways, and for every way w exactly d of the n ways correspond to way w, then there are n d ways to do the the task. Example 6. How many ways are there to seat 7 people around a circular table (with 7 seats)? 2

Example 7. Suppose a state has license plates formatted as either two letters followed by four digits, or one letter followed by five digits. How many possible license plate numbers are there? Example 8. How many cards in a standard deck of 52 are either jacks or spades? Recall the following from chapter 2: Theorem 4 (The Principle of Inclusion/Exclusion). If A, B, and C are finite sets, then A B = A + B A B and A B C = A + B + C A B A C B C + A B C Example 9. (a) How many strings of 8 English letters are there that contain at least one vowel, if letters can be repeated? (b) How many such strings contain exactly one vowel? 3

Tree Diagrams Tree diagrams can be used to solve counting problems, although this is only practical if the number of choices/ways is relatively small. Example 10. In the game of Num two players start with n toothpicks. Each of the two players alternates picking up either one or two toothpicks, and the last player to pick up a toothpick loses. With n = 4, in how many ways can the game turn out? What is a winning strategy? What happens if we start with 7 toothpicks? 6.2 - The Pigeonhole Principle Theorem 5 (The Pigeonhole Principle, or The Dirichlet Drawer Principle). If k is a positive integer and k + 1 objects [pigeons] are placed into k boxes [drawers], there there is at least one box containing two or more of the objects. Theorem 6 (The Generalized Pigeonhole Principle). If N objects are placed into k boxes, then there is at least one box containing N k objects. This can be stated in terms of sets as follows: Theorem 7 (Generalized Pigeonhole Principle, Set Version). If A and B are sets and f : A B is a function, then there exists at least one element b B such that A f 1 (b) B 4

Example 11. How many people do we need in a room to guarantee that two have the same birthday? Example 12. Among 5000 people there are at least how many who have the same birthday? Example 13. Suppose we have a bag with 10 Twix bars, 8 KitKat bars, and 9 Hershey s bars. (a) How many bars do we need to remove in order to guarantee that we have one of each kind? (b) How many to guarantee that we have three of the same kind? 5

Example 14. Any sequence of n 2 + 1 distinct numbers has a subsequence of n + 1 or more that is either strictly increasing or strictly decreasing. 6