forked from ericwang14/Programming-Pearls-source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errata.html
73 lines (59 loc) · 1.57 KB
/
errata.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<HTML>
<HEAD>
<title>Errata for Programming Pearls, Second Edition</title>
</HEAD>
<BODY BGCOLOR=#ffffff>
<a href="index.html">
<img alt="book cover" ALIGN=right hspace=20 src="pp2e.jpg">
</a>
<P>
<h1>Errata for
<br><font color="#a52a2a">Programming Pearls,
<br>Second Edition</font></h1>
<p>
The second printing had no changes from the first printing.
<p>
The following bugs need to be fixed in upcoming printings.
<P>
p. 38, line 23. The clause <i>cantbe(m, n)</i> should be
<i>cantbe(m, n-1)</i>.
<P>
p. 121, line 11: The inequality sign is reversed; the test should read
``<i>if u-l < cutoff</i>''.
(The test is correct in the function <i>qsort4</i> later on the page.)
<p>
p. 129, line -14: The variables ``<i>m</i>''
and ``<i>n</i>'' are swapped.
The sentence should read:
``Next, suppose that <i>m</i> is ten million
and <i>n</i> is 2<sup>31</sup>.''
<p>
p. 181, line -6:
Change ``structues'' to ``structures''.
<P>
p. 203, line 12:
Change ``commutative'' to ``associative''.
<P>
p. 224, line -2: Remove the phrase
``or print <i>n</i> + 1 - <i>i</i> rather than <i>i</i>''.
<P>
p. 231, line -13: Insert ``p'' after ``*'',
so the line reads
<DL><DT><DD><TT><PRE>
unsigned int hash(char *p)
</PRE></TT></DL>
<p>
I am grateful for the extremely careful reading
and detailed bug reports provided by
Nick Cox,
Alexey Kudravtsev,
Dan Pape,
Arnold Robbins
and Satoru Takabayashi.
<p>
<FONT SIZE=1>Copyright © 1999
<B>Lucent Technologies.</B> All rights reserved.</FONT>
<font size=-2>
We 15 Nov 2000
</BODY>
</HTML>