17.14. Math Background¶
17.14.1. Math Background¶
17.14.1.1. Topics¶
Set concepts and notationLogarithmsTo store codes for n objects required logn bits. n bits can represent 2n objectsYou can cut n objects in half logn timesn=2log2nRecursionInduction ProofsSummationsRecurrence RelationsEstimation
17.14.1.2. Estimation Techniques¶
Known as “back of the envelope” or “back of the napkin” calculation1. Determine the major parameters that affect the problem.2. Define an equation that relates the parameters to the problem.3. Select values for the parameters, and apply the equation to yield an estimated solution.
17.14.1.3. Estimation Example¶
How many library bookcases does it take to store books totaling one million pages?Estimate- Pages/inch- Feet/shelf- Shelves/bookcase