A collection of simple algorithms for discrete optimization