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

Re: Re: Re: Fast/Efficient Sort for Large Files

by cecil36 (Pilgrim)
on Dec 19, 2002 at 17:35 UTC ( #221185=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Fast/Efficient Sort for Large Files
in thread Fast/Efficient Sort for Large Files

I wrote a program in C++ to sort web server cache logs by IP address. I discovered that a quicksort took forever to sort the data by the IP address, but a heapsort routine that I had in a programming manual was more efficient. If possible, see if you can utilize a binsort routine. If I recall my algorithms class correctly, binsort runs in O(n) time.
  • Comment on Re: Re: Re: Fast/Efficient Sort for Large Files

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://221185]
[Lady_Aleena]: james28909, I put it at the top of my scratchpad, if you want to look at it.
[Lady_Aleena]: I remember being pretty proud of that little sub when I wrote it.
[james28909]: oh xD
[james28909]: i see the predicament here.
[james28909]: maybe rename it to 'query'

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-05-24 04:39 GMT
Find Nodes?
    Voting Booth?