Thanks for the thoughtful replies, everyone. Judicious use of sort made the algorithm deterministic.
The algorithm aims to determine whether a given undirected graph contains any Hamiltonian Cycles. I am still calculating the Big-O complexity, and would appreciate any help.
Here is a link to the source code on GitHub.
There is also a demo at: ownlifeful.com
In reply to Re: Algorithm Complexity and Determinism of Graph Module
by ownlifeful
in thread Algorithm Complexity and Determinism of Graph Module
by ownlifeful
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |