polymerist.maths.combinatorics.partitions
For explicitly enumerating partitions of sets and multisets
Functions
|
Enumerates all integer partitions of n |
|
Enumerates all multisets of k integers whose sum is n (respects order and includes 0s) |
|
Greedy algorithm for making change for a given total |
Module Contents
- polymerist.maths.combinatorics.partitions.int_partitions(n: int, _pivot: int = 1) Generator[tuple[int], None, None][source]
Enumerates all integer partitions of n