Ask your own question, for FREE!
Mathematics 19 Online
OpenStudy (anonymous):

What is the fastest way to sort a million 32-bit integers?

OpenStudy (mathmate):

"depends on the data!"

OpenStudy (mathmate):

I'll elaborate. If the data (array) has completely random values, quick sort would be a candidate. If the data is nearly sorted, (most) quick sort performs like a bubble sort (worst case). There are other sorts that do a good job for nearly sorted arrays.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!