Complete implementations from "Algorithms for Modern Hardware"
See the codeThis repository contains full examples and other associated code from https://en.algorithmica.org/hpc
The book is still unfinished, and my writing process is very slow and non-sequential — sometimes the "idea → code → benchmarks → article" pipeline may take 6 months or even more — so in this repository you can get a preview on a lot of interesting things that I haven't yet properly written up and published.
Things that have improved on the state-of-the-art:
std::lower_bound for small arrays (that fit in cache) and ~8x speedup for large arrays (>1e6).Things that match current state-of-the-art:
std::gcd.scanf("%d") does.Various benchmarks:
At the implementation stage:
At the idea stage:
(top 24 of 36)
936 followers · starred Jan 2023
2,860 followers · starred Feb 2022
1,046 followers · starred Jan 2023
968 followers · starred Feb 2022
Complete implementations from "Algorithms for Modern Hardware"
See the codeThis repository contains full examples and other associated code from https://en.algorithmica.org/hpc
The book is still unfinished, and my writing process is very slow and non-sequential — sometimes the "idea → code → benchmarks → article" pipeline may take 6 months or even more — so in this repository you can get a preview on a lot of interesting things that I haven't yet properly written up and published.
Things that have improved on the state-of-the-art:
std::lower_bound for small arrays (that fit in cache) and ~8x speedup for large arrays (>1e6).Things that match current state-of-the-art:
std::gcd.scanf("%d") does.Various benchmarks:
At the implementation stage:
At the idea stage:
(top 24 of 36)
936 followers · starred Jan 2023
2,860 followers · starred Feb 2022
1,046 followers · starred Jan 2023
968 followers · starred Feb 2022