DM.GT.2.d: Use an Euler circuit algorithm to solve optimization problems.