Give the best lower bound that you can for the following code fragment, as a function of

Question:

Give the best lower bound that you can for the following code fragment, as a function of the initial value of n.

while (n > 1)

if (ODD(n))

n = 3 * n + 1;

else n = n / 2;

Do you think that the upper bound is likely to be the same as the answer you gave for the lower bound?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: