Data Structures & AlgorithmsHardICPC regional · matching

Problem: Which statement about the Hungarian algorithm's time complexity is correct for an n x n assignment problem?

  1. A. O(n^3)
  2. B. O(n!)
  3. C. O(2^n)
  4. D. O(n log n)

Correct answer: A. O(n^3)

Its standard implementation runs in O(n^3) time using potentials and augmenting paths.

More Coding Interview Problems questions

Exams that ask this topic