Lazy Squirrel Learns Programming #1

The length of each edge in the binary tree is given as a real number element of an array/list: a = [ a [ 0 ] , a [ 1 ] , , a [ 2 n + 1 2 ] ] . a=\left[a[0],a[1],\ldots,a[2^{n+1}-2]\right]. At each of the 2 n 2^n leaves, there is an acorn. The squirrel is lazy and wants to travel the minimum possible distance to get 1 acorn, so the squirrel learns to program. What is the runtime of the best algorithm the squirrel can use to solve its problem?

O ( 4 n ) O(4^n) O ( 2 n ) O(2^n) O ( n 2 n ) O(n\cdot 2^n) O ( n ) O(n)

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...