1.

The running time of implementing naïve solution to min-cut problem is?(a) O(N)(b) O(N log N)(c) O(log N)(d) O(N^2)This question was posed to me during an internship interview.My doubt stems from Minimum Cut in division Minimum Cut of Data Structures & Algorithms II

Answer»

The correct CHOICE is (d) O(N^2)

For EXPLANATION: The RUNNING time of min-cut ALGORITHM USING naïve implementation is mathematically found to be O(N^2).



Discussion

No Comment Found

Related InterviewSolutions