On 4/11/11 2:35 PM, Stefan wrote:
I did not manage to create a meaningful version of this example using
Bitsets, since they don't support an optimized subsets() method.

The Bitsets class was created to support the python set api, which doesn't include a subsets() method. Patches are welcome to support an optimized subsets method!

The current code could also be optimized quite a bit too. For example, the len() function could use various bit tricks to get the count much quicker than just looping through all bits in the set.

Thanks,

Jason


--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to