Hacker News new | ask | show | jobs
by zmonx 3230 days ago
You can without loss of generality assume that the weights are integers (if they are rational, you can multiply all weights so that they become integral).

Hence, you can use bisection to compute the actual optimum, not involving epsilon at all.