Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Finding all Combinations (subsets)

by tye (Sage)
on Oct 01, 2004 at 20:49 UTC ( #395756=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops qw( NestedLoops );
    
    ...
            if  @ARGV;
    } while(  @subSet= @set[ $iter->() ]  );
    print "$count subsets for $size in ", time()-$start, " secs.$/";
    
  2. or download this
    sub powerSetGen3 {
        my $end= shift(@_) - 1;
    ...
            return @idx;
        };
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395756]
help
Chatterbox?
[shmem]: no doubt, Lady_Aleena - maybe others, too. A whole barrel just for cookies would be too much for one person alone.
[Lady_Aleena]: shmem, I am a wine drinker. 8)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-04-26 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.