Programming Pearls, 2/e (Paperback)
暫譯: 程式設計珍珠(第二版)

Jon Bentley

買這商品的人也買了...

相關主題

商品描述

Table of Contents:

I. PRELIMINARIES.

Column 1. Cracking the Oyster.

 

 

A Friendly Conversation.

 

 

Precise Problem Statement.

 

 

Program Design.

 

 

Implementation Sketch.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 2. Aha! Algorithms.

 

 

Three Problems.

 

 

Ubiquitous Binary Search.

 

 

The Power of Primitives.

 

 

Getting It Together: Sorting.

 

 

Principles · Problems.

 

 

Further Reading.

 

 

Implementing an Anagram Program.

 

Column 3. Data Structures Programs.

 

 

A Survey Program.

 

 

Form-Letter Programming.

 

 

An Array of Examples.

 

 

Structuring Data.

 

 

Powerful Tools for Specialized Data.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 4. Writing Correct Programs.

 

 

The Challenge of Binary Search.

 

 

Writing the Program.

 

 

Understanding the Program.

 

 

Principles.

 

 

The Roles of Program Verification.

 

 

Problems.

 

 

Further Reading.

 

Column 5. A Small Matter of Programming.

 

 

From Pseudocode to C.

 

 

A Test Harness.

 

 

The Art of Assertion.

 

 

Automated Testing.

 

 

Timing.

 

 

The Complete Program.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

 

Debugging.

 

II. PERFORMANCE.

Column 6. Perspective on Performance.

 

 

A Case Study.

 

 

Design Levels.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 7. The Back of the Envelope.

 

 

Basic Skills.

 

 

Performance Estimates.

 

 

Safety Factors.

 

 

Little's Law.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

 

Quick Calculations in Everyday Life.

 

Column 8. Algorithm Design Techniques.

 

 

The Problem and a Simple Algorithm.

 

 

Two Quadratic Algorithms.

 

 

A Divide-and-Conquer Algorithm.

 

 

A Scanning Algorithm.

 

 

What Does It Matter?

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 9. Code Tuning.

 

 

A Typical Story.

 

 

A First Aid Sampler.

 

 

Major Surgery—Binary Search.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 10. Squeezing Space.

 

 

The Key—Simplicity.

 

 

An Illustrative Problem.

 

 

Techniques for Data Space.

 

 

Techniques for Code Space.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

 

A Big Squeeze.

 

III. THE PRODUCT.

Column 11. Sorting.

 

 

Insertion Sort.

 

 

A Simple Quicksort.

 

 

Better Quicksorts.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 12. A Sample Problem.

 

 

The Problem.

 

 

One Solution.

 

 

The Design Space.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 13. Searching.

 

 

The Interface.

 

 

Linear Structures.

 

 

Binary Search Trees.

 

 

Structures for Integers.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

 

A Real Searching Problem.

 

Column 14. Heaps.

 

 

The Data Structure.

 

 

Two Critical Functions.

 

 

Priority Queues.

 

 

A Sorting Algorithm.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Column 15. Strings of Pearls.

 

 

Words.

 

 

Phrases.

 

 

Generating Text.

 

 

Principles.

 

 

Problems.

 

 

Further Reading.

 

Epilog to the First Edition.

 

Epilog to the Second Edition.

 

Appendix 1. A Catalog of Algorithms.

 

Appendix 2. An Estimation Quiz.

 

Appendix 3. Cost Models for Time and Space.

 

Appendix 4. Rules for Code Tuning.

 

Appendix 5. C++ Classes for Searching.

 

Hints for Selected Problems.

 

Solutions to Selected Problems.

 

Index. 0201657880T04062001

商品描述(中文翻譯)


目錄:

I. 前言。

第一欄。破解牡蠣。

友好的對話。

精確的問題陳述。

程式設計。

實現草圖。

原則。

問題。

進一步閱讀。

第二欄。啊哈!演算法。

三個問題。

無處不在的二分搜尋。

原始資料的力量。

整合:排序。

原則 · 問題。

進一步閱讀。

實現一個字母重排程式。

第三欄。資料結構程式。

調查程式。

表單信件程式設計。

一系列範例。

結構化資料。

專用資料的強大工具。

原則。

問題。

進一步閱讀。

第四欄。撰寫正確的程式。

二分搜尋的挑戰。

撰寫程式。

理解程式。

原則。

程式驗證的角色。

問題。

進一步閱讀。

第五欄。程式設計的小事。

從偽程式碼到 C。

測試工具。

斷言的藝術。

自動化測試。

計時。

完整的程式。

原則。

問題。

進一步閱讀。

除錯。