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

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

Is it possible to recover the flow for each edge after running the Push-relabel algorithm on a graph?

It seems like some inside cycles of flow can exist after running the algorithm.

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

»
3 года назад, скрыть # |
 
Проголосовать: нравится +36 Проголосовать: не нравится

There is some optimization for the push-relabel algorithm which only guarantees the answer to be preflow, not actual flows. To recover the solution, you should run flow decomposition or just get rid of this optimization. I think flow decomposition can be slow, so you should just generally don't have this optimization.

Here is the implementation without that optimization.