Sample Essays & Free Papers For You

Questions? Email Us or
Live Chat
A reliable academic resource for high school and college students.
Essay database with free papers will provide you with original and creative ideas.

CS sorting analysis

Date Submitted: 08/27/2002 07:48:42
Category: / Literature / English
Length: 4 pages (1170 words)
Views: 38129

For this lab I tested ten different sorting methods by comparing the time it took to sort ordered, reverse ordered, and random ordered arrays of Integer objects of different sizes. I had to write a Timer class that started the timer before the sorting method was called and stopped the timer when the method was finished sorting the array. The elapsed time was calculated by another method in the Timer class so that the actual …

Is this essay helpful? Join now to read this particular paper and access over 480,000 just like it!

…two quick sorts and improved quick sort runs faster on random lists I would say the “best” sort of the ten tested would be improved quick sort. Though there are sorts that run faster on ordered lists improve quick sort runs the best across the board and it is not slow on lists even of size 50,000. It is an in place method so it does not use any significant extra space like merge sort does.

Need a unique paper?