第6章第5题
Suppose there are
d
items. We first choose
R=∑k=1d(dk)∑i=1d−k(d−ki)=∑k=1d(dk)(2d−k−1)=∑k=1d(dk)2d−k−∑k=1d(dk)=∑k=1d(dk)2d−k−[2d−1],
where
∑k=1d(ni)=2n−1.
Since
(1+x)d=∑i=1d(di)xd−i+xd,
substituting x=2 leads to:
3d=∑i=1d(di)2d−i+2d.
Therefore,the total number of rules is:
R=3d−2d−[2d−1]=3d−2d+1+1.