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 |
p. 304, Exercise 2.3.14
Printed: | 2 / (j - i - 1) |
Fixed: | 2 / (j - i + 1) |
p. 320
Printed: | void changeKey(int k, Key key) |
Fixed: | void changeKey(int i, Key key) |
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 |
CHAPTER 4
p. 677
Printed: | EdgeWeightedCycleFinder |
Fixed: | EdgeWeightedDirectedCycle |
CHAPTER 5
No errata reported at this time.
CHAPTER 6
p. 804
Printed: | String txt = StdIn.hasNextLine(); |
Fixed: | String txt = StdIn.readLine(); |