In this problem, we investigate the effect of various assumptions on the number of ways of placing

Question:

In this problem, we investigate the effect of various assumptions on the number of ways of placing n balls into b distinct bins.

a. Suppose that the n balls are distinct and that their order within a bin does not matter. Argue that the number of ways of placing the balls in the bins is bn.

b. Suppose that the balls are distinct and that the balls in each bin are ordered. Prove that there are exactly (b + n – 1)!/(b – 1)! ways to place the balls in the bins. 

c. Suppose that the balls are identical, and hence their order within a bin does not matter. Show that the number of ways of placing the balls in the bins is (n − 1n). Of the arrangements in part (b), how many are repeated if the balls are made identical?

d. Suppose that the balls are identical and that no bin may contain more than one ball, so that n − b. Show that the number of ways of placing the balls is (bn).

e. Suppose that the balls are identical and that no bin may be left empty. Assuming that n ≥ b, show that the number of ways of placing the balls is (− 1b – 1).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: