Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Evolving a faster filter? (optimal solution?)

by LanX (Saint)
on Jan 04, 2013 at 21:22 UTC ( [id://1011721]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @order = sort {
        $Costs[$a]+$Trims[$a]*$Costs[$b] <=> $Costs[$b]+$Trims[$b]*$Costs[
    +$a]
    } 0..$#Costs;
    
  2. or download this
    my @order = sort {
        $Costs[$a]/(1-$Trims[$a]) <=> $Costs[$b]/(1-$Trims[$b])
    } 0..$#Costs;
    
  3. or download this
    my @order = sort {
        $weight[$a] <=> $weight[$b]
    } 0..$#Costs;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found