Author: Scott Douglass
License: MIT
Version: 1.0.0
Date: 2025-07-10
overflowSort is a set of custom sorting algorithms that use simulated or real integer overflow behavior to control sort order. Instead of relying on standard comparison logic, it uses multiplication until values exceed hardware thresholds — effectively "popping" elements into order.
Variants are written in C, with SIMD/AVX2 acceleration and real benchmark comparisons to qsort and radix sort.
- Overflow-based sort logic using integer multiplication
- Scaled overflow triggers for tuning
- Counting-sort hybrid version
- SIMD and AVX2 accelerated variants
- Integer and string sorting capability
- Real-world benchmark suite
- Clean C99 source and portable
Each file is standalone and can be compiled with gcc. Below are common builds:
Overflow Sort | 0.685 |
qsort (glibc) | 1.082 |
Radix Sort (C) | 0.057 |
Radix sort is fastest asymptotically, but overflowSort shows compelling performance given its simplicity and novel mechanics — especially in SIMD or constrained environments.
→ Live demo site:
https://synaptechlabs.github.io/overflowSort
Made by Scott Douglass
@SynaptechLabs
- Sorting by overflow "ticks" opens up hardware acceleration possibilities
- Can be extended to strings by interpreting ASCII overflow
- Visualization of overflow behavior shows stability under scaling
This project is licensed under the MIT License:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...
(See LICENSE file for full terms.)