加州大学的B+树试题,大家看看谁能做出来

bary 2008-04-23 05:23:18
1. A disk block of size 1024 bytes is used to store a B+ tree node.
Block header size=10 bytes. The key length is 9 bytes.
Each pointer is 4 bytes.
What is the maximum order of the B+ tree.

2. Compute the lower and upper bounds of the height of a
B+ tree index of order-n on a file with m records.

3. For the following order-5 B+ tree show the number of block
access and the tree after each operation.
Insert key 13 and then delete key 43.

(Note: assume that each node is 1 block, and do not count data block
accesses. Include empty block access and return.)


___
|35 |
|___|
/ \
/ \
/ \
/ \
____________/ \ ______
| 10, 20 | |42,50 |
|____________| |______|
/ | \ / | \
_______/ ____|________ \_______ _______/ ___|___ \______
|5,6,7 | |10,11,12,14 | |20,22 | |35,36 | |42,43 | |50,52 |
|______| |____________| |______| |______| |______| |______|
...全文
145 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
浴火_凤凰 2008-04-30
  • 打赏
  • 举报
回复
继续学习中。
baobao2010 2008-04-30
  • 打赏
  • 举报
回复
mark
knowledge_Is_Life 2008-04-30
  • 打赏
  • 举报
回复
好像没那么简单,呵呵.
mmmcd 2008-04-26
  • 打赏
  • 举报
回复

___
¦35 ¦
¦___¦
/ \
/ \
/ \
/ \
____________/ \ ______
¦ 10, 20 ¦ ¦42,50 ¦
¦___________¦ ¦______¦
/ ¦ \ / ¦ \
_______/ ____ ¦________ \_______ _______/ ___ ¦___ \______
¦5,6,7 ¦ ¦10,11,12,14 ¦ ¦20,22 ¦ ¦35,36 ¦ ¦42,43 ¦ ¦50,52 ¦
¦______¦ ¦____________ ¦ ¦______¦ ¦______¦ ¦______¦ ¦______¦
bary 2008-04-23
  • 打赏
  • 举报
回复
___
¦35 ¦
¦___¦
/ \
/ \
/ \
/ \
____________/ \ ______
¦ 10, 20 ¦ ¦42,50 ¦
¦___________¦ ¦______¦
/ ¦ \ / ¦ \
_______/ ____ ¦________ \_______ _______/ ___ ¦___ \______
¦5,6,7 ¦ ¦10,11,12,14 ¦ ¦20,22 ¦ |35,36 ¦ ¦42,43 ¦ ¦50,52 ¦
¦______¦ ¦____________ ¦ ¦______¦ ¦______¦ ¦______¦ ¦______¦

33,010

社区成员

发帖
与我相关
我的任务
社区描述
数据结构与算法相关内容讨论专区
社区管理员
  • 数据结构与算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧