Errata for Algorithms, 4th Edition, Ninth Printing (December 2016)
CHAPTER 1
p. 44
| Printed: | StdDraw.show()set pen color to color |
| Fixed: | StdDraw.show()copy offscreen buffer to onscreen buffer |
p. 95
| Printed: | StdDraw.point(n, val) |
| Fixed: | StdDraw.point(n, value) |
p. 99
| Printed: | int[] a = in.readAllInts(args[0]); |
| Fixed: | int[] a = in.readAllInts(); |
p. 142
| Printed: | a linked list is a reference to a node having a generic item and a reference to a linked list |
| Fixed: | a linked list is a node having a generic item and a reference to a linked list |
p. 185
| Printed: | symbol for the floor is the ceiling symbol |
| Fixed: | replace with floor symbol |
CHAPTER 2
p. 339
| Printed: | less(c, a[j], a[j-1])
|
| Fixed: | less(comparator, a[j], a[j-1])
|
p. 384, Proposition B
| Printed: | 2n and 2n^2 array accesses |
| Fixed: | 4n and 4n^2 array accesses |
CHAPTER 3
No errata reported at this time.
CHAPTER 4
p. 690, Exercise 4.3.38
| Printed: | client methods name() and index() |
| Fixed: | client methods nameOf() and indexOf() |
p. 690, Exercise 4.3.38
| Printed: | with the shortest-path length from v to w |
| Fixed: | with the shortest-path length from s to t |
CHAPTER 5
No errata reported at this time.
CHAPTER 6
No errata reported at this time.