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

Автор gXa, история, 7 лет назад, По-английски

Please tell the complexity of http://www.geeksforgeeks.org/maximum-bipartite-matching/ ?

And if we use directly Ford-Fulkerson Algorithm, will it be better?

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

»
7 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Maximum Bipartite Matching with Ford-Fulkerson takes O(VE) time. Using Dinic instead of Ford-Fulkerson (or Edmonds Karp for that matter; note that Edmonds Karp always find the shortest augmenting path instead of finding a random path), you can achieve a complexity of .

  • »
    »
    7 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

    Can you plz explain the complexity of the link I provided?

    Secondly when and how Ford-Fulkerson Algorithm becomes better?

    • »
      »
      »
      7 лет назад, # ^ |
        Проголосовать: нравится +5 Проголосовать: не нравится

      In the link, the bipartite matching is done using Ford-Fulkerson, so the complexity is O(VE).

      I don't understand your second question.

      A very good source to learn Max-Flow is CLRS. There's an entire chapter dedicated to network flows. You should read it.