Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

Given a flow network with a source $$$s$$$ and sink $$$t$$$ (each edge has a capacity $$$c_i$$$ and flow $$$f_i$$$). You need to find decomposition into $$$s-t$$$ paths, where each path has a flow value $$$f_p$$$, such that it results in this flow network. Also, not all paths are correct, and we only need consider "correct" paths (we can understand is path correct or not while traversing the network). It is guarantee what this decomposition exists.

First of all, how I found a flow network? I used linear programming to solve this task. I have some inequalities for flows and for paths, and now I want to restore the answer as a decompisition of $$$s-t$$$ paths.

Is there exists a polynomial algorithm to solve this? The number of paths doesn't matter.

Полный текст и комментарии »

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

Автор Igoreshik99, история, 4 года назад, По-русски

Hello codeforces, do you have any advices on how to become yellow? I am doing CP for 1.5 years, but sometimes i just can't solve some problems, that may be easy for other people at my rating.

Полный текст и комментарии »

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