sort algorithm
i have an array of size 100000000 (100M) that was randomaly
initialized with numbers (0-100)
now, i wrote a function that sort this array in 1500 ms.
its sorts an array of 10M in 140 ms, an array of 1M in 16 ms.
my question is, is this function performance ok?
what is the Big O of this function.
is there a better function to do the same?
tnx.
.
Relevant Pages
- Re: "Sorting" assignment
... And many others prefer to call partition exchange because "quicksort" ... bin B depending on whether it is greater than, ... If the array is already sorted, this means that you end up ... attempt to sort them. ... (comp.programming) - Re: A Fast sorting algorithm for almost sorted data
... far my compressor has potential but is nowhere near ready. ... It does however make heavy use of sorting. ... which I am currently calling Run sort. ... entire selected run can be added to the sorted output array. ... (comp.compression) - Re: Save & Sort
... You can copy your array to a scratch ... "Heap" sort. ... Dim lst As Long ... Dim tmp As String ... (microsoft.public.excel.programming) - Re: fast stable sort
... if you have an existing array, you can simply arrange an array of ... pointers to the items, and sort that. ... hence require swapping pages of virtual memory, ... each merge run instead of accessing them in sequential RAM ... (comp.programming) - A Fast sorting algorithm for almost sorted data
... which I am currently calling Run sort. ... entire selected run can be added to the sorted output array. ... public class RunSort implements Comparator ... public static void sort(Comparable a, int start,int end) ... (comp.compression) |
|