A program takes as input a balanced binary search tree with leaf nodes and computes the value of a function for each node . If the cost of computing is the minimum value between the {number of leaf-nodes in left-subtree of , and the number of leaf-nodes in , then the worst-case time complexity of the program is .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!