All k-subsets from an n-set Icon

All k-subsets from an n-set

This recipe yields each subset of size k from a super set of size n.

All k-subsets from an n-setOverview

This recipe yields each subset of size k from a super set of size n. I thought I had seen a recipe that did this before, but when I needed it I couldn't find it. There are two methods. The first operates on sets of integers of the form range(n). The seconds operates on arbitrary sets or lists.

NEW

Fixed some bugs.

All k-subsets from an n-setInformation

Version
1.0
Date
02.05.10
License
Free
Language
English
File Size
N/A
Developer
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
Classmethod emulation in python2.1 Icon
Class methods were introduced in python2.2.
Lego Mindstorms Bluetooth interface Icon
The new Lego Mindstorms NXT brick has an on-board Bluetooth transceiver
Sudoku Solver Script Icon
This is a simple text based Sadoku puzzle solver.
More
Principal Component Analysis (PCA) Icon
A class that carries out Principal Component Analysis (PCA).
Free
CRC64 Icon
The algorithm to compute the CRC is described in the ISO 3309 standard
Mini Fake DNS server Icon
Minimal python dns server, it only replies with a selected ip in an A record
Stripchart Plotter Icon
OpenGL Stripchart plotter for a user defined number of channels.
Free
Metakit for safe reading and writing Icon
Metakit is a reliable/lightweight/fast database library that python can use.
Free
Album Track List Generator Icon
Album Track List Generator allows you to extract artist, album title and track t
Free
SRCDS Icon
A library to interface with Half-Life2 Dedicated Servers
Free
Mod_python Icon
Apache module that embeds the Python interpreter within the server.
More