Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Powerset

Reply
Thread Tools

Powerset

 
 
Tim Rowe
Guest
Posts: n/a
 
      09-15-2003
Has anybody written a good powerset function for that nice new set
datatype we now have? I've found a powerset operator for Python lists
on the net, but that depends on lists being indexable which sets
aren't. I suppose one answer is to iterate the set into a list, use
the powerset I've got, then iterate the answer back int a set...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Fast powerset function Evan Klitzke Python 1 07-14-2007 06:07 AM
Re: Fast powerset function Evan Klitzke Python 6 07-13-2007 05:56 PM
Re: Fast powerset function Evan Klitzke Python 0 07-13-2007 06:53 AM
powerset Gunnar G C++ 1 08-09-2005 11:46 AM
powerset operation matt Perl 0 01-17-2004 06:50 AM



Advertisments