πŸ“Š Computer
Q. The depth of a complete binary tree is given by
  • (A) Dn = log 2 (n+1)
  • (B) Dn = log 1/2 (n+1)
  • (C) Dn = log (n+1)
  • (D) Dn = log 2 (n-1)
βœ… Correct Answer: (A) Dn = log 2 (n+1)

Explanation: A complete binary tree is a binary tree where all the levels have maximum number of nodes except possibly the last level.

The depth of complete binary tree of n nodes will be Dn=log 2 (n+1) where Dn is the height or depth of the tree and n is the number of nodes.

Explanation by: Kartik Sharma
A complete binary tree is a binary tree where all the levels have maximum number of nodes except possibly the last level.

The depth of complete binary tree of n nodes will be Dn=log 2 (n+1) where Dn is the height or depth of the tree and n is the number of nodes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
276
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kartik Sharma
Publisher
πŸ“ˆ
87%
Success Rate