Data Structures and Algorithm Analysis in C++, 2/e (精裝)
Mark Allen Weiss
- 出版商: Addison Wesley
- 出版日期: 1998-11-19
- 售價: $1,029
- 語言: 英文
- 頁數: 564
- 裝訂: Hardcover
- ISBN: 0201361221
- ISBN-13: 9780201361223
-
相關分類:
C++ 程式語言、Algorithms-data-structures
已過版
買這商品的人也買了...
-
$1,250$1,225 -
$1,200$1,176 -
$1,029Fundamentals of Data Structures in C
-
$640$608 -
$680$537 -
$2,610$2,480 -
$970Introduction to Algorithms, 2/e
-
$1,150$1,127 -
$960$912 -
$1,274Computer Architecture: A Quantitative Approach, 3/e(精裝本)
-
$1,029Operating System Concepts, 6/e (Windows XP Update)
-
$1,030$1,009 -
$690$587 -
$780$741 -
$650$553 -
$720$569 -
$290$261 -
$880$792 -
$640$576 -
$400$316 -
$560$442 -
$750$675 -
$540$427 -
$2,340$2,223 -
$650$507
相關主題
商品描述
Description
In this second edition of his successful book, experienced teacher and author Mark Allen Weiss continues to refine and enhance his innovative approach to algorithms and data structures. Written for the advanced data structures course, this text highlights theoretical topics like abstract data types and the efficiency of algorithms, as well as performance and running time. Before covering algorithms and data structures, the author provides a brief introduction to C++ for programmers unfamiliar with the language. All of the source code will be available over the Internet. Dr. Weiss also distinguishes the book with his clear, friendly writing style, logical organization of topics, and extensive use of figures and examples that show the successive stages of an algorithm.
Features
- All code has been updated and tested on multiple platforms and conforms to the ANSI standard.
- Provides chapter on advanced structures and their implementation covering red black trees, top down splay trees, treaps, k-d trees, pairing heaps, and more.
- Includes a chapter on algorithm and design techniques that covers greedy algorithms, divide and conquer algorithms, dynamic programming, randomized algorithms, and backtracking.
Table Of Contents
1. Introduction.Mathematics Review.
Logarithms.
Series.
Modular Arithmetic.
The P Word.
A Brief Introduction to Recursion
C++ Classes.
Extra Constructor Syntax and Accessors
Separation of Interface and Implementation.
vector and string.
C++ Details.
Parameter Passing.
Return Passing
Reference Variables.
The Big Three: Destructor, Copy Constructor, operator=.
The World of C.
Templates.
Class Templates.
Object, Comparable, and an Example.
Using Matrices.
operator .
Destructor, Copy Assignment, Copy Constructor.
Summary.
Exercises.
References.
2. Algorithm Analysis.
Model.
What to Analyze.
Running Time Calculations.
General Rules.
Solutions for the Maximum Subsequence Sum Problem.
Logarithms in the Running Time.
Checking Your Analysis.
A Grain of Salt.
Summary.
Exercises.
References.
3. Lists, Stacks, and Queues.
The List ADT.
Simple Array Implementation of Lists.
Programming Details.
Memory Reclamation and the Big Three.
Doubly Linked Lists.
Circular Linked Lists.
Examples.
Cursor Implementation of Linked Lists.
The Stack ADT.
Implementation of Stacks.
Applications.
The Queue ADT.
Array Implementation of Queues.
Applications of Queues.
Summary.
Exercises.
4. Trees.
Tree Traversals with an Application.
Binary Trees.
An Example: Expression Trees.
The Search Tree ADT-Binary Search Trees.
find.
insert.
remove.
Destructor and Copy Assignment Operator.
Average-Case Analysis.
AVL Trees.
Double Rotation.
Splay Trees.
A Simple Idea (That Does Not Work).
Tree Traversals (Revisited).
B-Trees.
Summary.
Exercises.
References.
5. Hashing.
Hash Function.
Separate Chaining.
Open Addressing.
Quadratic Probing.
Double Hashing.
Rehashing.
Extendible Hashing.
Summary.
Exercises.
References.
6. Priority Queues (Heaps).
Simple Implementations.
Binary Heap.
Heap-Order Property.
Basic Heap Operations.
Other Heap Operations.
Applications of Priority Queues.
Event Simulation.
d-Heaps.
Leftist Heaps.
Leftist Heap Operations.
Skew Heaps.
Binomial Queues.
Binomial Queue Operations.
Implementation of Binomial Queues.
Summary.
Exercises.
References.
7. Sorting.
Insertion Sort.
The Algorithm.
A Lower Bound for Simple Sorting Algorithms.
Shellsort.
Heapsort.
Mergesort.
Quicksort.
Picking the Pivot.
Small Arrays.
Actual Quicksort Routines.
Analysis of Quicksort
A Linear-Expected-Time Algorithm for Selection.
Indirect Sorting.
vector
Overloading operator<
Dereferencing a Pointer with *.
Overloading the Type Conversion Operator
Implicit Type Conversions Are Everywhere.
Dual-Direction Implicit Conversions Can Cause Ambiguities.
Pointer Subtraction Is Legal.
A General Lower Bound for Sorting.
Bucket Sort.
External Sorting.
Model for External Sorting.
The Simple Algorithm.
Multiway Merge.
Polyphase Merge.
Replacement Selection.
Summary.
Exercises.
References.
8. The Disjoint Set ADT.
The Dynamic Equivalence Problem.
Basic Data Structure.
Smart Union Algorithms.
Path Compression.
Worst Case for Union-by-Rank and Path Compression.
An Application.
Summary.
Exercises.
References.
9. Graph Algorithms.
Topological Sort.
Shortest-Path Algorithms.
Dijkstra's Algorithm.
Graphs with Negative Edge Costs
Acyclic Graphs.
All-Pairs Shortest Path.
Network Flow Problems.
Minimum Spanning Tree.
Kruskal's Algorithm.
Applications of Depth-First Search.
Biconnectivity.
Euler Circuits.
Directed Graphs.
Finding Strong Components.
Introduction to NP-Completeness.
The Class NP.
NP-Complete Problems.
Summary.
Exercises.
References.
10. Algorithm Design Techniques.
Huffman Codes.
Approximate Bin Packing.
Divide and Conquer.
Closest-Points Problem.
The Selection Problem.
Theoretical Improvements for Arithmetic Problems.
Dynamic Programming.
Ordering Matrix Multiplications.
Optimal Binary Search Tree.
All-Pairs Shortest Path.
Randomized Algorithms.
Skip Lists.
Primality Testing.
Backtracking Algorithms.
Games.
Summary.
Exercises.
References.
11. Amortized Analysis.
Binomial Queues.
Skew Heaps.
Fibonacci Heaps.
Cutting Nodes in Leftist Heaps.
The Fibonacci Heap Operations.
Proof of the Time Bound.
Splay Trees.
Summary.
Exercises.
References.
12. Advanced Data Structures and Implementation.
Red-Black Trees.
Top-Down Red-Black Trees.
Top-Down Deletion.
Deterministic Skip Lists.
AA-Trees.
Treaps.
k-d Trees.
Pairing Heaps.
Summary.
Exercises.
References.
Appendix A. The Standard Template Library.
Basic STL Concepts.
Containers.
iterator.
Pairs.
Function Objects.
Unordered Sequences: vector and list.
Stacks and Queues.
Sets.
Maps.
Example: Generating a Concordance.
Version without Using the STL
Example: Shortest-Path Calculation.
Version without Using the STL.
Other STL Features.
Appendix B. vector and string Classes.
vector Class.
string Class.
Index. 0201361221T04062001