Minimum in a Binary Tree

image image

Suppose we implement an algorithm to find the minimum element in a binary search tree with n n nodes. Which of the following is a conceivable complexity for the algorithm?

O ( lg ( lg ( n ) ) ) O(\lg(\lg(n) ) ) O ( 1 ) O(1) O ( lg ( n ) ) O(\lg(n)) O ( lg ( n ) ) O\left(\sqrt{\lg(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.

1 solution

Hasmik Garyaka
Sep 25, 2017

T ( 2 n ) = n T(2^n)=n so it is binary logarythm

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...