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

Автор JasonMendoza2008, история, 3 месяца назад, По-английски

I am looking for a problem that applies shortest path in a DAG using topological sort to get linear time (V + E). I couldn't find this kind of problem on the internet even though that's (I assume) a relatively standard problem, am I not looking correctly? Do you guys have an idea where I could find such an algorithm on an online judge (hackerrank, leetcode, codeforces, codechef, I don't particularly care about the platform).

Ideally, some edges are negative, otherwise Djikstra also works.

Thanks!

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