https://9dok.net/document/q2npw752-a-diskrete-optimierung-ii.html