Other Examples of Table Lookups
A few other examples of table lookups appear in other sections of the book. They're used in the course of discussing other techniques, and the contexts don't emphasize the table lookups per se. Here's where you'll find them:
Looking up rates in an insurance table: Creating Loops Easily—From the Inside Out
Using decision tables to replace complicated logic: "Use decision tables to replace complicated conditions" in Boolean Expressions.
Cost of memory paging during a table lookup: Kinds of Fat and Molasses
Combinations of boolean values (A or B or C): "Substitute Table Lookups for Complicated Expressions" in Logic
Precomputing values in a loan repayment table: Expressions.
Get Code Complete, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.