Flashsort: Sorting Algorithm, Big O Notation, Bucket Sort - Couverture souple

 
9786133235151: Flashsort: Sorting Algorithm, Big O Notation, Bucket Sort

Synopsis

Please note that the content of this book primarily consists of articles available from Wikipedia or other free sources online. Flashsort is a sorting algorithm with extremely good O(n) efficiency for balanced data sets, published in 1998 by Karl-Dietrich Neubert.Flashsort works based on the principle that in either a randomized or partially-ordered data set in which data are in a balanced distribution, one can immediately estimate where an item should be placed when one knows the range of the set.In the ideal case of a balanced data set, the efficiency scales as O(n) because each class is similarly sized, creating well-sorted data for the final insertion sort. As an in-place algorithm, it uses minimal memory and it also makes efficient use of the machine cache. In the worst case of unbalanced data, flashsort is as slow as insertion sort, scaling as O(n2) precisely due to the need to use insertion sort on data that was poorly sorted during classification.

Les informations fournies dans la section « Synopsis » peuvent faire référence à une autre édition de ce titre.