Fundamentals of Algorithms

Question #22

Read the question, compare the options, and review the correct answer below.

CS502 · Midterm#22

What is the total time to heapify?

  1. A
    ?(log n)
  2. B
    ?(n log n)
  3. C
    ?(n2 log n)
  4. D
    ?(log2 n)
Show correct answer

Correct answer: A. ?(log n)

Check community answers against your course notes.
← More practice questionsTake a timed test