• Thumbnail for Sorting algorithm
    lists. Sorting is also often useful for canonicalizing data and for producing human-readable output. Formally, the output of any sorting algorithm must...
    68 KB (6,401 words) - 21:44, 10 June 2024
  • set. Topological sorting is possible even when the DAG has disconnected components. The canonical application of topological sorting is in scheduling...
    23 KB (3,181 words) - 21:46, 10 June 2024
  • Thumbnail for Bubble sort
    Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the input list element by element, comparing...
    19 KB (2,318 words) - 02:32, 22 June 2024
  • example, many sorting algorithms rearrange arrays into sorted order in-place, including: bubble sort, comb sort, selection sort, insertion sort, heapsort...
    8 KB (1,151 words) - 20:34, 28 June 2024
  • science, patience sorting is a sorting algorithm inspired by, and named after, the card game patience. A variant of the algorithm efficiently computes...
    8 KB (1,127 words) - 09:59, 3 January 2024
  • Thumbnail for Quicksort
    Quicksort (redirect from Quick sort)
    published in 1961. It is still a commonly used algorithm for sorting. Overall, it is slightly faster than merge sort and heapsort for randomized data, particularly...
    71 KB (9,881 words) - 12:43, 12 June 2024
  • Thumbnail for Insertion sort
    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,908 words) - 00:32, 29 December 2023
  • 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,835 words) - 10:13, 27 June 2024
  • Thumbnail for Merge sort
    computer science, merge sort (also commonly spelled as mergesort) is an efficient, general-purpose, and comparison-based sorting algorithm. Most implementations...
    49 KB (6,677 words) - 02:31, 8 May 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,783 words) - 17:15, 3 April 2024
  • Thumbnail for Cocktail shaker sort
    shaker sort is used primarily as an educational tool. More performant algorithms such as quicksort, merge sort, or timsort are used by the sorting libraries...
    9 KB (1,087 words) - 17:46, 25 November 2023
  • lists in sorted order. These algorithms are used as subroutines in various sorting algorithms, most famously merge sort. The merge algorithm plays a critical...
    16 KB (2,087 words) - 07:02, 24 August 2023
  • efficient algorithms for many problems, such as sorting (e.g., quicksort, merge sort), multiplying large numbers (e.g., the Karatsuba algorithm), finding...
    19 KB (2,607 words) - 22:14, 16 April 2024
  • In computer science, selection sort is an in-place comparison sorting algorithm. It has an O(n2) time complexity, which makes it inefficient on large lists...
    12 KB (1,654 words) - 16:11, 8 May 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:17, 11 June 2024
  • Thumbnail for Sorting
    an ordered sequence is called "sorting". Sorting is a common operation in many applications, and efficient algorithms have been developed to perform it...
    6 KB (778 words) - 16:31, 19 May 2024
  • identifiers of the classes may be members of an ordered set, allowing a sorting algorithm to arrange the items by class. Formally speaking, a collation method...
    18 KB (2,417 words) - 22:20, 2 April 2024
  • Thumbnail for Heapsort
    Heapsort (redirect from Heap sort)
    comparison-based sorting algorithm which can be thought of as "an implementation of selection sort using the right data structure." Like selection sort, heapsort...
    49 KB (5,717 words) - 14:35, 24 June 2024
  • Thumbnail for Pancake sorting
    Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the...
    21 KB (2,201 words) - 16:21, 15 June 2024
  • Thumbnail for External sorting
    External sorting is a class of sorting algorithms that can handle massive amounts of data. External sorting is required when the data being sorted do not...
    14 KB (2,149 words) - 07:23, 11 May 2024
  • Timsort (redirect from Tim sort)
    Timsort is a hybrid, stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data....
    19 KB (2,358 words) - 21:20, 21 June 2024
  • counting sort is an algorithm for sorting a collection of objects according to keys that are small positive integers; that is, it is an integer sorting algorithm...
    12 KB (1,591 words) - 12:36, 9 February 2024
  • Thumbnail for Bucket sort
    Bucket sort, or bin sort, is a sorting algorithm that works by distributing the elements of an array into a number of buckets. Each bucket is then sorted individually...
    13 KB (2,190 words) - 02:02, 31 March 2024
  • to sorting algorithms. The section on the equivalence of priority queues and sorting algorithms, below, describes how efficient sorting algorithms can...
    32 KB (4,657 words) - 09:34, 13 June 2024
  • as smaller than "11". Alphabetical sorting: z11 z2 Natural sorting: z2 z11 Functionality to sort by natural sort order is now widely available in software...
    3 KB (263 words) - 14:40, 30 May 2023
  • Introsort (redirect from Introspective sort)
    Introsort or introspective sort is a hybrid sorting algorithm that provides both fast average performance and (asymptotically) optimal worst-case performance...
    9 KB (1,080 words) - 03:35, 9 April 2024
  • Thumbnail for Fisher–Yates shuffle
    sorts the set according to the assigned numbers. The sorting method has the same asymptotic time complexity as Fisher–Yates: although general sorting...
    35 KB (4,274 words) - 11:11, 3 April 2024
  • Thumbnail for Kruskal's algorithm
    greedy algorithm that in each step adds to the forest the lowest-weight edge that will not form a cycle. The key steps of the algorithm are sorting and the...
    16 KB (1,851 words) - 21:25, 27 April 2024
  • Thumbnail for Comparison sort
    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,674 words) - 12:54, 4 January 2024
  • Thumbnail for Bitonic sorter
    mergesort is a parallel algorithm for sorting. It is also used as a construction method for building a sorting network. The algorithm was devised by Ken Batcher...
    9 KB (1,353 words) - 21:03, 12 October 2023