Stars and columns
Stars and columns
Introduction
Stars and Bars is a classic combinatorial method that allows you to count the number of ways to distribute identical objects among distinct containers.
The idea is very simple:
- stars
*represent objects, - bars
|separate containers.
Theorem
Problem statement
Given:
- identical objects,
- distinct containers.
In how many ways can these objects be distributed among containers?
We can represent a distribution as a sequence of:
- stars
*, - bars .