ArticleslgStudy

astronomy

Stars and bars (combinatorics)

Stars and bars (combinatorics) is a astronomy topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Stars and bars (combinatorics) rather than just read about it. In short: In combinatorics, stars and bars (also called sticks and stones, balls and bars, and dots and dividers) is a graphical aid for deriving certain combinatorial theorems. It can be used to solve a variety of counting problems, such as how many ways there are to put n indistinguishable balls into k distinguishable bins.

Stars and bars (combinatorics) — main illustration
Stars and bars (combinatorics) — illustration

Key takeaways

  • Stars and bars (combinatorics) belongs to astronomy; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Stars and bars (combinatorics) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Stars and bars (combinatorics) from memory before moving on to harder problems.

Reference excerpt

In combinatorics, stars and bars (also called sticks and stones, balls and bars, and dots and dividers) is a graphical aid for deriving certain combinatorial theorems. It can be used to solve a variety of counting problems, such as how many ways there are to put n indistinguishable balls into k distinguishable bins. The solution to this particular problem is given by the binomial coefficient ( n + k − 1 k − 1 ) {\displaystyle {\tbinom {n+k-1}{k-1}}} , which is the number of subsets of size k − 1 that can be formed from a set of size n + k − 1. If, for example, there are two balls and three bins, then the number of ways of placing the balls is ( 2 + 3 − 1 3 − 1 ) = ( 4 2 ) = 6 {\displaystyle {\tbinom {2+3-1}{3-1}}={\tbinom {4}{2}}=6} . The table shows the six possible ways of distributing the two balls, the strings of stars and bars that represent them (with stars indicating balls and bars separating bins from one another), and the subsets that correspond to the strings. As two bars are needed to separate three bins and there are two balls, each string contains two bars and two stars. Each subset indicates which of the four symbols in the corresponding string is a bar.

Statements of theorems The stars and bars method is often introduced specifically to prove the following two theorems of elementary combinatorics concerning the number of solutions to an equation.

Theorem one For any pair of positive integers n and k, the number of k-tuples of positive integers whose sum is n is equal to the number of (k − 1)-element subsets of a set with n − 1 elements. For example, if n = 10 and k = 4, the theorem gives the number of solutions to x1 + x2 + x3 + x4 = 10 (with x1, x2, x3, x4 > 0) as the binomial coefficient

( n − 1 k − 1 ) = ( 10 − 1 4 − 1 ) = ( 9 3 ) = 84 , {\displaystyle {\binom {n-1}{k-1}}={\binom {10-1}{4-1}}={\binom {9}{3}}=84,}

where ( n − 1 k − 1 ) {\displaystyle {\tbinom {n-1}{k-1}}} is the number of combinations of n − 1 elements taken k − 1 at a time. This corresponds to compositions of an integer.

Theorem two For any pair of positive integers n and k, the number of k-tuples of non-negative integers whose sum is n is equal to the number of multisets of size k − 1 taken from a set of size n + 1, or equivalently, the number of multisets of size n taken from a set of size k, and is given by

( n + k − 1 k − 1 ) . {\displaystyle {\binom {n+k-1}{k-1}}.}

For example, if n = 10 and k = 4, the theorem gives the number of solutions to x1 + x2 + x3 + x4 = 10 (with x1, x2, x3, x4 ≥ 0 {\displaystyle \geq 0} ) as

… excerpt ends here. Continue reading the full article.

Illustrations

Stars and bars (combinatorics): The three-choose-two combination yields two results, depending on whether a bin is allowed to have zero items.  In both results the number of bins is 3.  If zero is not allowed, the number of cookies should be n = 6, as described in the previous figure.  If zero is allowed, the number of cookies should only be n = 3.
The three-choose-two combination yields two results, depending on whether a bin is allowed to have zero items. In both results the number of bins is 3. If zero is not allowed, the number of cookies should be n = 6, as described in the previous figure. If zero is allowed, the number of cookies should only be n = 3.

Worked examples

Example 1 — a first encounter with Stars and bars (combinatorics)

Start with the simplest possible case. Write down what Stars and bars (combinatorics) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In astronomy, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Stars and bars (combinatorics) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Stars and bars (combinatorics) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Stars and bars (combinatorics)

In research
Stars and bars (combinatorics) appears in astronomy research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Stars and bars (combinatorics) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Stars and bars (combinatorics) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Applied probability, Combinatorics, so understanding it makes those chapters shorter.
In everyday life
Look for Stars and bars (combinatorics) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Stars and bars (combinatorics)” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Stars and bars (combinatorics) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Stars and bars (combinatorics) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Stars and bars (combinatorics) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Stars and bars (combinatorics) in simple terms?

In combinatorics, stars and bars (also called sticks and stones, balls and bars, and dots and dividers) is a graphical aid for deriving certain combinatorial theorems. It can be used to solve a variety of counting problems, such as how many ways there are to put n indistinguishable balls into k dis…

Why does Stars and bars (combinatorics) matter?

Because it connects several astronomy ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Stars and bars (combinatorics)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Stars and bars (combinatorics).

Tags

  • Applied probability
  • Combinatorics

Keep exploring