Repository navigation
v0.1.0 — Initial Release
🚀 Highlights
Algoat is a high-performance C++20 algorithm library with smart dispatch and zero-copy Python bindings. This initial release ships 14 sorting algorithms, 3 searching algorithms, and domain-specific O(N) numerics that outperform NumPy on specialized data types.
✨ Features
Sorting Algorithms
- Classical: InsertionSort, SelectionSort, BubbleSort, ShellSort (Ciura), CombSort, GnomeSort, CycleSort
- Divide & Conquer: QuickSort (branchless CMOV median-of-three), MergeSort, HeapSort
- Hybrid: IntroSort, TimSort, BlockSort
- Linear-Time: RadixSort (LSD/MSD), CountingSort, BucketSort, PigeonholeSort, BitonicSort
Searching Algorithms
- Linear Search, Binary Search, Interpolation Search
Smart Dispatcher
- Automatic O(N) data profiling via
DataTraits(size, sortedness ratio) - Selects the optimal algorithm at runtime — no manual tuning required
- Runtime overrides via JSON configuration (
nlohmann/json)
Domain-Specific Numerics (O(N) Fast Paths)
- Boolean arrays — branchless counting pass (~23x faster than
numpy.sort) - Float16 — custom bit-flipping with L2-aligned 16-bit Counting Sort (~2.2x faster than
numpy.sort) - Complex64/128 — 64-bit Morton Z-order keys + 4-pass 16-bit Radix Sort for spatial locality (~2.0x faster than
numpy.sort)
Python Bindings
- Zero-copy integration via
nanobindfor NumPy arrays and Python lists algoat.sort()— returns a sorted copy with smart dispatchalgoat.sort_inplace()— zero-allocation in-place sortalgoat.search()— search with automatic algorithm selection
📦 Platform Support
| Platform | Architectures |
|---|---|
| Linux (manylinux_2_28) | x86_64 |
| macOS | x86_64, ARM64 (Apple Silicon) |
| Windows | x86_64 |
| Python | 3.10, 3.11, 3.12, 3.13, 3.14 |
Installation
pip install algoat🔧 CI & Build
- Automated wheel builds via
cibuildwheelacross all supported platforms - Automated PyPI publishing on GitHub Release via Trusted Publisher
- GitHub Release Drafter for changelog automation
🐛 Bug Fixes (Pre-Release)
- Fix macOS wheel link failure by removing private CPython bigint APIs (#1)
- Fix ubuntu wheel build failure by using a newer manylinux image (#2)
- Skip i686 builds — incompatible with NumPy ≥2.5 (requires GCC ≥10.3)
New Contributors
Full Changelog: https://github.com/Sambit003/algoat/commits/v0.1.0