CSE 21: Midterm 1 Solution

Similar documents
8.2 Union, Intersection, and Complement of Events; Odds

Developed by Rashmi Kathuria. She can be reached at

The probability set-up

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

3 The multiplication rule/miscellaneous counting problems

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

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

The probability set-up

Chapter 1. Probability

Intermediate Math Circles November 1, 2017 Probability I

2.5 Sample Spaces Having Equally Likely Outcomes

Probability. Ms. Weinstein Probability & Statistics

PLAYERS AGES MINS.

Mathematical Foundations HW 5 By 11:59pm, 12 Dec, 2015

PROBABILITY. 1. Introduction. Candidates should able to:

Chapter 1. Probability

STAT 430/510 Probability Lecture 3: Space and Event; Sample Spaces with Equally Likely Outcomes

Section 5.4 Permutations and Combinations

3 The multiplication rule/miscellaneous counting problems

Section 5.4 Permutations and Combinations

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

Pan (7:30am) Juan (8:30am) Juan (9:30am) Allison (10:30am) Allison (11:30am) Mike L. (12:30pm) Mike C. (1:30pm) Grant (2:30pm)

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

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

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

P(X is on ) Practice Test - Chapter 13. BASEBALL A baseball team fields 9 players. How many possible batting orders are there for the 9 players?

Classical vs. Empirical Probability Activity

If you roll a die, what is the probability you get a four OR a five? What is the General Education Statistics

Name Date. Sample Spaces and Probability For use with Exploration 12.1

Math-Essentials. Lesson 9-2: Counting Combinations

CSE 21 Mathematics for Algorithm and System Analysis

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

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

Chapter 2. Permutations and Combinations

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

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

Chapter 4: Introduction to Probability

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

n r for the number. (n r)!r!

1. Layout all 20 cards face down in 4 rows of This game is played just like Memory or

Math 1111 Math Exam Study Guide

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

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

BMT 2018 Combinatorics Test Solutions March 18, 2018

Elementary Combinatorics

{ a, b }, { a, c }, { b, c }

Probability Simulation User s Manual

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

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

4.1 Sample Spaces and Events

More Probability: Poker Hands and some issues in Counting

Name: Exam 1. September 14, 2017

13.3 Permutations and Combinations

CIS 2033 Lecture 6, Spring 2017

Chapter 1: Sets and Probability

Def: The intersection of A and B is the set of all elements common to both set A and set B

MGF 1106: Exam 2 Solutions

Counting integral solutions

Probability. Dr. Zhang Fordham Univ.

Contemporary Mathematics Math 1030 Sample Exam I Chapters Time Limit: 90 Minutes No Scratch Paper Calculator Allowed: Scientific

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

7.1 Experiments, Sample Spaces, and Events

CISC 1400 Discrete Structures

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

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

Name Instructor: Uli Walther

CS 237 Fall 2018, Homework SOLUTION

I. WHAT IS PROBABILITY?

19.2 Permutations and Probability Combinations and Probability.

It is important that you show your work. The total value of this test is 220 points.

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

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

Principles of Mathematics 12: Explained!

Introduction to Counting and Probability

7 = Part-Part-Whole. Games = 6 + 1

Here are two situations involving chance:

Review I. October 14, 2008

Combinatorics: The Fine Art of Counting

Combinatorial Proofs

CHAPTER 8 Additional Probability Topics

Section 7.1 Experiments, Sample Spaces, and Events

Topics to be covered

Dungeon Crawler Card Game

2005 Galois Contest Wednesday, April 20, 2005

POST TEST KEY. Math in a Cultural Context*

4.3 Rules of Probability

NRP Math Challenge Club

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

Directions: Solve the following problems. Circle your answers. length = 7 cm. width = 4 cm. height = 3 cm

CSC/MATA67 Tutorial, Week 12

Problem Set 2. Counting

Reading 14 : Counting

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Underleague Game Rules

Discrete Structures for Computer Science

PROBABILITY TOPIC TEST MU ALPHA THETA 2007

Conditional Probability Worksheet

UNIT 9B Randomness in Computa5on: Games with Random Numbers Principles of Compu5ng, Carnegie Mellon University - CORTINA

Math 166: Topics in Contemporary Mathematics II

Transcription:

CSE 21: Midterm 1 Solution August 16, 2007 No books, no calculators. Two double-sided 3x5 cards with handwritten notes allowed. Before starting the test, please write your test number on the top-right hand corner of each page. Name: Student ID: Problem Score 1 /15 2 /15 3 /15 4 /20 5 /20 6 /15 Extra Credit /15 Total /100 1

1. 15 pts. How many ways are there for a class of 30 students to break up into ten groups of 3? Solution: We can first group the students into group1, group2... group10. This is a multinomial problem, so the answer is ( 30 3;3;3;3;3;3;3;3;3. However, this overcounts, because the groups aren t distinct (group1 with students A,B,C and group2 with students D,E,F is the same as group1 with students D,E,F and group2 with students A,B,C. We need to divide by the permutations of the groups, or 10!. So, the final answer is 30! 10!(3! 10. 2

2. 15 pts. We have ten students: Ann, Ann, Bob, Bob, Cathy, Dinar, Ephram, Frank, Giselle, Hui. Ann and Ann are identical twins, and so are Bob and Bob. They re so identical that we can t distinguish them (for example, there s only one way to line Ann and Ann up in a row, because we can t tell the difference between Ann first and Ann second and vice-versa. Ann and Ann are best friends and always stand next to each other. Bob and Bob fight with each other and always make sure at least one person is between them. How many ways are there to arrange these ten people in a circle? Solution: First, make Ann/Ann a conjoined person (conceptually, not surgically. Now we have 9 people to arrange in a circle: 7 distinct, and two identical, and the identical people must have at least one person in-between. Each circle has to have an AnnAnn. Let s consider breaking the circle before that AA. Now we have a line starting with AA. In order to deal with Bob and Bob, let use the complement principle. Total number of ways to arrange everyone but Ann/Ann is 8! 2! (La Jolla problem. Total number of ways to arrange everyone but Ann/Ann with Bob next to Bob : 7! Final answer: 8! 2! 7! 3

3. 15 pts. A man is dealt 2 diamond cards from an ordinary deck of 52 cards. If he is dealt 5 more cards, what is the probability that he ends up with at least 5 of his 7 cards as diamonds? Solution: There are 50 remaining cards of which 11 are diamonds. Let s break it into cases based on how many diamonds he ends up with: 5 diamonds: he had to be dealt exactly 3 diamonds out of 11, and then 2 out of the remaining 39: ( 11( 39 3 2. 6 diamonds: he had to be dealt exactly 4 diamonds out of 11, and then 1 out of the remaining 39: ( 11( 39 4 1. 7 diamonds: he had to be dealt exactly 5 diamonds out of 11: ( 11 5. The probability of ending up with 5, 6, or 7 diamonds: ( 11 ( 39 ( 3 2 + 11 ( 39 ( 4 1 + 11 5 ( 50 5 4

4. 20 pts. We roll five identical dice. (a How many distinguishable outcomes are possible? (For example, 1,5,5,5,5 is considered to be the same as 5,5,1,5,5. (b In how many outcomes are there exactly 3 different numbers showing? Solution: Part a We are assigning a count to each possible die roll of 1-6. We can view this as a bars and stars problem where we assign 5 stars (the number of dice to 5 bars (the 6 die values. Answer is ( 10 5. Part b First, we choose the 3 different numbers from the 6 total numbers. There are ( 6 3 ways to do that. Then, we have a bars and stars problem again, with 5 stars and 2 bars (the 3 chosen die values. Final answer: ( ( 6 7 3 5 5

5. 20 pts. How many 13-card hands are void in at least one suit (that is, have at most 3 suits? Solution: Define S S to be the set of hands void in spades. Define S H to be the set of hands void in hearts. Define S D to be the set of hands void in diamonds. Define S C to be the set of hands void in clubs. Let A 1 be the sum of the sizes of the 4 sets. Let A 2 be the sum of the pairwise intersections of the 4 sets. Let A 3 be the sum of the threeway intersections of the 4 sets. Let A 4 be the sum of the four-way intersections of the 4 sets. Our answer will be A 1 A 2 + A 3 A 4. Each of the S sets is of size ( 39 13. A1 equals ( 4( 39 1 13. The pairwise intersections are void in two suits. First, pick two suits ( ( 4 ( 2, then choose 13 cards from those two suits: 26 13. The threeway intersections are void in three suits. First pick those three suits ( ( 4 ( 3, then choose 13 cards from the remaining suit: 13. The fourway intersection is empty. You can t have 13 cards with no cards in any suit. Final answer: ( ( ( ( ( ( 4 39 4 26 4 13 + 0 1 13 2 13 3 13 6

6. 15 pts. A theater club gives 7 plays in one season. Five women in the club are cast in 3 of the plays. Prove that some play has at least 3 women in its cast. Solution: There are fifteen total appearances by women, so the average women/play is 15/7=2.1. By the pigeonhole principle, the max women/play 2.1. Since the max is an integer, the max women/play 3 7

7. 15 pts. Extra Credit. Given the following 16 points on the Euclidean plan, how many triangles can be drawn whose 3 vertices are all among these points? Solution: Let s use the complement principle. The total number of ways to choose 3 vertices from 16 points is ( 16 3. Of those, some aren t triangles because they re lines. In order to be a line, they must all in a row horizontally, vertically, or diagonally. There are 4 rows, and for each row, ( 4 3 ways to choose the vertices. There are 4 colums, and for each column, ( 4 3 ways to choose the vertices. There are four diagonals of size 3. There are two diagonals of size 4, and for each, there are ( 4 3 ways to choose the vertices. Final answer: ( ( 16 4 (10 + 4 3 3 8