MHB How Can I Understand and Use the Stars and Bars Selection Formula?

  • Thread starter Thread starter CStudent
  • Start date Start date
  • Tags Tags
    Stars
Click For Summary
SUMMARY

The discussion focuses on understanding the Stars and Bars selection formula, specifically the application of the formula $\dbinom{N+K-1}{N}$ for distributing indistinguishable objects into distinguishable bins. The example provided illustrates how to distribute 16 indistinguishable balls into 4 drawers with the condition that each drawer contains at least 3 balls. Participants clarify the logic behind using dividers to separate the stars (balls) and how to calculate combinations using binomial coefficients. The conversation also touches on variations of the problem, such as ensuring each drawer contains an odd number of balls.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with binomial coefficients and their properties
  • Basic knowledge of the Stars and Bars theorem
  • Ability to visualize combinatorial arrangements
NEXT STEPS
  • Study the application of the Stars and Bars theorem in combinatorial problems
  • Learn about binomial coefficients and their calculations
  • Explore variations of the Stars and Bars method for different constraints
  • Practice problems involving the distribution of indistinguishable objects
USEFUL FOR

Mathematicians, students studying combinatorics, educators teaching probability and statistics, and anyone interested in solving distribution problems using combinatorial methods.

CStudent
Messages
14
Reaction score
0
Hey.

I find it difficult to understand the logic and the appropriate usage of the formula:
$\dbinom{N+K-1}{N}$

I don't really understand what's posed behind the scenes of that one.

So I have some example for an exercise which requires the usage of this formula, but I know only to substitute robotically numbers without any understanding.

* How many ways we can insert 16 indistinguishable balls to 4 drawers such that in every drawer we have at least 3 balls?

So I know we should insert at the beginning 3 balls to every drawer and the remainder is 4 balls.
How do I continue and use this formula? I want to understand the formula.

Thanks.
 
Physics news on Phys.org
Hi CStudent,

It is the extended form where zero balls in a drawer is allowed.
Let's start with the form where every drawer must have at least 1 ball.At least 1 star in every drawer
Suppose we have $n=4$ stars to divide over $k=3$ drawers with at least $1$ star in each.
It means we have to divide $k-1=2$ dividers over the $n-1=3$ gaps between the stars, yes?
For instance like this:
\begin{array}{}\star && \star &\mid& \star &\mid & \star & = & \text{$n$ stars in $k$ drawers}\end{array}
It gives us $\binom{n-1}{k-1}$ possibilities.

Now do the same thing with $n+k$ stars.
For instance:
\begin{array}{}\star && \star &\mid& \star &\mid & \star &&\star && \star && \star & = & \text{$n+k$ stars in $k$ drawers}\end{array}
It means that there are $\binom{n+k-1}{k-1}$ possibilities to have at least 1 star in every drawer, yes?
At least 0 stars in every drawer
Now remove $1$ star from each drawer, removing a total of $k$ stars. The example becomes:
\begin{array}{}\star&\mid &\mid & \star &\star & \star & = & \text{$n$ stars in $k$ drawers ($0$ allowed)}\end{array}
It brings us back to $n$ stars where now every drawer contains at least $0$ stars.
Therefore there are still $\binom{n+k-1}{k-1}$ possibilities.
And since generally $\binom NK =\binom N{N-K}$, it follows that $\binom{n+k-1}{k-1} = \binom{n+k-1}{n}$.
 
I lost you here:
t means we have to divide k−1=2 k−1=2 dividers over the n−1=3 n−1=3 gaps between the stars, yes?
 
CStudent said:
I lost you here:
It means we have to divide k−1=2 dividers over the n−1=3 gaps between the stars, yes?

How can we divide $n=4$ stars over $k=3$ drawers?
Let's list them:
\[\begin{array}{}1.&\star &\mid& \star &\mid& \star & & \star \\
2.&\star &\mid& \star && \star &\mid & \star \\
3.&\star && \star &\mid& \star &\mid & \star \end{array}\]
That's $3$ possibilities, isn't it?
It depends on where we put the dividers (bars) that indicate which stars go into which drawer.
There are 3 gaps to choose from, and we have 2 dividers.
Choosing 2 from 3 gaps is indeed $\binom 32=3$ possibilities.
 
There are 3 gaps to choose from, and we have 2 dividers.

Don't that.
I understand there are 3 gaps and 2 dividers, I can't visualize how I choose dividers from gaps. I don't understand what does it mean at al...
Thank you
 
CStudent said:
There are 3 gaps to choose from, and we have 2 dividers.

Don't that.
I understand there are 3 gaps and 2 dividers, I can't visualize how I choose dividers from gaps. I don't understand what does it mean at al...
Thank you

I'm not sure what you don't understand... can you clarify?

We choose 2 gaps from the 3 available gaps.
In those 2 gaps we put a divider.
The result is that we get the division of the stars to put into the 3 drawers.
 
Klaas van Aarsen said:
I'm not sure what you don't understand... can you clarify?

We choose 2 gaps from the 3 available gaps.
In those 2 gaps we put a divider.
The result is that we get the division of the stars to put into the 3 drawers.

Thanks!
What if I would like to insert 16 indistinguishable balls into 4 drawers such that every drawer has and odd number of balls?
 
CStudent said:
Thanks!
What if I would like to insert 16 indistinguishable balls into 4 drawers such that every drawer has and odd number of balls?

We start with $\frac{16+4}{2}=10$ balls and we put at least 1 ball in every drawer.
To do so, we select $3$ of the $9$ gaps between the balls for a total of $\binom 93$ combinations.
Then we double the number of balls in each drawer and afterwards we remove a ball from each drawer.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 29 ·
Replies
29
Views
4K