Programming PearlsAddison-Wesley Professional, 2000 - 239 страница When programmers list their favourite books, Jon Bentley's collection of programming pearls is commonly included among the classics. Just as natural pearls grow from grains of sand that irritate oysters, programming pearls have grown from real problems that have irritated real programmers. With origins beyond solid engineering, in the realm of insight and creativity, Bentley's pearls offer unique and clever solutions to those nagging problems. Illustrated by programs designed as much for fun as for instruction, the book is filled with lucid and witty descriptions of practical programming techniques and fundamental design principles. It is not at all surprising that Programming Pearls has been so highly valued by programmers at every level of experience. What remains the same in this edition is Bentley's focus on the hard core of programming problems and his delivery of workable solutions to those problems. Whether you are new to Bentley's classic or are revisiting his work for some fresh insight, the book is sure to make your own list of favourites. |
Садржај
Cracking the Oyster | 3 |
Aha Algorithms | 11 |
Data Structures Programs | 21 |
Writing Correct Programs | 33 |
A Small Matter of Programming | 45 |
PERFORMANCE | 59 |
Perspective on Performance | 61 |
The Back of the Envelope | 67 |
Searching | 131 |
Heaps | 145 |
Strings of Pearls | 159 |
Epilog to the First Edition | 173 |
Epilog to the Second Edition | 175 |
A Catalog of Algorithms | 177 |
An Estimation Quiz | 181 |
Cost Models for Time and Space | 183 |
Algorithm Design Techniques | 77 |
Code Tuning | 87 |
Squeezing Space | 97 |
THE PRODUCT | 111 |
Sorting | 113 |
A Sample Problem | 123 |
Rules for Code Tuning | 189 |
C++ Classes for Searching | 195 |
Hints for Selected Problems | 199 |
Solutions to Selected Problems | 203 |
Index | 231 |