View this project in action: https://buggi22.github.io/subsetsAnimation
This animation illustrates an algorithm for generating all possible subsets of size k taken from the set {1, ..., n}.
For a more detailed description of the underlying algorithm, see:
- Combinatorics: Topics, Techniques, Algorithms by Peter J. Cameron (1994), Algorithm 3.12.3 on page 43.
(c) 2015 Andrew Leverentz