Good Subtrees

T T is a binary tree with sufficiently many nodes. Assume that sufficiently many of them have been colored red.

Call a subtree of T T good if it has at least n n nodes.

Choose the option with the tightest relation between n n and x x such that the following statement holds:

Given that a good subtree of T T exists, there always exists a good subtree with < x < x red nodes

Bonus: Give an algorithm to find such a subtree.

x = n 2 x = n^2 x = 2 n x = 2n x = n + 1 x = n+1 x = 2 n x = 2^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!

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...