Fundamentals of Algorithms

Question #24

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

CS502 · Midterm#24

When we call heapify then at each level the comparison performed takes time

  1. A
    It will take ? (1)
  2. B
    ? Time will vary according to the nature of input data
  3. C
    ? It can not be predicted
  4. D
    ? It will take ? (log n)
Show correct answer

Correct answer: A. It will take ? (1)

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