Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395756]
choroba hates the CB and its space insertion
Eily wondered if the space was there for a reason
[Eily]: like "Replace the T, replace the y, skip one, replace the o"
[Discipulus]: it works anyway, good morning choroba
[Discipulus]: choroba i'm considering to add some connection checking to your CB tk program: something like..

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-07-24 09:17 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (348 votes). Check out past polls.