疑问出自 <Introduction to Algorithms, 2nd Edition>
10.3 Implementing pointers and objects
[img]http://dl.iteye.com/upload/attachment/158008/1e77a423-ca8b-3ac1-909c-de6b4c4909cb.jpg[/img]
如上图是linkedlist 9 -> 16 -> 4 -> 1 的数组形式实现
疑问:
为何需要长度为8的数组, key 确只有4个。
每个对象 (垂直的3元数组) 是怎么确定其在数组L中的位子,
阴影部分是干嘛的?
谢谢
10.3 Implementing pointers and objects
[img]http://dl.iteye.com/upload/attachment/158008/1e77a423-ca8b-3ac1-909c-de6b4c4909cb.jpg[/img]
如上图是linkedlist 9 -> 16 -> 4 -> 1 的数组形式实现
疑问:
为何需要长度为8的数组, key 确只有4个。
每个对象 (垂直的3元数组) 是怎么确定其在数组L中的位子,
阴影部分是干嘛的?
谢谢