A series of discrete optimization algorithms written in Python and Java