Programming Pearls

Front Cover
Addison-Wesley Professional, 2000 - Computers - 239 pages
24 Reviews

"
"The first edition of Programming Pearls was one of the most influential books I read early in my career, and many of the insights I first encountered in that book stayed with me long after I read it. Jon has done a wonderful job of updating the material. I am very impressed at how fresh the new examples seem.""
--Steve McConnell

When programmers list their favorite 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.

In this revision, the first in 14 years, Bentley has substantially updated his essays to reflect current programming methods and environments. In addition, there are three new essays on
- testing, debugging, and timing
- set representations
- string problems
All the original programs have been rewritten, and an equal amount of new code has been generated. Implementations of all the programs, in C or C++, are now available on the Web.

What remains the same in this new 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 favorites.
0201657880B04062001

  

What people are saying - Write a review

User ratings

5 stars
18
4 stars
4
3 stars
2
2 stars
0
1 star
0

User Review - Flag as inappropriate

A cross between a style book and an algorithms book.

User Review - Flag as inappropriate

I actually read the first edition of this book and therefore this review is about it. The point of this book is to teach people how to think about programs, in particular to make them more efficient. I think this is a good book for helping people to understand what programming is all about. 

Selected pages

Contents

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
133
Heaps
147
Strings of Pearls
161
Epilog to the First Edition
175
Epilog to the Second Edition
177
A Catalog of Algorithms
179
An Estimation Quiz
183
Cost Models for Time and Space
185

Algorithm Design Techniques
77
Code Tuning
87
Squeezing Space
99
THE PRODUCT
113
Sorting
115
A Sample Problem
125
Rules for Code Tuning
191
C++ Classes for Searching
197
Hints for Selected Problems
201
Solutions to Selected Problems
205
Index
233

Common terms and phrases

References to this book

All Book Search results »

About the author (2000)

bentley is a member of technical staff at lucent technologies, murray hill, nj.

Bibliographic information