Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: possible combinations in sequence

by grinder (Bishop)
on Jun 09, 2006 at 05:46 UTC ( #554429=note: print w/replies, xml ) Need Help??


in reply to Re: possible combinations in sequence
in thread possible combinations in sequence

My basic idea is to map the array indices to bits in a binary number. If a bit is on, you take that element out of the source array.

This is precisely the same approach that I used in Data::PowerSet, for indeed, what the OP is looking for is the power set of the list.

• another intruder with the mooring in the heart of the Perl

  • Comment on Re^2: possible combinations in sequence

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://554429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-10-24 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?