Graph Theory37 sections · 1633 units
Open in Course

Quiz: Small-to-Large Complexity

Knowledge check

Check Your Understanding

Why does *small-to-large merging* lead to O(nlogn)O(n \log n) total work?

  1. A.Because each merge is O(1)O(1)
  2. B.Because each element moves into a set at least twice as large, so it moves at most logn\log n times
  3. C.Because you sort all sets before merging
  4. D.Because you avoid merges when sizes are equal
Start the roadmap to answer the quizzes and solve the challenges