A comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation (often a "less than...
21 KB (2,640 words) - 15:35, 21 April 2025
Whether or not they are a comparison sort. A comparison sort examines the data only by comparing two elements with a comparison operator. General method:...
69 KB (6,537 words) - 12:59, 23 April 2025
during a pass, meaning that the list has become fully sorted. The algorithm, which is a comparison sort, is named for the way the larger elements "bubble"...
19 KB (2,357 words) - 03:21, 17 April 2025
sort in the most-to-least significant digit flavor. Bucket sort can be implemented with comparisons and therefore can also be considered a comparison...
13 KB (2,190 words) - 17:41, 26 August 2024
Quicksort (redirect from Quick sort)
comparison sort, meaning that it can sort items of any type for which a "less-than" relation (formally, a total order) is defined. It is a comparison-based...
71 KB (9,925 words) - 14:21, 29 April 2025
science, merge sort (also commonly spelled as mergesort and as merge-sort) is an efficient, general-purpose, and comparison-based sorting algorithm. Most...
49 KB (6,726 words) - 12:08, 26 March 2025
Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time by comparisons. It is much less efficient...
22 KB (2,922 words) - 20:38, 18 March 2025
perform sorting on fixed numbers of values, in which case they are called sorting networks. Sorting networks differ from general comparison sorts in that...
21 KB (2,159 words) - 00:11, 28 October 2024
In computer science, merge-insertion sort or the Ford–Johnson algorithm is a comparison sorting algorithm published in 1959 by L. R. Ford Jr. and Selmer...
11 KB (1,788 words) - 15:17, 30 October 2024
In computer science, selection sort is an in-place comparison sorting algorithm. It has a O(n2) time complexity, which makes it inefficient on large lists...
12 KB (1,724 words) - 05:33, 30 March 2025
In computer science, a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge...
23 KB (3,170 words) - 01:52, 12 February 2025
sort is a generic function in the C++ Standard Library for doing comparison sorting. The function originated in the Standard Template Library (STL). The...
10 KB (1,229 words) - 19:40, 16 January 2023
Bogosort (redirect from Stupid sort/Bogo-sort)
In computer science, bogosort (also known as permutation sort and stupid sort) is a sorting algorithm based on the generate and test paradigm. The function...
15 KB (1,884 words) - 07:10, 25 April 2025
Introsort (redirect from Introspective sort)
log n) runtime due to the heap sort. Since the three algorithms it uses are comparison sorts, it is also a comparison sort. Introsort was invented by David...
11 KB (1,227 words) - 19:56, 8 February 2025
shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle...
9 KB (1,114 words) - 20:01, 4 January 2025
Shellsort (redirect from Shell-Metzner sort)
Shell sort or Shell's method, is an in-place comparison sort. It can be understood as either a generalization of sorting by exchange (bubble sort) or sorting...
33 KB (3,442 words) - 15:24, 9 April 2025
subroutine in radix sort, another sorting algorithm, which can handle larger keys more efficiently. Counting sort is not a comparison sort; it uses key values...
12 KB (1,591 words) - 06:08, 23 January 2025
parallel processors with local interconnections. It is a comparison sort related to bubble sort, with which it shares many characteristics. It functions...
8 KB (1,035 words) - 10:06, 14 April 2025
integer arithmetic on the keys allows integer sorting algorithms to be faster than comparison sorting algorithms in many cases, depending on the details...
32 KB (4,049 words) - 04:37, 29 December 2024
In computer science, radix sort is a non-comparative sorting algorithm. It avoids comparison by creating and distributing elements into buckets according...
20 KB (2,604 words) - 07:26, 30 December 2024
String Comparison in 2000. "Sorting for Humans : Natural Sort Order". blog.codinghorror.com. 12 December 2007. "PHP: natsort - Manual". php.net. "Sort::Naturally...
3 KB (274 words) - 04:26, 7 March 2025
least as many comparisons as insertion sort and has the same asymptotic run time characteristics. Gnome sort works by building a sorted list one element...
6 KB (494 words) - 06:45, 19 March 2025
Selection algorithm (section Sorting and heapselect)
have been already sorted. Often, selection algorithms are restricted to a comparison-based model of computation, as in comparison sort algorithms, where...
45 KB (5,755 words) - 20:59, 28 January 2025
Cycle sort is an in-place, unstable sorting algorithm, a comparison sort that is theoretically optimal in terms of the total number of writes to the original...
8 KB (918 words) - 15:58, 25 February 2025
science, adaptive heap sort is a comparison-based sorting algorithm of the adaptive sort family. It is a variant of heap sort that performs better when...
9 KB (1,375 words) - 09:12, 22 June 2024
2004 and was published in 2006. Like the insertion sort it is based on, library sort is a comparison sort; however, it was shown to have a high probability...
6 KB (927 words) - 10:17, 19 January 2025
A polyphase merge sort is a variation of a bottom-up merge sort that sorts a list using an initial uneven distribution of sub-lists (runs), primarily used...
16 KB (2,343 words) - 17:46, 2 April 2025
Schwartzian transform (redirect from Decorate-sort-undecorate)
used to improve the efficiency of sorting a list of items. This idiom is appropriate for comparison-based sorting when the ordering is actually based...
13 KB (1,699 words) - 12:27, 30 April 2025