Fundamentals of Algorithms

Question #142

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

CS502 · Final-term only#142

The number of nodes in a complete binary tree of height h is

  1. A
    ?2^(h+1) – 1 (Page 40)
  2. B
    ?2 * (h+1) – 1
  3. C
    ?2 * (h+1)
  4. D
    ? ((h+1) ^ 2) – 1
Show correct answer

Correct answer: A. ?2^(h+1) – 1 (Page 40)

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