Learning about trees

Computer Science Level pending

A program takes as input a balanced binary search tree with n n leaf nodes and computes the value of a function g ( x ) g(x) for each node x x . If the cost of computing g ( x ) g(x) is the minimum value between the {number of leaf-nodes in left-subtree of x x , and the number of leaf-nodes in x x , then the worst-case time complexity of the program is _____________ \text{\_\_\_\_\_\_\_\_\_\_\_\_\_} .

Θ ( n 2 log n ) \Theta \left( n^2\log { n } \right) Θ ( n 2 ) \Theta \left( n^2 \right) Θ ( n log n ) \Theta \left( n\log { n } \right) Θ ( n ) \Theta \left( n \right)

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...