アットウィキロゴ
大久保弘崇
掲示板 掲示板 ページ検索 ページ検索 メニュー メニュー

大久保弘崇

Errata-1

最終更新:

hirotakaohkubo

- view
管理者のみ編集可

Chapter 1


p.3 l.8

Wrong:
(x,k) \leftarrow \textit{countlist} \; \textit{xs}
Correct:
(x,k) \leftarrow \textit{assocs} \, \$ \, \textit{countlist} \; \textit{xs}

p.4 typo

Wrong:
\textit{null} \; ([0 .. b-1] \,\backslash\backslash\, us \;\equiv\; \textit{length} \; \textit{us} == b
Correct:
\textit{null} \; ([0 .. b-1] \,\backslash\backslash\, us ) \;\equiv\; \textit{length} \; \textit{us} == b

Chapter 2


p.8 l.-3, l.-6 typo

Wrong:
\textit{tails} \; \textit{ys} ] )
Correct:
\textit{tails} \; \textit{ys} ]

p.10 l.5-7

Discussion here is corrupted by new sorted definitions and old unsorted one.
Especially,
d \ne \textit{tcount} \, x \, \textit{tys}'
Counterexample :
let
ys = "bab"
so
tys = table ys = [('a',1),('b',0),('b',0)], x = y = 'a', d = 1, tys' = [('b',0),('b',0)]
Now
tcount x tys' = 2 /= d

Here is my proposal:
(p.9, below (2.1))
table xs = sortBy (\a b-> compare (fst a) (fst b)) xs
(p.10 l.5-7)
When x > y, (2.3) reduces to (y,d):join txs tys' .
When x = y, You have 2 choices.
If you choose the txs side, discussion above cannot apply, so (2.3) reduces to (x, c + length (dropWhile ((x >=) . fst) tys)) : join n txs' tys .
If you choose the tys side, (2.3) reduces to (y,d):join txs tys' .
It is clear we should choose the latter.

p.11

Wrong:
Rem, M. (1998b). Small programming exercises 21. Science of Computer Programming 10 (3), 319–25.
Correct:
Rem, M. (1988b). Small programming exercises 21. Science of Computer Programming 10 (3), 319–325.
Page number is his style?

Place comment here

Name
Message
記事メニュー
最近更新されたスレッド
ウィキ募集バナー