1.

What is the total number of iterations used in a maximum- matching algorithm?(a) [n/2](b) [n/3](c) [n/2]+n(d) [n/2]+1The question was posed to me in class test.This interesting question is from Matching in section Matching of Data Structures & Algorithms II

Answer»

The correct ANSWER is (d) [n/2]+1

To explain: The total number of iterations cannot EXCEED [n/2]+1 where n=|V|+|U| denoting the number of vertices in the graph.



Discussion

No Comment Found

Related InterviewSolutions