A general greedy algorithm capable of specializing on selection (local optimization).

Ruby

C++

 

Back to top