Problems for Recitation 15

Similar documents
Counting. Spock's dilemma (Walls and mirrors) call it C(n,k) Rosen, Chapter 5.1, 5.2, 5.3 Walls and Mirrors, Chapter 3 10/11/12

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

W3203 Discrete Mathema1cs. Coun1ng. Spring 2015 Instructor: Ilia Vovsha.

After that, we will introduce more ideas from Chapter 5: Number Theory. Your quiz in recitation tomorrow will involve writing proofs like those.

Massachusetts Institute of Technology

Foundations of Computer Science Lecture 14 Advanced Counting

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya

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

An Introduction to Combinatorics

Discrete Mathematics with Applications MATH236

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

6.8 The Pigeonhole Principle

Grade 7/8 Math Circles February 22nd, 2012 Algebraic Approaches

Recursive Definitions

Counting. Math 301. November 24, Dr. Nahid Sultana

CSCI 150 Discrete Mathematics Homework 5 Solution

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting

Counting, I. The number of different ways to select a dozen doughnuts when there are five varieties available.

Notes for Recitation 14

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Notes for Recitation 7

Introduction to Decision Sciences Lecture 11

Finite and Infinite Sets

Math 187, Spring 2018: Test III

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

3.2 Probability Rules

MATH STUDENT BOOK. 12th Grade Unit 9

6 Permutations Very little of this section comes from PJE.

Name: Date: Period: ELECTRON ORBITAL ACTIVITY

2 - Strings and Binomial Coefficients

CS 210 Foundations of Computer Science

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 27 October, CS1800 Discrete Structures Midterm Version A

The Matrix Vector Product and the Matrix Product

Math Fall Final Exam. Friday, 14 December Show all work for full credit. The problems are worth 6 points each.

18.02 Multivariable Calculus Fall 2007

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

Probability, For the Enthusiastic Beginner (Exercises, Version 1, September 2016) David Morin,


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

CHAPTER 5: ALGEBRA CHAPTER 5 CONTENTS

NUMB3RS Activity: DNA Sequence Alignment. Episode: Guns and Roses

Lecture 1. ABC of Probability

THE LOGIC OF QUANTIFIED STATEMENTS

Notes for Recitation 1

18.05 Exam 1. Table of normal probabilities: The last page of the exam contains a table of standard normal cdf values.

Math 3201 Unit 1 Set Theory

MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS

MATHEMATICS STANDARD THREE TERM II

Discrete Probability

First Digit Tally Marks Final Count

UNIVERSITY OF MICHIGAN UNDERGRADUATE MATH COMPETITION 27 MARCH 28, 2010

Some Review Problems for Exam 3: Solutions

Probability: Terminology and Examples Class 2, Jeremy Orloff and Jonathan Bloom

Counting Strategies: Inclusion/Exclusion, Categories

Probability. Part 1 - Basic Counting Principles. 1. References. (1) R. Durrett, The Essentials of Probability, Duxbury.

Multiplication and Division

First Midterm Examination

CS Foundations of Computing

SOLVING EQUATIONS AND DEVELOPING THE FOUNDATION FOR PROOFS

The Pigeonhole Principle

Section 29: What s an Inverse?

Discrete Structures Homework 1

Senior Math Circles March 3, 2010 Counting Techniques and Probability II

Teacher s Pet Publications

Chapter 2 - Relations

Characteristics of the Text Genre Nonfi ction Text Structure First-person narrative Content


Lecture 3: Miscellaneous Techniques

Massachusetts Institute of Technology Handout J/18.062J: Mathematics for Computer Science May 3, 2000 Professors David Karger and Nancy Lynch

Please bring the task to your first physics lesson and hand it to the teacher.

2017 Canadian Intermediate Mathematics Contest

5.2 Algebraic Properties

Some Review Problems for Exam 3: Solutions

Homework every week. Keep up to date or you risk falling behind. Quizzes and Final exam are based on homework questions.

LS.2 Homogeneous Linear Systems with Constant Coefficients

Math 138: Introduction to solving systems of equations with matrices. The Concept of Balance for Systems of Equations

CISC-102 Fall 2017 Week 1 David Rappaport Goodwin G-532 Office Hours: Tuesday 1:30-3:30

Solution: There are 30 choices for the first person to leave, 29 for the second, etc. Thus this exodus can occur in. = P (30, 8) ways.

Grade 7/8 Math Circles November 21/22/23, The Scale of Numbers

St Patrick's Day Math & Language

Northwest High School s Algebra 1

Unit 1 Lesson 6: Seeing Structure in Expressions

Putnam Pigeonhole Principle October 25, 2005

3.4 Pascal s Pride. A Solidify Understanding Task

Recitation 4: Quantifiers and basic proofs

MITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010

3.4 Pascal s Pride. A Solidify Understanding Task

5. BD is related to EG and MO is related to PR in the same way as FH is related to. (A) JM (B) IL (C) JL (D) IK (E) None of these

Simultaneous equations for circuit analysis

6.042/18.062J Mathematics for Computer Science December 14, 2004 Tom Leighton and Eric Lehman. Final Exam

1 Basic Combinatorics

Basic Combinatorics. Math 40210, Section 01 Fall Homework 8 Solutions

Counting Strategies: Inclusion-Exclusion, Categories

6.041SC Probabilistic Systems Analysis and Applied Probability, Fall 2013 Transcript Tutorial:A Random Number of Coin Flips

The Mathematics of Spot It

Senior Math Circles November 19, 2008 Probability II

Assignment 3 with Solutions

Math 302 Module 4. Department of Mathematics College of the Redwoods. June 17, 2011

CS 2336 Discrete Mathematics

Transcription:

6.042/18.062J Mathematics for Computer Science November 3, 2010 Tom Leighton and Marten van Dijk Problems for Recitation 15 1 The Tao of BOOKKEEPER In this problem, we seek enlightenment through contemplation of the word BOOKKEEP ER. 1. In how many ways can you arrange the letters in the word P OKE? 2. In how many ways can you arrange the letters in the word BO 1 O 2 K? Observe that we have subscripted the O s to make them distinct symbols. 3. Suppose we map arrangements of the letters in BO 1 O 2 K to arrangements of the letters in BOOK by erasing the subscripts. Indicate with arrows how the arrangements on the left are mapped to the arrangements on the right. O 2 BO 1 K KO 2 BO 1 O 1 BO 2 K KO 1 BO 2 BO 1 O 2 K BO 2 O 1 K... BOOK OBOK KOBO... 4. What kind of mapping is this, young grasshopper? 5. In light of the Division Rule, how many arrangements are there of BOOK?

Recitation 15 2 6. Very good, young master! How many arrangements are there of the letters in KE 1 E 2 P E 3 R? 7. Suppose we map each arrangement of KE 1 E 2 P E 3 R to an arrangement of KEEP ER by erasing subscripts. List all the different arrangements of KE 1 E 2 P E 3 R that are mapped to REP EEK in this way. 8. What kind of mapping is this? 9. So how many arrangements are there of the letters in KEEP ER? 10. Now you are ready to face the BOOKKEEPER! How many arrangements of BO 1 O 2 K 1 K 2 E 1 E 2 P E 3 R are there? 11. How many arrangements of BOOK 1 K 2 E 1 E 2 P E 3 R are there? 12. How many arrangements of BOOKKE 1 E 2 P E 3 R are there? 13. How many arrangements of BOOKKEEP ER are there? 14. How many arrangements of V OODOODOLL are there?

Recitation 15 3 15. (IMPORTANT) How many n-bit sequences contain k zeros and (n k) ones? ( ) n This quantity is denoted and read n choose k. You will see it almost every day k in 6.042 from now until the end of the term. Remember well what you have learned: subscripts on, subscripts off. This is the Tao of Bookkeeper.

Recitation 15 4 2 Pigeonhole Principle Solve the following problems using the pigeonhole principle. For each problem, try to identify the pigeons, the pigeonholes, and a rule assigning each pigeon to a pigeonhole. 1. In a room of 500 people, there exist two who share a birthday. 2. Suppose that each of the 115 students in 6.042 sums the nine digits of his or her ID number. Must two people arrive at the same sum? 3. In every set of 100 integers, there exist two whose difference is a multiple of 37.

Recitation 15 5 3 More Counting Problems Solve the following counting problems. Define an appropriate mapping (bijective or k-to-1) between a set whose size you know and the set in question. 1. (IMPORTANT) In how many ways can k elements be chosen from an n-element set {x 1, x 2,..., x n }? 2. How many different ways are there to select a dozen donuts if five varieties are available? (We discussed a bijection for this set in Recitation 15. Now use that bijection to give a count.) 3. An independent living group is hosting eight pre-frosh, affectionately known as P 1,..., P 8 by the permanent residents. Each pre-frosh is assigned a task: 2 must wash pots, 2 must clean the kitchen, 1 must clean the bathrooms, 1 must clean the common area, and 2 must serve dinner. In how many ways can P 1,..., P 8 be put to productive use? 4. Suppose that two identical 52-card decks of are mixed together. In how many ways can the cards in this double-size deck be arranged?

Recitation 15 6 4 Fun with Phonology: Hawaiian The Hawaiian language is rich in vowels: it contains 8 consonants and 25 vowels 1! In addition, every word in Hawaiian must end in a vowel and must not contain two consonants in a row. Let s assume that all combinations of vowels and consonants that satisfy these constraints are valid. We d like to know how many n-phoneme words there are in Hawaiian. (A phoneme is either a single vowel or a single consonant. Assume no phoneme can be both a vowel and a consonant.) For simplicity, let s assume n is even. 1. Before tackling the general problem, work out how many different words there are with exactly 4 phonemes. (Which distributions of vowels and consonants are possible?) 2. Now for the general case. Let A be the set of all n-phoneme words, and let A k be the set of all n-phoneme words with exactly k consonants. Express A in terms of A k for all possible k. 3. Now let s find A k for an arbitrary k. For simplicity s sake, assume Hawaiian has only one consonant and only one vowel. Find a bijection between A k and a set of arbitrary sequences of 0 and 1 of length p. What is p? 4. Using this bijection, compute A k. vowel. 5. How would you change your expression for A k to allow for 8 consonants and 25 vowels, not just one of each? 1 Counting long vowels and diphthongs. For this problem, treat each of the 25 vowels as a unique single

Recitation 15 7 6. How many n-phoneme words are there in Hawaiian? (You don t have to find a closed form for your expression.)

Recitation 15 Appendix: Basic Counting Notions 8 Rule 1 (Bijection Rule). If there exists a bijection f : A B, then A = B. Rule 2 (Generalized Pigeonhole Principle). If X > k Y, then for every function f : X Y there exist k + 1 different elements of X that are mapped to the same element of Y. If more than n pigeons are assigned to n holes, then there must exist two pigeons assigned to the same hole. A k-to-1 function maps exactly k elements of the domain to every element of the range. For example, the function mapping each ear to its owner is 2-to-1: ear 1 person A ear 2 ear 3 person B ear 4 ear 5 person C ear 6 Rule 3 (Division Rule). If f : A B is k-to-1, then A = k B. Rule 4 (Product Rule). If P 1, P 2,... P n are sets, then: P 1 P 2 P n = P 1 P 2 P n Rule 5 (Generalized Product Rule). Let S be a set of length-k sequences. If there are: ˆ n 1 possible first entries, ˆ n 2 possible second entries for each first entry, ˆ n 3 possible third entries for each combination of first and second entries, etc. then: S = n 1 n 2 n 3 n k Rule 6 (Sum Rule). If A 1,..., A n are disjoint sets, then: n A 1 A n = A k k=1

MIT OpenCourseWare http://ocw.mit.edu 6.042J / 18.062J Mathematics for Computer Science Fall 2010 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.