CS1802 Week 3: Counting Next Week : QUIZ 1 (30 min)

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

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CSCI 2200 Foundations of Computer Science (FoCS) Solutions for Homework 7

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

Topics to be covered

With Question/Answer Animations. Chapter 6

Counting in Algorithms

PERMUTATIONS AND COMBINATIONS

Foundations of Computing Discrete Mathematics Solutions to exercises for week 12

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Counting. Chapter 6. With Question/Answer Animations

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

CONTENTS CONTENTS PAGES 11.0 CONCEPT MAP A. PERMUTATIONS a EXERCISE A B. COMBINATIONS a EXERCISE B PAST YEAR SPM

MAT 115: Finite Math for Computer Science Problem Set 5

CPCS 222 Discrete Structures I Counting

Sec 5.1 The Basics of Counting

Jong C. Park Computer Science Division, KAIST

Solutions to Problem Set 7

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

The Art of Counting. Bijections, Double Counting. Peng Shi. September 16, Department of Mathematics Duke University

Math Fall 2011 Exam 2 Solutions - November 1, 2011

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

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

50 Counting Questions

Chapter 7. Intro to Counting

11.3B Warmup. 1. Expand: 2x. 2. Express the expansion of 2x. using combinations. 3. Simplify: a 2b a 2b

6.1.1 The multiplication rule

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

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

Mat 344F challenge set #2 Solutions

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together?

Algebra II- Chapter 12- Test Review

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

Math 3012 Applied Combinatorics Lecture 2

Algebra 2 Notes Section 10.1: Apply the Counting Principle and Permutations

Midterm practice super-problems

Probability and Counting Techniques

IB HL Mathematics Homework 2014

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

Bayes stuff Red Cross and Blood Example

Review I. October 14, 2008

In this section, we will learn to. 1. Use the Multiplication Principle for Events. Cheesecake Factory. Outback Steakhouse. P.F. Chang s.

Discrete Mathematics with Applications MATH236

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

Simple Counting Problems

Multiple Choice Questions for Review

Algebra. Recap: Elements of Set Theory.

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}?

CHAPTER 5 BASIC CONCEPTS OF PERMUTATIONS AND COMBINATIONS

HOMEWORK ASSIGNMENT 5

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

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

JIGSAW ACTIVITY, TASK # Make sure your answer in written in the correct order. Highest powers of x should come first, down to the lowest powers.

Advanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY

CS1800: More Counting. Professor Kevin Gold

PERMUTATIONS AND COMBINATIONS

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

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

DISCUSSION #8 FRIDAY MAY 25 TH Sophie Engle (Teacher Assistant) ECS20: Discrete Mathematics

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

Section 1.6 The Factor Game

Unit on Permutations and Combinations (Counting Techniques)

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

MAT3707. Tutorial letter 202/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/202/1/2017

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

Chapter 2. Permutations and Combinations

INDIAN STATISTICAL INSTITUTE

Elementary Combinatorics

Permutations and Combinations Practice Test

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

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

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

About Permutations and Combinations: Examples

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

STATISTICAL COUNTING TECHNIQUES

Discrete Mathematics. Spring 2017

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

Counting integral solutions

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

MATH 351 Fall 2009 Homework 1 Due: Wednesday, September 30

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

Unit 5 Radical Functions & Combinatorics

Counting principles, including permutations and combinations.

With Question/Answer Animations. Chapter 6

Permutations and Combinations. Combinatorics

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

2. Combinatorics: the systematic study of counting. The Basic Principle of Counting (BPC)

CISC 1400 Discrete Structures

Principle of Inclusion-Exclusion Notes

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

Mathematics. ( (Chapter 7) (Permutations and Combinations) (Class XI) Exercise 7.3

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

Combinatorics problems

CS 3233 Discrete Mathematical Structure Midterm 2 Exam Solution Tuesday, April 17, :30 1:45 pm. Last Name: First Name: Student ID:

Introductory Probability

MC215: MATHEMATICAL REASONING AND DISCRETE STRUCTURES

CS70: Lecture Review. 2. Stars/Bars. 3. Balls in Bins. 4. Addition Rules. 5. Combinatorial Proofs. 6. Inclusion/Exclusion

n! = n(n 1)(n 2) 3 2 1

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

Transcription:

CS1802 Discrete Structures Recitation Fall 2018 September 25-26, 2018 CS1802 Week 3: Counting Next Week : QUIZ 1 (30 min) Permutations and Combinations i. Evaluate the following expressions. 1. P(10, 4) ( ) 12 2. 4 ( ) 1000 3. 998 ii. You own 10 pictures. 1. In how many ways can you select and display 4 pictures side by side on a wall? 2. In how many ways can you select 4 pictures to give to your friend Alice on her birthday? 1

iii. In a certain country, license plates are strings consisting of six different characters to be selected from the vowels A, E, I, O, U and the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. For example, 3 7 E 4 A 9 is a valid license plate. 1. How many license plates are possible? 2. How many license plates would have been possible if repetitions had been allowed? 3. How many license plates are possible that have exactly one vowel? 4. How many license plates are possible that have exactly two vowels? 5. How many license plates with exactly two vowels would have been possible if repetitions had been allowed? iv. There are 10 different books on a shelf. Four of them are red and the other six are black. How many different arrangements of these books are possible if 1. all red books must be together? 2. no two red books may be next to each other? 2

Balls in Bins How many of the integers from 1 to 99,999 have the digit sum 10? For example, 34,201 is such an integer, but 34,202 is not. Binomial Theorem i. What is the coefficient of the term with x 4 in the expansion of (x + y) 7? ii. What is the coefficient of the term with x 4 in the expansion of (x + 2y) 7? iii. What is the coefficient of the term with x 4 in the expansion of (x y) 7? 3

Why is Jimmy s solution wrong? Count all passwords of exactly 8 capital letters that have a letter occurring at least 5 times. Examples: SAATARAA, TUUURUUE, ABABABBB. Jimmy s solution: - choose a letter to repeat 26 choices - choose 5 places to put it ( 8 5) choices - fill the other 3 spaces with any 3 letters 26 3 choices Product rule gives 26* ( 8 5) * 26 3. Why is this incorrect? How can one count correctly? 4

Optional, more difficult. Take these home (not to be submitted) i. If we expand the trinomial (x + y + z) 10, what is the coefficient of term x 3 y 2 z 5? ii. (difficulty ) A derangement of 1 2 3... n is a permutation that leaves none of these numbers in place. By inspection, the derangements of 123 are 312 and 231. Find the number of derangements of 1 2 3 4 5 using Inclusion-Exclusion 5

iii. (difficulty ) Prove that A + B + A B C A B + A C + B C iv. (difficulty ) In a class of 20 students, each student has at least 14 friends (friends are reciprocal). Show that there are 4 students that form a clique, that is all 4 are pairwise friends. v. (difficulty ) Why is Jimmy s solution wrong? 10 men who are pairs of brothers (a 1 b 1, a 2 b 2, a 3 b 3, a 4 b 4, a 5 b 5 ) are to blind-date 10 women who are pairs of sisters (x 1 y 1, x 2 y 2, x 3 y 3, x 4 y 4, x 5 y 5 ) such that any two brothers do not date two corresponding sisters, that is for example if (a 2, x 4 ) is a date then b 2 cannot date y 4. In how many ways can the dates be arranged? Jimmy s solution: There are 10! ways to arrange the dates without restrictions. There are 5! 2 5 ways to arrange dates that violates the restriction since it comes down to permuting the pairs and then choosing for each pair which brother dates which sister (2 possibilites per 6

pair). So the answer is 10! 5! 2 5. Why is this wrong? vi. (difficulty ) Virgil has a solution, also wrong: We need the number of derangements = permutations without fix point for n=5. Examples: 21453, 41253. Not a derangement : 52134 because 2 is in original position. For n=5 there are D 5 = 44 derangements which can be counted by brute force or by Inclusion-Exclusion (next exercise). Then the answer is 5! (choose a permutation of the 5 men a 1..a 5 ) * 2 5 (choose which sister to date) * D 5 (choose a derangement for brothers b 1..b 5 ). Why is Virgil s solution wrong? 7

vii. (difficulty ) What is the correct count for this brothers-sisters blind-date question? viii. (difficulty ) Consider an equilateral triangle of side length n, which is divided into unit triangles, as shown. A valid path runs from the triangle in the top row to the middle triangle in the bottom row, such that adjacent triangles in our path share a common edge and the path never travels up (from a lower row to a higher row) or revisits a triangle. An example of one such path is illustrated below for n = 5. Compute the number of paths. Hint: Construct a one-to-one mapping between valid paths and ordered lists of positive integers (a 1, a 2,..., a n ) with a i i. Then count the ordered lists. 8