InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is incorrect with respect to binary trees?(a) Let T be a binary tree. For every k ≥ 0, there are no more than 2k nodes in level k(b) Let T be a binary tree with λ levels. Then T has no more than 2^λ – 1 nodes(c) Let T be a binary tree with N nodes. Then the number of levels is at least ceil(log (N + 1))(d) Let T be a binary tree with N nodes. Then the number of levels is at least floor(log (N + 1))I want to ask this question from Binary Tree Properties in chapter Binary Trees of Data Structures & Algorithms IThe question was asked in semester exam. |
|
Answer» The correct OPTION is (d) LET T be a binary tree with N NODES. Then the number of levels is at least floor(log (N + 1)) |
|