|
Re: 25 ways to efficiently sort an array/list of integers
sorting will work differently fro different type of data.if you have a small number of small numbers than any of the basic sorts vis, selection,bubble or insertion will work.if its a large number of small datas then i would prefer quicksort.if the numbers to be sorted are lat\rge each then ill go for radix sort and if the data is the largest dianosaur you have ever seen then merge sort will do it justice..
|