Simple standalone implementations of algorithms in Zig
The purpose of this project is to provide example implementations of algorithms with minimal dependencies for educational use. The algorithms implemented here are meant to be easy to run and try out to support reviewing, discovering and gaining a deeper understanding of the algorithms showcased in this repository. Optimizations are applied to implementations if they either make the implementation easier to understand or highlight the essence of the algorithm well.
- Zig 0.11+
zig build bubble_sort
Use zig build --help
to see other available algorithms.
Heap sort:
zig test sorting/heap_sort.zig --main-pkg-path .
Everything else:
zig test <path_to_algorithm>.zig