retagged by
305 views
1 votes
1 votes
I have read that for heapify, t(n) = t(2n/3) +o(1) and i know the no. of nodes in the subtree will be 2n/3(worst case) but the algo actually be applied to logn elements down the subtree so isn't it should be t(log n) instead of t(2n/3)?
if anybody know then plz clear my doubt
retagged by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
2
iarnav asked Jun 20, 2018
698 views
I've read and been told that Heapsort can only be applied on Max heap, but this article for G4G states otherwise - https://www.geeksforgeeks.org/heap-sort-for-decreasing-...
1 votes
1 votes
0 answers
3
Prajwal Bhat asked Dec 20, 2016
605 views
Need approach to solve this ?
2 votes
2 votes
0 answers
4
bhuv asked Jul 5, 2017
491 views
Number of node of height h in a binary tree is given as ceiling (n/2^(h+1)) from where this formula come ? I've only found proof by induction or solving for a particular ...