Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Klein’s cycle canceling algorithm can solve the min-cost flow problem in O(E^2CU) time where C is max cost and U is max capacity. In our particular case, U is 1 and C is at most 3 (A task can have at most 3 topics including changelog topic?). So the algorithm runs in O(E^2) time for our case. Note E is T * N  where T is the number of tasks and N is the number of clients. This is because each task can be assigned to any client; so there is an edge because every task to every client. In another word, the time complexity of the algorithm is O(TT^2*NN^2) . Below is a rough sketch of the algorithm:

...