Skip to main content

This module was created to supplement Python’s itertools module, filling in gaps in the following areas of basic combinatorics:

  1. ordered and unordered m-way combinations,

  2. generalizations of the four basic occupancy problems (‘balls in boxes’), and

  3. constrained permutations, otherwise known as the ‘off-by-m’ problem.

NOTE: The Python Package Index’s documentation system is currently broken. Pending fixes, I’m directing users to the documentation on my personal website:

http://phillipmfeldman.org/Python/combinatorics.html

Release history Release notifications | RSS feed

This release

1.4.5 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page