Data Srtuctures and Problem Solving Using C++ 2/e

Mark A. Weiss

  • 出版商: Addison Wesley
  • 出版日期: 1999-11-23
  • 售價: $980
  • 貴賓價: 9.8$960
  • 語言: 英文
  • 頁數: 984
  • 裝訂: Paperback
  • ISBN: 020161250X
  • ISBN-13: 9780201612509
  • 相關分類: C++ 程式語言
  • 無法訂購

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

商品描述


Description

Data Structures and Problem Solving Using C++ provides a practical introduction to data structures and algorithms from the viewpoint of abstract thinking and problem solving, as well as the use of C++. It is a complete revision of Weiss' successful CS2 book Algorithms, Data Structures, and Problem Solving with C++.

The most unique aspect of this text is the clear separation of the interface and implementation. C++ allows the programmer to write the interface and implementation separately, to place them in separate files and compile separately, and to hide the implementation details. This book goes a step further: the interface and implementation are discussed in separate parts of the book. Part I (Objects and C++), Part II (Algorithms and Building Blocks), and Part III (Applications) lay the groundwork by discussing basic concepts and tools and providing some practical examples, but implementation of data structures is not shown until Part IV (Implementations). This separation of interface and implementation promotes abstract thinking. Class interfaces are written and used before the implementation is known, forcing the reader to think about the functionality and potential efficiency of the various data structures (e.g., hash tables are written well before the hash table is implemented).

Throughout the book, Weiss has included the latest features of the C++ programming language, including a more prevalent use of the Standard Template Library (STL).

Back to Top


Appropriate Courses

C++ – Data Structures/CS2.

Back to Top


Features

  • Promotes abstract thinking by separating the interface, Part II, and implementation, Part IV, of the data structures into different parts of the book.
  • Includes a new chapter on Patterns.
  • Revised material makes use of the STL whenever appropriate.
  • A simplified STL implementation is illustrated at the end of the chapters in Part IV, including vector, list, stack, queue, set, map, and priority_queue.
  • All code is completely rewritten and tested for compatibility with a wide range of current compilers.
  • Rewritten material on inheritance simplifies the initial presentation and provides the C++ details that are important for advanced uses.
  • Provides new material on templates, vectors, and push_back.
  • Illustrates both the generic interfaces and STL interfaces of data structures.
  • Generic data structures such as linked lists classes, search tree and hash table classes, priority_queue, and disjoint sets class are rewritten to be much simpler and cleaner.
Back to Top


Table Of Contents

I. OBJECTS AND C++.

1. Arrays, Pointers, and Structures.
2. Objects and Classes.
3. Templates.
4. Inheritance.
5. Design Patterns.

II. ALGORITHMS AND BUILDING BLOCKS.

6. Algorithm Analysis.
7. The Standard Template Library.
8. Recursion.
9. Sorting Algorithms.
10. Randomization.

III. APPLICATIONS.

11. Fun and Games.
12. Stacks and Compilers.
13. Utilities.
14. Simulation.
15. Graphs and Paths.

IV. IMPLEMENTATIONS.

16. Stacks and Queues.
17. Linked Lists.
18. Trees.
19. Binary Search Trees.
20. Hash Tables.
21. A Priority Queue: The Binary Heap.

V. ADVANCED DATA STRUCTURES.

22. Splay Trees.
23. Merging Priority Queues.
24. The Disjoint Set Class.
Appendix A: Miscellaneous C++ Details
Appendix B: Operators.
Appendix C: Some Library Routines.
Appendix D: Primitive Arrays in C++


Back to Top



Supplements


General Supplements

  • Online Instructor's Manual
    See "CS Supplement List" on PIRL for more information.



Back to Top