Errata for Algorithms, 4th Edition, Fourth Printing (September 2013)


CHAPTER 1

No errata reported at this time.


CHAPTER 2

p. 272 (and 279), Proposition F (and H)

Printed: mergesort uses between 1/2 N lg N and N lg N compares
Fixed: mergesort uses between floor(1/2 N) lg N and N lg N compares
Reported by Josh Hug, 11-Oct-13.

p. 304, Exercise 2.3.14

Printed: 2 / (j - i - 1)
Fixed: 2 / (j - i + 1)
Reported by Ervin Varga, 05-Apr-13.

p. 320

Printed: void changeKey(int k, Key key)
Fixed: void changeKey(int i, Key key)
Reported by Erin Yoshida, 26-Oct-13.


CHAPTER 3

p. 371, Table

Printed: 5,737 distinct words in tale.txt
Fixed: 5,131 distinct words in tale.txt
Note: Same error is repeated on p. 376, 377, 384, 405, and 445
Reported by Ravi Mohan, 14-Sep-13.


CHAPTER 4

p. 677

Printed: EdgeWeightedCycleFinder
Fixed: EdgeWeightedDirectedCycle
Reported by Peter Moore, 30-Mar-14.


CHAPTER 5

No errata reported at this time.


CHAPTER 6

p. 804

Printed: String txt = StdIn.hasNextLine();
Fixed: String txt = StdIn.readLine();
Reported by Anonymous, 25-Nov-13.