Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
キー テーブル (a、b、c) の B+ ツリー インデックスを作成する場合、2KB ページのデータベースで 64 ビット ポインターを使用します。ここで、a、b、c はすべてサイズ 4 バイトで、それぞれの合計サイズです。レコードは 88 バイトです。
テーブルに 36,279 行ある場合、インデックスの深さの可能な値の範囲は?
最小容量の場合:
2 * 天井[n/2]^(d-2) * 天井[(n-1)/2] = 36279
d を解くと 3.5 になるので、深さは 4 です。
最大容量の場合:
n^(d-1) * (n-1) = 36279
d を解くと 2.3 になるので、深さは 3 です。
したがって、答えは 3-4 です。
ああ、n は 102 です。