[工学]数据结构java版6.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[工学]数据结构java版6

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Inserting a Key into a B-Tree (continued) Figure 7-8 Building a B-tree of order 5 with the BTreeInsert() algorithm Inserting a Key into a B-Tree (continued) Figure 7-8 Building a B-tree of order 5 with the BTreeInsert() algorithm (continued) Inserting a Key into a B-Tree (continued) Figure 7-8 Building a B-tree of order 5 with the BTreeInsert() algorithm (continued) Deleting a Key from a B-Tree Avoid allowing any node to be less than half full after a deletion In deletion, there are two main cases: Deleting a key from a leaf Deleting a key from a nonleaf node Deleting a Key from a B-Tree (continued) Figure 7-9 Deleting keys from a B-tree Deleting a Key from a B-Tree (continued) Figure 7-9 Deleting keys from a B-tree (continued) Deleting a Key from a B-Tree (continued) Figure 7-9 Deleting keys from a B-tree (continued) B+-Trees References to data are made only from the leaves The internal nodes of a B+-tree are indexes for fast access of data; this part of the tree is called an index set The leaves are usually linked sequentially to form a sequence set so that scanning this list of leaves results in data given in ascending order B+-Trees (continued) Figure 7-13 An attempt to insert the number 6 into the first leaf of a B+-tree B+-Trees (continued) Figure 7-14 Actions after deleting the number 6 from the B+-tree in Figure 7.13b B+-Trees B+树是应文件系统所需而出的一种B-树的变型树。一棵m阶的B+树和m阶的B-树的差异在于: 有n棵子树的结点中含有n个关键字。 所有的叶子结点中包含了全部关键字的信息,及指向含这些关键字记录的指针,且叶子结点本身依关键字的大小自小而大顺序链接。 所有的非终端结点可以看成是索引部分,结点中仅含其子树(根结点)中的最大(或最小)关键字。 通常在B+树上有两个头指针,一个指向根结点,一个指向关键字最小的叶子结点。 * B+-Trees * B*-Trees In a B*-tree, all nodes except the root are required to be at least two-thirds full, not just half full as in a B-tree The frequency of node splitting is decreased by delaying

文档评论(0)

ctuorn0371 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档