science, a nearly-sorted sequence, also known as roughly-sorted sequence and as k {\displaystyle k} -sorted sequence is a sequence which is almost ordered...
8 KB (1,581 words) - 20:20, 20 June 2025
information into a standard order K-sorted sequence Schwartzian transform – Programming idiom for efficiently sorting a list by a computed key Search algorithm –...
71 KB (6,619 words) - 18:17, 14 July 2025
considered sorted). Repeatedly merge sublists to produce new sorted sublists until there is only one sublist remaining. This will be the sorted list. Example...
50 KB (6,823 words) - 02:19, 14 July 2025
typical GPU. A sorted sequence is a monotonically non-decreasing (or non-increasing) sequence. A bitonic sequence is a sequence with x 0 ≤ ⋯ ≤ x k ≥ ⋯ ≥ x n...
9 KB (1,353 words) - 09:34, 16 July 2024
already sorted or partly sorted), insertion sort is distinctly more efficient compared to selection sort. On average (assuming the rank of the (k + 1)-st...
22 KB (2,921 words) - 20:49, 22 June 2025
computer science, k-way merge algorithms or multiway merges are a specific type of sequence merge algorithms that specialize in taking in k sorted lists and merging...
16 KB (2,409 words) - 01:39, 8 November 2024
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) - 16:52, 5 July 2025
application, a topological ordering is just a valid sequence for the tasks. Precisely, a topological sort is a graph traversal in which each node v is visited...
23 KB (3,170 words) - 16:32, 22 June 2025
Spaghetti sort is a linear-time, analog algorithm for sorting a sequence of items, introduced by A. K. Dewdney in his Scientific American column. This...
3 KB (406 words) - 13:50, 29 September 2024
maximum value is at most k. In some descriptions of counting sort, the input to be sorted is assumed to be more simply a sequence of integers itself, but...
12 KB (1,591 words) - 06:08, 23 January 2025
Shellsort (redirect from Shell-Metzner sort)
element produces a sorted list. Such a list is said to be h-sorted. It can also be thought of as h interleaved lists, each individually sorted. Beginning with...
34 KB (3,463 words) - 21:57, 15 May 2025
partial sorting is returning a list of the k smallest (or k largest) elements in order. The other elements (above the k smallest ones) may also be sorted, as...
8 KB (952 words) - 15:19, 26 February 2023
Collation (redirect from Collating sequence)
Another method is for numbers to be sorted alphabetically as they would be spelled: for example 1776 would be sorted as if spelled out "seventeen seventy-six"...
18 KB (2,415 words) - 17:04, 7 July 2025
representations. A sequence like [b, c, e, d, f, g, ba] would be sorted as [b, ba, c, d, e, f, g]. If lexicographic ordering is used to sort variable-length...
20 KB (2,604 words) - 07:26, 30 December 2024
elements of some prefix of the sequence. Now, the number of comparisons is irrelevant. The minimum number of flips required to sort any stack of n pancakes has...
21 KB (2,201 words) - 16:10, 10 April 2025
Quicksort (redirect from Quick sort)
already sorted, so only the less-than and greater-than partitions need to be recursively sorted. In pseudocode, the quicksort algorithm becomes: // Sorts (a...
73 KB (10,092 words) - 13:13, 11 July 2025
z ) = ∑ k = 0 ∞ F k z k − ∑ k = 0 ∞ F k z k + 1 − ∑ k = 0 ∞ F k z k + 2 = ∑ k = 0 ∞ F k z k − ∑ k = 1 ∞ F k − 1 z k − ∑ k = 2 ∞ F k − 2 z k = 0 z 0 +...
86 KB (13,080 words) - 01:13, 12 July 2025
In combinatorial mathematics, a de Bruijn sequence of order n on a size-k alphabet A is a cyclic sequence in which every possible length-n string on A...
32 KB (3,550 words) - 05:56, 18 June 2025
already sorted, but the algorithm does not know if it is completed. The algorithm needs one additional whole pass without any swap to know it is sorted. Third...
18 KB (2,309 words) - 13:38, 9 June 2025
Recurrence relation (redirect from Recursive sequence)
term of a sequence of numbers is equal to some combination of the previous terms. Often, only k {\displaystyle k} previous terms of the sequence appear in...
26 KB (4,204 words) - 08:22, 19 April 2025
computer science, the sorting numbers are a sequence of numbers introduced in 1950 by Hugo Steinhaus for the analysis of comparison sort algorithms. These...
4 KB (436 words) - 21:56, 12 December 2024
Kaprekar's routine (redirect from Kaprekar sequence)
number of the sequence. Repeat step 2. The sequence is called a Kaprekar sequence and the function K b ( n ) = α − β {\displaystyle K_{b}(n)=\alpha -\beta...
17 KB (3,141 words) - 23:18, 12 June 2025
is a list of notable integer sequences with links to their entries in the On-Line Encyclopedia of Integer Sequences. OEIS core sequences Index to OEIS...
27 KB (27 words) - 18:11, 30 May 2025
pair. Recursively sort the ⌊ n / 2 ⌋ {\displaystyle \lfloor n/2\rfloor } larger elements from each pair, creating a sorted sequence S {\displaystyle S}...
11 KB (1,788 words) - 15:17, 30 October 2024
factor sorted := false loop while sorted = false // Update the gap value for a next comb gap := floor(gap / shrink) if gap ≤ 1 then gap := 1 sorted := true...
7 KB (832 words) - 05:45, 22 June 2024
already close to sorted, according to some measure of sortedness, the number of comparisons required to sort it can be smaller. An adaptive sort takes advantage...
21 KB (2,640 words) - 15:35, 21 April 2025
Funnelsort (redirect from Funnel sort)
called a k-merger, which is described in the section below. A k-merger takes k {\displaystyle k} sorted sequences. Upon one invocation of a k-merger, it...
8 KB (1,427 words) - 03:39, 31 July 2024
in sorted order. Sorting is done based on one or more sort keys extracted from each line of input. By default, the entire input is taken as sort key...
15 KB (1,122 words) - 18:27, 29 April 2025
a k-regular sequence is a sequence satisfying linear recurrence equations that reflect the base-k representations of the integers. The class of k-regular...
14 KB (2,353 words) - 19:12, 31 January 2025
Stellar classification (redirect from Harvard Spectral Sequence)
under the Morgan–Keenan (MK) system using the letters O, B, A, F, G, K, and M, a sequence from the hottest (O type) to the coolest (M type). Each letter class...
107 KB (11,666 words) - 14:52, 17 June 2025