Various C++ algorithms

Posted on February 24, 2007 by Andy Callaghan.
Categories: Open source, Uni, Work.

All code is released under GPL. If you wish to use, modify, hack it etc, please attribute me.
All of the following code is cross-platform certified on Win32 and openSUSE Linux 10.2.
Maximum algorithm

Unique algorithm

Greedy algorithm

Composition algorithm

Recursive algorithm (Collatz conjecture)