数据结构翻译.doc

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

(a,b)树和B树 A different method to keep the height of the trees small is to allow tree nodes of higher degree. This idea was introduced as B-trees by Bayer and McCreight (1972) and turned out to be very fruitful. It was originally intended as external memory data structure, but we will see in Section 3.4 that it has interesting uses also as normal main memory data structure. The characteristic of external memory is that access to it is very slow, compared to main memory, and is done in blocks, units much larger than single main memory locations, which are simultaneously transferred into main memory. In the 1970s, computers were still very memory limited but usually already had a large external memory, so that it was a necessary consideration how a structure operates when a large part of it is not in main memory, but on external memory. This situation is now less important, but it is still relevant for database applications, where B-tree variants are still much used as index structures。 不同的方法保持树的高度是允许树节点。它原本是外部存数据结构,但我们在3.4节中看到的,外部存储器的特点是与主存储器相比访问非常慢同时转移到主内存在1970年代,计算机内存仍非常有限,但通常已经有了一个很大的外部存储器所以这是一个必要的考虑结构大的一部分,不是在主内存,是在外部存储器如何运作。这种情况现在不那么重要,但它仍然-树变仍多用作索引结构普通二进制搜索树作为外部内存结构每个树节点可以在不同外部内存块,只有前面的块已经从外部存储器中检索它成为已知所以我们需要尽可能多的外部内存块访问树的高度,树的想法是把每一块作为一个节点的高度。在最初的版本中每个节点和2?1之间然后平衡的标准,所有的树叶都应该在同一深度(logn) block changes can be necessary.For a main memory data structure, the number of changes in rebalancing makes little difference, although it has been studied in many papers; but for an external memory structure it is essential because all changed blocks have to be written again to the external memory device. So these trees, known as (a,b)-trees, are the method of choice. 从Bayer and McCreight 提出的平衡算法中,度的间隔在a到2a-1之间是最小的间隔。因为每一块的空间最多是2a-1个元素,并且至少有一半是符合这种方式的。这听起来像一个不错的选择来优化空间利用率。≥2a-1然后平衡改变复杂度为O(1)的块。而对于b = 2?1,最初的选择(logn)的块的是必要的。主内存数据结构,平衡的数量变化不大,虽然它已经在许多论文研究;但对于外部内存结构至关重要,因为所有改变块外部存储设备。所以这些树,称为(a,b)树,是选择的方法。 An (a, b)-tree is a nonbinary search tree in which all leaves have the same

文档评论(0)

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

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

1亿VIP精品文档

相关文档