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 ] 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:

Online courses.

You can take our free Coursera MOOCs. They include a full set of lecture videos and assessments. Algorithms, Part I covers Chapters 1 through 3; Algorithms, Part II covers Chapters 4 through 6.


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:

To get started.

Here are instructions for setting up a simple Java programming environment [ Mac OS X · Windows · Linux ].

To adopt.

Here is a marketing flyer. Here is the preface. If you are considering adoption, you can ask the authors for more information or request an examination copy. The corresponding Princeton course COS 226 is cited as an ACM/IEEE course exemplar in CS2013.