r/algorithms • u/Willy_Importance69 • 17d ago
Research/Papers Implementation of Andreas Bjorklund's algorithm for determining hamiltonicity
Hello, I want to share a project that i've been working on for the last month or so. It's and implementation (from what i could find the only rn on the internet) of Andreas Bjorklund's theoretical algorithm for determining weather a graph is hamiltonian or not. The algorithm is revolutionary because it lowered the exponential part of the time complexity of Held-Karp which is the standard algorithm for determining weather a graph is hamiltonian, from O^*(2^n) to O^*(1.657^n) for general graphs(this is what i've managed to implement as of right not) and for bipartite its O^*(1.414^n).
It might have some logical errors, and could maybe be optimised but right now, as of writting this it is 4AM and i want to sleep.
link to paper: https://arxiv.org/pdf/1008.0541
link to the github repo: https://github.com/Ak0-m/Bjorklunds_algorithm_for_Hamiltonicity
13
u/LightofAngels 17d ago
You know this post isn’t written by AI, when OP is saying weather instead of whether.
8
u/bartekltg 17d ago
Also,
> This algorithm lowered the exponential part of the time complexity from O∗(2^n) to O∗(2^n).in github :)
→ More replies (6)1
u/dnabre 16d ago
Just wait until AI offer a slider to set how many mistakes it should include to look more human.
→ More replies (1)
6
u/NarrMaster 17d ago
I literally just needed something like this.
Didn't even search, this was on my feed.
The project I'm working on, for now, requires the graphs I use to be Hamiltonian.
When I say needed, I mean I'm working on it at this moment and need to have some Hamiltonian check in front.
Thank you very much.