Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: NP-complete sometimes isn't (A benchmark)

by shmem (Chancellor)
on Sep 02, 2008 at 10:27 UTC ( [id://708440]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::Util qw(sum);
    use List::MoreUtils qw(first_index);
    ...
        }
        return \@b, \@numbers;
    }
    
  2. or download this
    perl funky.pl 400 402 521 735 758 191 307 679 776 877    
    Target is 2823
    First container:  sum(877 776 758 402) = 2813
    Second container: sum(735 679 521 400 307 191) = 2833
    
  3. or download this
    First container:  sum(400 402 521 735 758) = 2816
    Second container: sum(191 307 679 776 877) = 2830
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-24 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found