Most rewarding path in a graph

前端 未结 1 976
逝去的感伤
逝去的感伤 2021-02-04 19:11

I\'m faced with the following problem:

Given

  • An undirected graph, where each edge E has:
    • Et - the time it takes to traverse E
1条回答
  •  忘了有多久
    2021-02-04 20:09

    This one reminded me this well known NP-hard problem http://en.wikipedia.org/wiki/Longest_path_problem

    The problem you denoted must be NP-hard too.

    0 讨论(0)
提交回复
热议问题