Huskysort

R. C. Hillyard, Yunlu Liaozheng, Sai Vineeth K. R
12/1/2020
cs.DS

Official code: rchillyard/The-repository-formerly-known-as (2 stars, HTML, last commit 2026-11-07).

Abstract

Much of the copious literature on the subject of sorting has concentrated on minimizing the number of comparisons and/or exchanges/copies. However, a more appropriate yardstick for the performance of sorting algorithms is based on the total number of array accesses that are required (the "work").

Show full abstract

For a sort that is based on divide-and-conquer (including iterative variations on that theme), we can divide the work into linear, i.e. $\textbf{O}(N)$, work and linearithmic, i.e. $\textbf{O}(N log N)$, work. An algorithm that moves work from the linearithmic phase to the linear phase may be able to reduce the total number of array accesses and, indirectly, processing time. This paper describes an approach to sorting which reduces the number of expensive comparisons in the linearithmic phase as much as possible by substituting inexpensive comparisons. In Java, the two system sorts are dual-pivot quicksort (for primitives) and Timsort for objects. We demonstrate that a combination of these two algorithms can run significantly faster than either algorithm alone for the types of objects which are expensive to compare. We call this improved sorting algorithm Huskysort.

View on arXivView PDF

Code Implementations(1)

214HTML, JavaMar 1, 20193 weeks ago

Similar Papers

Cite this paper

@article{hillyard2020huskysort,
  title  = {Huskysort},
  author = {R. C. Hillyard and Yunlu Liaozheng and Sai Vineeth K. R},
  year   = {2020},
  eprint = {2012.00866},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.00866}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.00866.svg)](https://codeofpaper.com/paper/2012.00866)

Discussion