I'm sure a few minutes of googling will turn it up, but there haven't been many actual programming threads lately.
I've got an aplication that has to sort a few arrays every time step - each about 10,000 objects. But they should be nearly sorted from one timestep to the next.
I'm using the standard quicksort at the moment but I'm thinking bubble sort should do pretty good - it'll be O(n) for a completely sorted list.
I've got an aplication that has to sort a few arrays every time step - each about 10,000 objects. But they should be nearly sorted from one timestep to the next.
I'm using the standard quicksort at the moment but I'm thinking bubble sort should do pretty good - it'll be O(n) for a completely sorted list.