1. DuelMerge: Merging with Fewer Moves.
- Author
-
MERGEN, SERGIO L. S. and MOREIRA, VIVIANE P.
- Subjects
- *
COMPUTER algorithms , *PSEUDOCODE (Computer program language) , *C (Computer program language) , *PROGRAMMING languages , *COMPUTER science - Abstract
This work proposes DUELMERGE, a stable merging algorithm that is asymptotically optimal in the number of comparisons and performs O (n log2 (n) moves. Unlike other partition-based algorithms, we only allow blocks of equal sizes to be swapped, which reduces the number of moves required. We performed experiments comparing DUELMERGE against a number of baselines including RECMERGE, the standard merging solution for programming languages such as C, and some more recent approaches. The results show that our proposed algorithm performs fewer moves than other stable solutions. Experiments employing DUELMERGE within MergeSort confirmed our positive results in terms of moves, comparisons and runtime. [ABSTRACT FROM AUTHOR]
- Published
- 2017
- Full Text
- View/download PDF