Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Slowness when inserting into pre-extended array

by tilly (Archbishop)
on Jul 20, 2003 at 16:54 UTC ( [id://276061]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    N + r*N + r*r*N + r*r*r*N
        = (N + r*N + r*r*N + r*r*r*N)*(1-r)/(1-r)
        = (N + (r*N-r*N) + (r*r*N-r*r*N) + (r*r*r*N-r*r*r*N) + ...)/(1-r)
        = N/(1-r)
    
  2. or download this
    my $max_size = 0;
    my $size = 0;
    ...
        $last_pow = $last_pow + $last_pow;
      }
    }
    
  3. or download this
           2:         1 recopies.  Avg 0.50000 per element
           4:         6 recopies.  Avg 1.50000 per element
    ...
     2097152:  11734158 recopies.  Avg 5.59528 per element
     4194304:  24331784 recopies.  Avg 5.80115 per element
     8388608:  42045207 recopies.  Avg 5.01218 per element
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found