Блог пользователя aajjbb

Автор aajjbb, 11 лет назад, По-английски

Hi, I've been in trouble trying to solve: Link. It's a version of the equipment-replacement problem, but it also asks for show the 'equipment change' decisions.

I already have a dynamic programming solution working to find which is the best cost, but my attempts to store the path as well aren't even close to right results.

I've already tried to store this info with the cost updates inside the recursion, but it didn't worked though.

Code

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится