Merge sort (redirect from Mergesort)
In computer science, merge sort (also commonly spelled as mergesort and as merge-sort) is an efficient, general-purpose, and comparison-based sorting...
50 KB (6,823 words) - 02:19, 14 July 2025
Standard ML (section Mergesort)
time, where n = |xs|. *) fun mergesort cmp [] = [] | mergesort cmp [x] = [x] | mergesort cmp xs = (merge cmp o ap (mergesort cmp) o split) xs Quicksort...
32 KB (3,714 words) - 19:30, 27 February 2025
Bitonic sorter (redirect from Bitonic mergesort)
Bitonic mergesort is a parallel algorithm for sorting. It is also used as a construction method for building a sorting network. The algorithm was devised...
9 KB (1,353 words) - 09:34, 16 July 2024
Batcher's odd–even mergesort is a generic construction devised by Ken Batcher for sorting networks of size O(n (log n)2) and depth O((log n)2), where...
3 KB (356 words) - 01:23, 11 December 2023
runs instead of merging fixed size sub-lists (as done by traditional mergesort) is that it decreases the total number of comparisons needed to sort the...
25 KB (3,085 words) - 12:04, 15 July 2025
n log ( n ) ) {\displaystyle O(n\log(n))} sort such as heapsort or mergesort to sort all n points, a popular practice is to sort a fixed number of...
28 KB (3,770 words) - 11:20, 14 October 2024
Odd–even sort (section Batcher's odd–even mergesort)
A related but more efficient sort algorithm is the Batcher odd–even mergesort, using compare–exchange operations and perfect-shuffle operations. Batcher's...
8 KB (1,035 words) - 05:25, 9 June 2025
network has the same size (number of comparators) and depth as the odd–even mergesort network. At the time of publication, the network was one of several known...
3 KB (294 words) - 08:24, 2 February 2025
Haskell features (section Mergesort)
merge sort, defined using the higher-order function until: mergesortBy less [] = [] mergesortBy less xs = head $ until (null . tail) (pairwise $ mergeBy...
30 KB (3,537 words) - 04:24, 27 February 2024
fork–join algorithm. mergesort(A, lo, hi): if lo < hi: // at least one element of input mid = ⌊lo + (hi - lo) / 2⌋ fork mergesort(A, lo, mid) // process...
6 KB (680 words) - 15:25, 27 May 2023
discovered two parallel sorting algorithms: the odd-even mergesort and the bitonic mergesort". He is also a discoverer of scrambling data method in a...
11 KB (1,303 words) - 00:43, 18 March 2025
Algorithms". Retrieved 16 March 2017. "[JDK-6804124] (coll) Replace "modified mergesort" in java.util.Arrays.sort with timsort - Java Bug System". bugs.openjdk...
18 KB (2,309 words) - 13:38, 9 June 2025
n-way mergesort algorithm also begins by distributing the list into n sublists and sorting each one; however, the sublists created by mergesort have overlapping...
13 KB (2,190 words) - 16:52, 5 July 2025
n\log ^{2}n} log n {\displaystyle \log n} Yes Yes Merging Variation of Mergesort which uses an O ( n log n ) {\displaystyle O(n\log n)} in-place stable...
71 KB (6,619 words) - 01:43, 16 July 2025
crossbar switches. Since the 2000s, sorting nets (especially bitonic mergesort) are used by the GPGPU community for constructing sorting algorithms to...
21 KB (2,159 words) - 00:11, 28 October 2024
{\displaystyle \Theta (n\log n)} divide-and-conquer algorithms such as mergesort. However, insertion sort or selection sort are both typically faster for...
12 KB (1,724 words) - 11:10, 21 May 2025
Funnelsort is a comparison-based sorting algorithm. It is similar to mergesort, but it is a cache-oblivious algorithm, designed for a setting where the...
8 KB (1,427 words) - 03:39, 31 July 2024
book}}: |journal= ignored (help) "[JDK-6804124] (coll) Replace "modified mergesort" in java.util.Arrays.sort with timsort - Java Bug System". bugs.openjdk...
9 KB (1,114 words) - 20:01, 4 January 2025
Weiß, Armin (7–8 January 2019). Worst-Case Efficient Sorting with QuickMergesort. ALENEX 2019: 21st Workshop on Algorithm Engineering and Experiments....
73 KB (10,092 words) - 13:13, 11 July 2025
was proposed by J. Ian Munro and Sebastian Wild. Powersort is a stable mergesort variant that adapts to existing runs in the input data, i.e., ranges in...
15 KB (1,590 words) - 01:53, 11 July 2025
TritonSort STXXL, an algorithm toolkit including external mergesort An external mergesort example A K-Way Merge Implementation External-Memory Sorting...
14 KB (2,176 words) - 17:38, 4 May 2025
O(log(n)), so that in effect a pipelined version of Batcher's bitonic mergesort and the O(log(n)) PRAM sorts are all O(log2(n)) in terms of clock cycles...
20 KB (2,604 words) - 07:26, 30 December 2024
example, to Karatsuba's fast multiplication method, the quicksort and mergesort algorithms, the Strassen algorithm for matrix multiplication, and fast...
21 KB (2,894 words) - 09:50, 14 May 2025
those that do not have index, require only sequential access, such as mergesort, and face no penalty. Direct-access storage device Queued sequential access...
4 KB (424 words) - 09:16, 7 February 2025
bi-directional parity merges A fallback to quadsort, a branchless bi-directional mergesort, significantly increasing adaptivity for ordered inputs Improvements introduced...
11 KB (1,227 words) - 09:46, 25 May 2025
2006). "Extra, extra – read all about it: nearly all binary searches and mergesorts are broken". Google Research Blog. Archived from the original on 1 April...
77 KB (10,006 words) - 10:57, 21 June 2025
memory. While some divide-and-conquer algorithms such as quicksort and mergesort outperform insertion sort for larger arrays, non-recursive sorting algorithms...
22 KB (2,921 words) - 20:49, 22 June 2025
cache-oblivious sorting is possible in two variants: funnelsort, which resembles mergesort; and cache-oblivious distribution sort, which resembles quicksort. Like...
13 KB (1,843 words) - 05:14, 3 November 2024
Bloch, "Extra, Extra – Read All About It: Nearly All Binary Searches and Mergesorts are Broken" Archived 2016-04-01 at the Wayback Machine. Official Google...
84 KB (10,222 words) - 01:09, 16 July 2025
the aforementioned are specialized partial sorting algorithms based on mergesort and quicksort. In the quicksort variant, there is no need to recursively...
8 KB (952 words) - 15:19, 26 February 2023