|
|
|
|
Note:
|
|
|
|
|
|
|
Summary: (and a concrete example with n = 3)
|
|
|
|
(There are a few places in the notes where I forgot to put the super script)
|
|
|
|
Explanation:
|
|
|
Note that
|
|
|
Let: Sk = length of a search key (in bytes)
Sp = length of a pointer (in bytes)
|
Example:
BlockSize = 4096 bytes
Sk = 4 bytes (search key)
Sp = 8 bytes
Then:
4n + 8(n+1) ≤ 4096
12n + 8 ≤ 4096
12n ≤ 4088
n ≤ 340.666
===> n = 340 search keys in 1 block
|
|
Structure requirement:
|