Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Challenge: Sorting Sums Of Sorted Series

by kennethk (Abbot)
on Feb 04, 2010 at 16:30 UTC ( [id://821418]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub solution_2 {
        # adaptive motion queue solution
        my ($list_ref1, $list_ref2) = @_;
    ...
            splice @queue, $count, 0, "${sum}x${x}x${y}";
        }
    }
    
  2. or download this
    Benchmark: timing 100 iterations of 1_array, 3_array, Baseline, LR_1..
    +.
       1_array: 10.651 wallclock secs (10.65 usr +  0.00 sys = 10.65 CPU) 
    +@  9.39/s (n=100)
       3_array: 9.28456 wallclock secs ( 9.28 usr +  0.00 sys =  9.28 CPU)
    + @ 10.78/s (n=100)
    ...
    LR_1     14245/s       1%       --     -27%     -70%
    3_array  19646/s      39%      38%       --     -58%
    Baseline 47170/s     233%     231%     140%       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found