Home >  Term: merge
merge

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).

0 0

Δημιουργός

  • GeorgeV
  •  (Gold) 1123 points
  • 100% positive feedback
© 2024 CSOFT International, Ltd.