Introduction
Stars and Bars is a standard combinatorial technique used to count the number of ways to distribute identical objects into distinct containers.
It is especially useful in problems about integer solutions, grouping, and distributions.
Theorem
Problem Statement
Suppose we have identical objects and want to distribute them into distinguishable bins.
A convenient way to visualize this is to represent:
- each object by a star
* - each separator between bins by a bar
|
So we arrange:
- stars
- bars
For example, if we place identical objects into bins, some possible arrangements are:
