= (proof in handout: ‘Mathematical Tools’, Page 4)
Substituting this value in the equation above, we have
[since n = 2k – 1]
Thus,
Average Depth of full BST Node =
The following table shows some actual values of average depths of BST nodes for given values of k:
Share with your friends: |