The companion web site, algs4.cs., contains The algorithms in this book represent a body of knowledge developed over the last 50 years that has become indispensable, not just for professional programmers and computer science students but for any student with interests in science, mathematics, and engineering, not to mention students who use computation in the liberal arts. In this edition, new Java implementations are written in an accessible modular programming style, where all of the code is exposed to the reader and ready to use. This book surveys the most important computer algorithms currently in use and provides a full treatment of data structures and algorithms for sorting, searching, graph processing, and string processing-including fifty algorithms every programmer should know. This fourth edition of Robert Sedgewick and Kevin Wayne’s Algorithmsis the leading textbook on algorithms today and is widely used in colleges and universities worldwide.