Engineering Faster Sorters for Small Sets of Items
Jasper Marianczuk

TL;DR
This paper investigates whether sorting networks can outperform insertion sort for small datasets and demonstrates a 6% speed improvement when integrated into a modified sorting algorithm, considering cache limitations.
Contribution
It introduces a method to incorporate sorting networks into larger sorting algorithms for small sets, achieving significant speedups over traditional insertion sort.
Findings
Sorting networks can be at least 25% faster than insertion sort for small sets.
Integrating sorting networks into larger algorithms yields over 6% speed improvement.
Cache size limits the efficiency gains of using sorting networks.
Abstract
Sorting a set of items is a task that can be useful by itself or as a building block for more complex operations. The more sophisticated and fast sorting algorithms become asymptotically, the less efficient they are for small sets of items due to large constant factor. This thesis aims to determine if there is a faster way to sort base case sizes than using insertion sort. For that we looked at sorting networks and how to implement them efficiently. Because sorting networks need to be implemented explicitly for each input size, providing networks for larger sizes becomess less efficient. That is why we modified Super Scalar Sample Sort to break down larger sets into sizes that can in turn be sorted by sorting networks. We show that the task of sorting only small sets can be greatly improved by at least 25% when using sorting networks compared to insertion sort, but that when integrating…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Parallel Computing and Optimization Techniques · VLSI and FPGA Design Techniques
