- Published on
The Algorithm Design Manual (3rd) Exercise Solution 'E2-45'
Table of Contents
Introduction
This series is my solutions for algorithm exercises in'The Algorithm Design Manual' 3rd edition.
It's my solutions, not model answers, so if you find some mistakes or more sophisticated solutions, please post in comment area below.
Repository
Exercise 2-45
Question
Show that
Solution
[1] With m (), n is bound by m as following:
Take logarithm for each hand of (1):
So, the floor of is .
[2] From (1), n+1 is bound as following:
Take logarithm for each hand of (3):
So, the ceil of is .
[3] From [1] and [2], the following relation is derived.