What is the fastest sorting algorithm for the absolute worst case? I don't care about the best case and accept a gigantic dataset, if that even matters.
make sure you see this:
visualization of sorting algorithms - this helped me decide which type of alg to use.
. , ( , ) radix, O (n). O (n log n).
, O (N log N) . - , MergeSort HeapSort, O (N log N) .
HeapSort , , MergeSort ( ).
, Wikipedia, O (n log n) . ( mmyers)
, : ( ) , O (n log n) !
( ) O (n log n)
, n log n, ,
Radix Bucket , . , .
Quicksort, , , , Heapsort Mergesort. O(n log n) .
O(n log n)
(.. , ), , , //- - , .
; , /.
, ( ).
/. " ", , .
, Big O O (n).
BEST AND WORST CASE . - 2- MergeSort
, , , , merge-sort, . , , VASTLY , .
, " ".
, . , , Quicksort, , , , . , " " " " ( Quick Merge, ).
, quicksort.
O (nlog n) , O (n ^ 2) , .
, .
. Vs Merge Sort Quicksort Mergesort, .
, . . O (n) , O (n ^ 2), , .
, ( , , ), quicksort .
, O (n log n). .
O (n log n), (, bead sort, ).
: radix , , , . , .
http://en.wikipedia.org/wiki/Radix_sort
PS This is the O (k * n) algorithm, where k is the key size.
It depends on the characteristics of the data.
Source: https://habr.com/ru/post/1706832/More articles:CompactFramework 2.0 - forms and panel loading - c #Accents in a filename using Java in Solaris - javaFileTest.exists? release ruby on rails - ruby | fooobar.comIs there a best practice for arranging database columns? - databaseКак создать script, чтобы переместить текущий активный адрес электронной почты в папку "Входящие" в другую папку в Outlook 2007 - vbaHow to show only part of int in C # (for example, cut off part of credit card number) - c #How to programmatically get a screenshot of a minimized application? - c #C hard coding of array typedef struct - c ++How can I create a GWT download dialog? - javaA good resource for implementing weather forecasts - embedAll Articles