Principles of Counting. Notation for counting elements of sets

Similar documents
Slide 1 Math 1520, Lecture 13

Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A B= {3}.

Chapter 1. Set Theory

ACHS Math Team Lecture: Introduction to Set Theory Peter S. Simon

Section Introduction to Sets

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

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

Sets, Venn Diagrams & Counting

Permutations and Combinations. MATH 107: Finite Mathematics University of Louisville. March 3, 2014

Exam 2 Review (Sections Covered: 3.1, 3.3, , 7.1) 1. Write a system of linear inequalities that describes the shaded region.

SET THEORY AND VENN DIAGRAMS

Math 42, Discrete Mathematics

Probability (Devore Chapter Two)

Math236 Discrete Maths with Applications

Math Exam 2 Review. NOTE: For reviews of the other sections on Exam 2, refer to the first page of WIR #4 and #5.

Math Exam 2 Review. NOTE: For reviews of the other sections on Exam 2, refer to the first page of WIR #4 and #5.

Class 8 - Sets (Lecture Notes)

Binary Continued! November 27, 2013

4.1. Counting Principles. Investigate the Math

Combinations. April 14, 2006

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

Chapter 1 Math Set: a collection of objects. For example, the set of whole numbers is W = {0, 1, 2, 3, }

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

A. M and D B. M and V C. M and F D. V and F 6. Which Venn diagram correctly represents the situation described? Rahim described the set as follows:

CHAPTER 7 Probability

Such a description is the basis for a probability model. Here is the basic vocabulary we use.

6.1 Basics of counting

Intermediate Math Circles November 1, 2017 Probability I

Define and Diagram Outcomes (Subsets) of the Sample Space (Universal Set)

Probability - Grade 10 *

4.3 Finding Probability Using Sets

Chapter 5 - Elementary Probability Theory

Math 166: Topics in Contemporary Mathematics II

Probability: Terminology and Examples Spring January 1, / 22

Name Date. Goal: Understand sets and set notation.

An art collector might own a collection of paintings, while a music lover might keep a collection of CDs. Any collection of items can form a set.

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

7.1 Experiments, Sample Spaces, and Events

Mutually Exclusive Events

EDULABZ INTERNATIONAL SETS AND VENN DIAGRAMS

Solutions for Exam I, Math 10120, Fall 2016

Permutations: The number of arrangements of n objects taken r at a time is. P (n, r) = n (n 1) (n r + 1) =

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

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

Week 3 Classical Probability, Part I

Elementary Combinatorics

Mixed Counting Problems

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Lecture 18 - Counting

Name: Exam 1. September 14, 2017

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

MATH 1324 (Finite Mathematics or Business Math I) Lecture Notes Author / Copyright: Kevin Pinegar

Math 1070 Sample Exam 1

Chapter 7. Intro to Counting

Counting Problems for Group 1 (Due by EOC Feb. 27)

Chapter 5: Probability: What are the Chances? Section 5.2 Probability Rules

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010

A counting problem is a problem in which we want to count the number of objects in a collection or the number of ways something occurs or can be

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

MATH 22. Lecture B: 9/4/2003 COUNTING. I counted two and seventy stenches, All well-defined, and several stinks.

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

4.1 Sample Spaces and Events

1. The empty set is a proper subset of every set. Not true because the empty set is not a proper subset of itself! is the power set of A.

Grade 7/8 Math Circles February 21 st /22 nd, Sets

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Chapter 2 Math

Park Forest Math Team. Meet #5. Number Theory. Self-study Packet

CS1800: More Counting. Professor Kevin Gold

Probability. The MEnTe Program Math Enrichment through Technology. Title V East Los Angeles College

Lecture 2.3: Symmetric and alternating groups

Formula 1: Example: Total: Example: (75 ) (76) N (N +1) = (20 ) (21 ) =1050

Course Learning Outcomes for Unit V

Basic Probability & Statistics Exam 2 { Part I { Sections (Chapter 4, Chapter 5) March 19, 2009

Lecture 6 Probability

Fundamental. If one event can occur m ways and another event can occur n ways, then the number of ways both events can occur is:.

Chapter 2 Basic Counting

Counting and Probability Math 2320

W = {Carrie (U)nderwood, Kelly (C)larkson, Chris (D)aughtry, Fantasia (B)arrino, and Clay (A)iken}

With Question/Answer Animations. Chapter 6

MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability)

There are three types of mathematicians. Those who can count and those who can t.

MA Section 6.3 and 7.3

Ÿ 8.1 The Multiplication Principle; Permutations

Number Patterns - Grade 10 [CAPS] *

Exam 2 Review F09 O Brien. Finite Mathematics Exam 2 Review

MATHEMATICS ON THE CHESSBOARD

Probability and Counting Techniques

Math 127: Equivalence Relations

Mutually Exclusive Events

Name: Teacher: DO NOT OPEN THE EXAMINATION PAPER UNTIL YOU ARE TOLD BY THE SUPERVISOR TO BEGIN. Mathematics 3201

Math 106 Lecture 3 Probability - Basic Terms Combinatorics and Probability - 1 Odds, Payoffs Rolling a die (virtually)

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

( ) = A. 2. Write the following sets using the roster method. 3. Write the following sets using set-builder notation.

6.2 Modular Arithmetic

Math 14 Lecture Notes Ch. 3.6

2. Let E and F be two events of the same sample space. If P (E) =.55, P (F ) =.70, and

7.4 Permutations and Combinations

Probability with Set Operations. MATH 107: Finite Mathematics University of Louisville. March 17, Complicated Probability, 17th century style

Algebra II Probability and Statistics

Day 5: Mutually Exclusive and Inclusive Events. Honors Math 2 Unit 6: Probability

Transcription:

Principles of Counting MATH 107: Finite Mathematics University of Louisville February 26, 2014 Underlying Principles Set Counting 2 / 12 Notation for counting elements of sets We let n(a) denote the number of elements in a nite set A. s If A = {1, 2, 3, 4}, B = {0}, and C = {0, 2, 4, 6, 8}, then: n(a) = n({1, 2, 3, 4}) = 4 n(b) = n({0}) = 1 n(c) = n({0, 2, 4, 6, 8}) = 5 n(a B) = n( ) = 0 n(a B) = n({0, 1, 2, 3, 4}) = 5 n(a C) = n({0, 1, 2, 3, 4, 6, 8}) = 7

Addition principle Underlying Principles Set Counting 3 / 12 If we have sets A and B of two similar types of objects, we might wonder how many objects there are among both sets, i.e., in A B. If A and B have no elements in common, we call them disjoint and then we can just add up their individual counts. Specialized addition principle If A B =, then n(a B) = n(a) + n(b) For example, suppose that this class contains 22 rst-years and 16 second-years. How many students in the class are in their rst two years of university? 22 + 16 = 38 in total, because these two sets of students are disjoint. Underlying Principles Set Counting 4 / 12 A more general addition principle How could we calculate n(a B) if A and B are not disjoint? The earlier principle doesn't work: if A = {1, 2, 3, 4, 5} and B = {1, 3, 5, 7, 9}, then n(a) + n(b) = 10, but n(a B) = 7. n(a) + n(b) counts the overlapping elements (1, 3, and 5) twice! We can x this by subtracting the overcount back out again: Generalized addition principle n(a B) = n(a) + n(b) n(a B) Among 30 students, 13 play the piano, 16 play the guitar, and 5 play both instruments. How many students play at least one instrument? We might denote this with n(a) = 13, n(b) = 16, and n(a B) = 5, so n(a B) = 13 + 16 5 = 24.

A subtractive variant Underlying Principles Set Counting 5 / 12 For a universal set U, we know that A A = U. In addition, A A =. Rearranging the additive principle n(a) + n(a ) n(a A ) = n(u), we get: Subtractive Principle n(a ) = n(u) n(a) Among 30 students, 13 play the piano, 16 play the guitar, and 5 play both instruments. How many students play neither instrument? In the last slide we saw that n(a B) = 24; here n(u) = 30 so n((a B) ) = 30 24 = 6. Underlying Principles Set Counting 6 / 12 Using these rules in combination Given the sizes of any four sets, we can usually work out the other sets of interest. Finding an overlap A cable company has 10000 subscribers. 3770 have cable internet, 3250 have digital phone, and 4530 have neither. How many subscribers have both services? We could let U be the set of all subscribers, A those with internet, and B those with phone. So n(u) = 10000, n(a) = 3770, n(b) = 3250, and n((a B) ) = 4530. We want to nd n(a B). n(a B) = n(a) + n(b) n(a B) = 7020 n(a B) n(a B) = n(u) n((a B) ) = 10000 4530 = 5470 so since 7020 n(a B) = 5470, we know n(a B) = 1550.

Underlying Principles Set Counting 7 / 12 A more complicated additive principle Using a Venn diagram, and trying to count every region exactly once, we can come up with a rule for nding the size of a union of three sets, but it's pretty messy! A B U C n(a B C) = n(a) + n(b) + n(c) n(a B) n(a C) n(b C) + n(a B C) This result is also known as the Inclusion-Exclusion Principle. A multiplicative principle Underlying Principles Counting multiple choices 8 / 12 Often, we want to count the number of ways to make several choices in sequence. A license plate consists of any three letters followed by any three digits. How many distinct license plates are possible? To answer a question like this, we need a principle for describing the number of ways to make several choices in sequence: Multiplicative Principle If we want to build an ordered list of an object from S 1, an object from S 2, and so forth up to S r, the number of possible lists we can build is n(s 1 ) n(s 2 ) n(s 3 ) n(s r )

Underlying Principles Counting multiple choices 9 / 12 Application of the multiplicative principle A license plate consists of any three letters followed by any three digits. How many distinct license plates are possible? In this case, our sets S 1, S 2, and S 3 are all {A, B,..., Z} and S 4, S 5, and S 6 are all {0, 1, 2,..., 9}. We thus have possible license plates. 26 26 26 10 10 10 = 17, 576, 000 A subtler application Underlying Principles Counting multiple choices 10 / 12 A more complicated example If a license plate consists of any three dierent letters followed by any three dierent digits, how many distinct license plates are possible? Here it seems like S 2 depends on what we choose from S 1 ; whichever letter is chosen from S 1 shouldn't be in S 2. The good news is which letter doesn't actually matter: no matter what, n(s 2 ) = 25 and n(s 3 ) = 24. Likewise, n(s 5 ) = 9 and n(s 6 ) = 8, so we get 26 25 24 10 9 8 = 11, 232, 000 possible license plates.

Combining rules Underlying Principles Counting multiple choices 11 / 12 An additive/multiplicative example A cafeteria will serve one of ve plate lunches with any choice of 7 sides and either a salad or soup, or one of four sandwiches with a single side. How many dierent meal choices are possible? We can get two dierent types of lunch. After calculating how many of each type are possible, we can add together the number of each type. A plate lunch is a combination of: any of 5 mains, any of 7 sides, and any of 2 choices of salad/soup. So there are 5 7 2 = 70 plate lunches. A sandwich is a combination of: any of 4 sandwiches, and any of 7 sides. So there are 4 7 = 28 sandwich lunches. We thus have 70 + 28 = 98 lunches in total. Underlying Principles Counting multiple choices 12 / 12 A complicated combination Several rules in sequence How many three-digit numbers have three dierent digits of the same parity (odd vs. even) and do not begin with a zero? We can subdivide this problem into nding all the three-digit numbers with three dierent odd digits, and all the three-digit numbers with three dierent even digits (and no leading 0). To get three odd digits, we have 5 choices for the rst digit, 4 for the second, and 3 for the third: 5 4 3 = 60 in total. To get three even digits, we have 5 choices for the rst digit, 4 for the second, and 3 for the third: 5 4 3 = 60 in total, but this includes some with leading zeroes! We subtract out those numbers starting with a zero and followed by two other even digits. We have 4 for the second digit and 3 for the third: 4 3 = 12. So our total will be 60 + (60 12) = 108.