Home / MCQ Bank / Computer
Computer Miscellaneous On Data Structures

Consider the following algorithm of Karger's algorithm given below. Which of the following best suits the blank? Let G=(V, E) while (V > 2) pick any edge e from E randomly __________________________ remove self-loops return the cut left with last 2 vertices

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • merge or contract both vertices in a single vertex

Related Computer Questions

Which of the following is true about the time complexity of the recursive solution of the subset sum problem? Which statement is true regarding abs() and labs()? What does the term "lazy evaluation" refer to in Ruby? Which mechanism is used by the computer virus 'worm' to duplicate itself? Consider the following code snippet function hypotenuse ( a, b ) { function square ( x ) { return x * x; } return Math . sqrt ( square ( a ) + square ( b )) ; } What does the above code result?