Algorithms in C++ (Hardcover)
Robert Sedgewick
- 出版商: Addison Wesley
- 出版日期: 1992-05-10
- 售價: $1,009
- 語言: 英文
- 頁數: 672
- 裝訂: Hardcover
- ISBN: 0201510596
- ISBN-13: 9780201510591
-
相關分類:
C++ 程式語言、Algorithms-data-structures
已絕版
買這商品的人也買了...
-
$1,029Fundamentals of Data Structures in C++
-
$580$458 -
$680$578 -
$1,029Operating Systems: Internals and Design Principles, 4/e
-
$199$189 -
$980$774 -
$970Introduction to Algorithms, 2/e
-
$920$727 -
$1,029Operating System Concepts, 6/e (Windows XP Update)
-
$1,030$1,009 -
$450$360 -
$620$558 -
$780$741 -
$280$218 -
$750$638 -
$650$553 -
$760$600 -
$590$466 -
$690$538 -
$720$562 -
$750$675 -
$560$504 -
$480$379 -
$750$593 -
$780$663
相關主題
商品描述
Description
This version of Sedgewick's bestselling book provides a comprehensive collection of algorithms implemented in C++. The algorithms included cover a broad range of fundamental and more advanced methods: sorting, searching, string processing, geometric, graph, and mathematical algorithms. Readers will discover-in an object-oriented programming environment-how key algorithms can be implemented, run, debugged, and used in real applications.
FUNDAMENTALS.
1. Introduction.
2. C++ (AND C) Example: Euclid's Algorithm.
3. Elementary Data Structures.
4. Trees.
5. Recursion.
6. Analysis of Algorithms.
Algorithms.
Outline of Topics.
Outline of Topics.
2. C++ (AND C) Example: Euclid's Algorithm.
Types of Data.
Input/Output.
Concluding Remarks
Input/Output.
Concluding Remarks
3. Elementary Data Structures.
Arrays.
Linked Lists.
Storage Allocation.
Pushdown Stacks.
Queues.
Abstract and Concrete Data Types.
Linked Lists.
Storage Allocation.
Pushdown Stacks.
Queues.
Abstract and Concrete Data Types.
4. Trees.
Glossary.
Properties.
Representing Binary Trees.
Representing Forests.
Traversing Trees.
Properties.
Representing Binary Trees.
Representing Forests.
Traversing Trees.
5. Recursion.
Recurrences.
Divide-and-Conquer.
Recursive Tree Traversal.
Removing Recursion.
Perspective.
Divide-and-Conquer.
Recursive Tree Traversal.
Removing Recursion.
Perspective.
6. Analysis of Algorithms.
Selecting an Algorithm.
Empirical Analysis.
Program
Optimization.
Algorithms and Systems
Empirical Analysis.
Program
Optimization.
Algorithms and Systems
SORTING ALGORITHMS.
7. Elementary Sorting Methods.
8. Quicksort.
9. Radix Sorting.
10. Priority Queues.
11. Mergesort.
12. External Sorting.
Rules of the Game.
Selection Sort.
Insertion Sort.
Digression: Bubble Sort.
Performance Characteristics of Elementary Sorts.
Sorting Files with Large Records.
Shellsort.
Distribution Counting.
Selection Sort.
Insertion Sort.
Digression: Bubble Sort.
Performance Characteristics of Elementary Sorts.
Sorting Files with Large Records.
Shellsort.
Distribution Counting.
8. Quicksort.
The Basic Algorithm.
Performance Characteristics of Quicksort.
Removing Recursion.
Small Subfiles.
Median-of-Three Partitioning.
Selection.
Performance Characteristics of Quicksort.
Removing Recursion.
Small Subfiles.
Median-of-Three Partitioning.
Selection.
9. Radix Sorting.
Bits.
Radix Exchange Sort.
Straight Radix Sort.
Performance Characteristics of Radix Sorts.
A Linear Sort.
Radix Exchange Sort.
Straight Radix Sort.
Performance Characteristics of Radix Sorts.
A Linear Sort.
10. Priority Queues.
Elementary Implementations.
Heap Data Structure.
Algorithms on Heaps.
Heapsort.
Indirect Heaps.
Advanced Implementations
Heap Data Structure.
Algorithms on Heaps.
Heapsort.
Indirect Heaps.
Advanced Implementations
11. Mergesort.
Merging.
Mergesort.
Lit Mergesort.
Bottom-Up Mergesort.
Performance Characteristics.
Optimized Implementations.
Recursion Revisited.
Mergesort.
Lit Mergesort.
Bottom-Up Mergesort.
Performance Characteristics.
Optimized Implementations.
Recursion Revisited.
12. External Sorting.
Sort-Merge.
Balanced Multiway Merging.
Replacement
Selection.
Practical Considerations.
Polyphase Merging.
An Easier Way
Balanced Multiway Merging.
Replacement
Selection.
Practical Considerations.
Polyphase Merging.
An Easier Way
SEARCHING ALGORITHMS.
13. Elementary Searching Methods.
14. Balanced Trees.
15. Hashing.
16. Radix Searching.
17. External Searching.
Sequential Searching Methods.
Binary Search.
Binary Tree Search.
Deletion.
Indirect Binary Search Trees.
Binary Search.
Binary Tree Search.
Deletion.
Indirect Binary Search Trees.
14. Balanced Trees.
Top-Down 2-3-4 Trees.
Red-Black Trees.
Other Algorithms.
Red-Black Trees.
Other Algorithms.
15. Hashing.
Hash Functions.
Separate Chaining.
Linear Probing.
Double Hashing.
Perspective
Separate Chaining.
Linear Probing.
Double Hashing.
Perspective
16. Radix Searching.
Digital Search Trees.
Radix Search Tries.
Multiway Radix Searching.
Patricia.
Radix Search Tries.
Multiway Radix Searching.
Patricia.
17. External Searching.
Indexed Sequential Access.
B-Trees.
Extendible Hashing.
Virtual Memory.
B-Trees.
Extendible Hashing.
Virtual Memory.
STRING PROCESSING.
18. String Searching.
19. Pattern Matching.
20. Parsing.
21. File Compression.
22. Cryptology.
A Short History.
Brute-Force Algorithm.
Knuth-Morris-Pratt Algorithm.
Boyer-Moore Algorithm.
Rabin-Karp Algorithm.
Multiple Searches.
Brute-Force Algorithm.
Knuth-Morris-Pratt Algorithm.
Boyer-Moore Algorithm.
Rabin-Karp Algorithm.
Multiple Searches.
19. Pattern Matching.
Describing Patterns.
Pattern Matching Machines.
Representing the Machine.
Simulating the Machine.
Pattern Matching Machines.
Representing the Machine.
Simulating the Machine.
20. Parsing.
Context-Free Grammars.
Top-Down Parsing.
Bottom-Up Parsing.
Compilers.
Compiler-Compilers.
Top-Down Parsing.
Bottom-Up Parsing.
Compilers.
Compiler-Compilers.
21. File Compression.
Run-Length Encoding.
Variable-Length Encoding.
Building the Huffman Code.
Implementation.
Variable-Length Encoding.
Building the Huffman Code.
Implementation.
22. Cryptology.
Rules of the Game.
Simple Methods.
Encryption/Decryption Machines.
Public-Key Cryptosystems.
Simple Methods.
Encryption/Decryption Machines.
Public-Key Cryptosystems.
GEOMETRIC ALGORITHMS.
23. Elementary Geometric Methods.
24. Finding the Convex Hull.
25. Range Searching.
26. Geometric Intersection.
27. Closest-Point Problems.
Points, Lines, and Polygons.
Line Segment Intersection.
Simple Closed Path.
Inclusion in a Polygon.
Perspective.
Line Segment Intersection.
Simple Closed Path.
Inclusion in a Polygon.
Perspective.
24. Finding the Convex Hull.
Rules of the Game.
Package-Wrapping.
The Graham Scan.
Interior Elimination.
Performance Issues.
Package-Wrapping.
The Graham Scan.
Interior Elimination.
Performance Issues.
25. Range Searching.
Elementary Methods.
Grid Method.
Two-Dimensional Trees.
Multidimensional Range Searching.
Grid Method.
Two-Dimensional Trees.
Multidimensional Range Searching.
26. Geometric Intersection.
Horizontal and Vertical Lines.
Implementation.
General Line Intersection.
Implementation.
General Line Intersection.
27. Closest-Point Problems.
Closest-Pair Problem.
Voronoi Diagrams.
Voronoi Diagrams.
GRAPH ALGORITHMS.
28. Elementary Graph Algorithms.
29. Connectivity.
30. Weighted Graphs.
31. Directed Graphs.
32. Network Flow.
33. Matching.
Glossary.
Representation.
Depth-First Search.
Nonrecursive Depth-First Search.
Breadth-First Search.
Mazes.
Perspective.
Representation.
Depth-First Search.
Nonrecursive Depth-First Search.
Breadth-First Search.
Mazes.
Perspective.
29. Connectivity.
Connected Components.
Biconnectivity.
Union-Find Connectivity.
Biconnectivity.
Union-Find Connectivity.
30. Weighted Graphs.
Minimum Spanning Tree.
Priority-First Search.
Kruskal's Method.
Shortest Path.
Minimum Spanning Tree and Shortest Paths in Dense Graphs.
Geometric Problems.
Priority-First Search.
Kruskal's Method.
Shortest Path.
Minimum Spanning Tree and Shortest Paths in Dense Graphs.
Geometric Problems.
31. Directed Graphs.
Depth-First Search.
Transitive Closure.
All Shortest Paths.
Topological Sorting.
Strongly Connected Components.
Transitive Closure.
All Shortest Paths.
Topological Sorting.
Strongly Connected Components.
32. Network Flow.
The Network Flow Problem.
Ford-Fulkerson Method.
Network Searching.
Ford-Fulkerson Method.
Network Searching.
33. Matching.
Bipartite Graphs.
Stable Marriage Problems.
Advanced Algorithms.
Stable Marriage Problems.
Advanced Algorithms.
MATHEMATICAL ALGORITHMS.
34. Random Numbers.
35. Arithmetic.
36. Gaussian Elimination.
37. Curve Fittings.
38. Integration.
Applications.
Linear Congruential Method.
Additive Congruential Method.
Testing Randomness.
Implementational Notes.
Linear Congruential Method.
Additive Congruential Method.
Testing Randomness.
Implementational Notes.
35. Arithmetic.
Polynomial Arithmetic.
Polynomial Evaluation and Interpolation.
Polynomial Multiplication.
Arithmetic Operations with Large Integers.
Matrix Arithmetic.
Polynomial Evaluation and Interpolation.
Polynomial Multiplication.
Arithmetic Operations with Large Integers.
Matrix Arithmetic.
36. Gaussian Elimination.
A Simple Example.
Outline of the Method.
Variations and Extensions.
Outline of the Method.
Variations and Extensions.
37. Curve Fittings.
Polynomial Interpolation.
Spline Interpolation.
Method of Least Squares.
Spline Interpolation.
Method of Least Squares.
38. Integration.
Symbolic Integration.
Simple Quadrature Methods.
Compound Methods.
Adaptive Quadrature.
Simple Quadrature Methods.
Compound Methods.
Adaptive Quadrature.
ADVANCED TOPICS.
39. Parallel Algorithms.
40. The Fast Fourier Transform.
41. Dynamic Programming.
42. Linear Programming.
43. Exhaustive Search.
44. NP-Complete Problems.
General Approaches.
Perfect Shuffles.
Systolic Arrays.
Perspective.
Perfect Shuffles.
Systolic Arrays.
Perspective.
40. The Fast Fourier Transform.
Evaluate, Multiply, Interpolate.
Complex Roots of Unity.
Evaluation at the Roots of Unity.
Interpolation at the Roots of Unity.
Implementation.
Complex Roots of Unity.
Evaluation at the Roots of Unity.
Interpolation at the Roots of Unity.
Implementation.
41. Dynamic Programming.
Knapsack Problem.
Matrix Chain Product.
Optimal Binary Search Trees.
Time and Space Requirements.
Matrix Chain Product.
Optimal Binary Search Trees.
Time and Space Requirements.
42. Linear Programming.
Linear Programs.
Geometric Interpretation.
The Simplex Method.
Implementation.
Geometric Interpretation.
The Simplex Method.
Implementation.
43. Exhaustive Search.
Exhaustive Search in Graphs.
Backtracking.
Digression: Permutation Generation.
Approximation Algorithms.
Backtracking.
Digression: Permutation Generation.
Approximation Algorithms.
44. NP-Complete Problems.
Deterministic and Nondeterministic Polynomial-Time Algorithms.
NP-Completeness.
Cook's Theorem.
Some NP-Complete Problems. 0201510596T04062001
NP-Completeness.
Cook's Theorem.
Some NP-Complete Problems. 0201510596T04062001
CS0701: