Efficient sorting algorithm that combines insert and merge operations
Not to be confused with Block-sorting compression.
Block sort
Block sort stably sorting numbers 1 to 16. Insertion sort groups of 16, extract two internal buffers, tag the A blocks (of size √16 = 4 each), roll the A blocks through B, locally merge them, sort the second buffer, and redistribute the buffers.
Class
Sorting algorithm
Data structure
Array
Worst-case performance
O(n log n)
Best-case performance
O(n)
Average performance
O(n log n)
Worst-case space complexity
O(1)
Block sort, or block merge sort, is a sorting algorithm combining at least two merge operations with an insertion sort to arrive at O(n log n) (see Big O notation) in-place stable sorting time. It gets its name from the observation that merging two sorted lists, A and B, is equivalent to breaking A into evenly sized blocks, inserting each A block into B under special rules, and merging AB pairs.
One practical algorithm for O(n log n) in-place merging was proposed by Pok-Son Kim and Arne Kutzner in 2008.[1]
^Kutzner, Arne; Kim, Pok-Son (2008). Ratio Based Stable In-Place Merging(PDF). Lecture Notes in Computer Science. Vol. 4978. Springer Berlin Heidelberg. pp. 246–257. Retrieved 2016-09-07.
Blocksort, or block merge sort, is a sorting algorithm combining at least two merge operations with an insertion sort to arrive at O(n log n) (see Big...
In computer science, a sorting algorithm is an algorithm that puts elements of a list into an order. The most frequently used orders are numerical order...
merges four blocks at a time. The four sortedblocks are merged simultaneously to auxiliary space into two sortedblocks, then the two sortedblocks are merged...
1961. It is still a commonly used algorithm for sorting. Overall, it is slightly faster than merge sort and heapsort for randomized data, particularly...
Cycle sort Merge-insertion sort Smoothsort Timsort Blocksort There are fundamental limits on the performance of comparison sorts. A comparison sort must...
The Burrows–Wheeler transform is the reversible block-sort that is at the core of bzip2. The block is entirely self-contained, with input and output...
placed to the right of the bottom half of the outputs from any red block, and the sort would still work correctly, because the reverse of a bitonic sequence...
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...
appendix with a list of all the 20,902 CJK Unified Ideographs (Unicode block) sorted in YES order. In the Oxford Advanced Learner's Dictionary, the word...
"BlockQuicksort" partitioning technique to mitigate branch misprediction penalities, Linear time performance for certain input patterns (adaptive 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....
flag sort is an efficient, in-place variant of radix sort that distributes items into buckets. Non-comparative sorting algorithms such as radix sort and...
Sort Sol is a Danish rock band from Copenhagen, Denmark. The band was formed in 1977 as a punk rock outfit, originally under the name Sods (stylized as...
Since the late 1990s, bzip2, a file compression utility based on a block-sorting algorithm, has gained some popularity as a gzip replacement. It produces...
The Wisconsin Card Sorting Test (WCST) is a neuropsychological test of set-shifting, which is the capability to show flexibility when exposed to changes...
However, the blocks also come loose, for placement directly in-cistern (and therefore usable with squat toilets that lack the same sort of rim),[citation...
is a sorting algorithm that is a divide and conquer algorithm often used in parallel processing systems. Conventional divide and conquer sorting algorithms...
routes have a sort of natural block layout inherent in the layout of the railway stations. This provides the ability to implement a set of blocks using manual...
engine, the engine block is the structure which contains the cylinders and other components. In an early automotive engine, the engine block consisted of just...
a sort_by method, which allows specifying the "key function" (like foo in the examples above) as a code block. In D 2 and above, the schwartz Sort function...
whole. The classic example of recursion is in list-sorting algorithms, such as merge sort. The merge sort recursive algorithm will first repeatedly divide...
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...
in various sorting algorithms, including patience sorting and an external sorting algorithm that divides its input into k = 1/M − 1 blocks that fit in...