From <munderover> &#x2211;<!-- ∑ --> <mrow class="MJX-TeXAtom-ORD"> <mo fence="fals

Yesenia Sherman

Yesenia Sherman

Answered question

2022-06-23

From log n + 1 n / 2 r to r = 0 1 / 2 r
E [ h ] = E [ r = 1 I r ] = r = 1 E [ I r ]
= r = 1 log n E [ I r ] + log n + 1 E [ I r ]
r = 1 log n 1 + log n + 1 n / 2 r
log n + r = 0 1 / 2 r
= log n + 2
I'm trying to understand how you go from log n + 1 n / 2 r to r = 0 1 / 2 r

Answer & Explanation

alisonhleel3

alisonhleel3

Beginner2022-06-24Added 23 answers

Assuming log here means the base- 2 (since the inequality doesn't generally hold if the base is larger), we have
n < 2 log n + 1 ,
and therefore
r = log n + 1 n 2 r < r = log n + 1 2 log n + 1 2 r = r = log n + 1 1 2 r ( log n + 1 ) = k = 0 1 2 k .

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?