(definition)
Definition: Combine two or more sorted sequences of data into a single sorted sequence.
Formal Definition: For simplicity, let input be two sequences, A={a1, …, an} and B={b1, …, bm}, each sorted according to some total order, ≤. The output is a single sequence, merge(A,B), which is a sorted permutation of {a1, …, an, b1, …, bm}.
merge(A, B) is
Formalization by Mustafa Ege <[email protected]>.
Specialization (... is a kind of me.)
multiway merge, k-way merge, simple merge, ideal merge, optimal merge.
See also two-way merge sort, three-way merge sort, k-way merge sort, balanced merge sort, nonbalanced merge sort.
Author: ASK
If you have suggestions, corrections, or comments, please get in touch with Paul Black.
Entry modified 2 March 2015.
HTML page formatted Mon May 11 15:07:57 2026.
Cite this as:
Art S. Kagel, "merge", in
Dictionary of Algorithms and Data Structures [online], Vreda Pieterse and Paul E. Black, eds. 2 March 2015. (accessed TODAY)
Available from: /HTML/merge.html