Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne

阅读 464
收藏 8

Algorithms, 4th Edition

essential information that
every serious programmer
needs to know about
algorithms and data structures


The textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne [ Amazon · Pearson· InformIT ] surveys the most important algorithms and data structures in use today. We motivate each algorithm that we address by examining its impact on applications to science, engineering, and industry. The textbook is organized into six chapters:
  • Chapter 1: Fundamentals introduces a scientific and engineering basis for comparing algorithms and making predictions. It also includes our programming model.
  • Chapter 2: Sorting considers several classic sorting algorithms, including insertion sort, mergesort, and quicksort. It also features a binary heap implementation of a priority queue.
  • Chapter 3: Searching describes several classic symbol-table implementations, including binary search trees, red–black trees, and hash tables.
  • Chapter 4: Graphs surveys the most important graph-processing problems, including depth-first search, breadth-first search, minimum spanning trees, and shortest paths.
  • Chapter 5: Strings investigates specialized algorithms for string processing, including radix sorting, substring search, tries, regular expressions, and data compression.
  • Chapter 6: Context highlights connections to systems programming, scientific computing, commercial applications, operations research, and intractability.


Reading a book and surfing the web are two different activities: This booksite is intended for your use while online (for example, while programming and while browsing the web); the textbook is for your use when initially learning new material and when reinforcing your understanding of that material (for example, when reviewing for an exam). The booksite consists of the following elements:

  • Excerpts. A condensed version of the text narrative, for reference while online.

  • Java code. The algorithms and clients [ algs4 · github ] in this textbook.

  • Exercise solutions. Solutions to selected exercises.

For students:

For instructors:

Last modified on December 13, 2016.

Copyright © 2000–2016 Robert Sedgewick and Kevin Wayne. All rights reserved.