具有不同大小原子键的b树的性能保证

M. A. Bender, Haodong Hu, Bradley C. Kuszmaul
{"title":"具有不同大小原子键的b树的性能保证","authors":"M. A. Bender, Haodong Hu, Bradley C. Kuszmaul","doi":"10.1145/1807085.1807125","DOIUrl":null,"url":null,"abstract":"Most B-tree papers assume that all <i>N</i> keys have the same size <i>K</i>, that <i>F</i> = <i>B/K</i> keys fit in a disk block, and therefore that the search cost is O(log<sub><i>f</i></sub>+1 <i>N</i>) block transfers. When keys have variable size, however, B-tree operations have no nontrivial performance guarantees.\n This paper provides B-tree-like performance guarantees on dictionaries that contain keys of different sizes in a model in which keys must be stored and compared as opaque objects. The resulting <b>atomic-key dictionaries</b> exhibit performance bounds in terms of the average key size and match the bounds when all keys are the same size. Atomic key dictionaries can be built with minimal modification to the B-tree structure, simply by choosing the pivot keys properly.\n This paper describes both static and dynamic atomic-key dictionaries. In the static case, if there are <i>N</i> keys with average size <i>K</i>, the search cost is <i>O</i>(⌈<i>K/B</i>⌉ log<sub>1+⌈<i>K/B</i>⌉</sub> <i>N</i>) expected transfers. The paper proves that it is not possible to transform these expected bounds into worst-case bounds. The cost to build the tree is <i>O</i>(<i>NK</i>) operations and <i>O</i>(<i>NK/B</i>) transfers if all keys are presented in sorted order. If not, the cost is the sorting cost.\n For the dynamic dictionaries, the amortized cost to insert a key κ of arbitrary length at an arbitrary rank is dominated by the cost to search for κ. Specifically the amortized cost to insert a key κ of arbitrary length and random rank is <i>O</i>(⌈<i>K/B</i>⌉ log<sub>1+⌈<i>K/B</i>⌉</sub> <i>N</i> + |κ| /<i>B</i>) transfers. A dynamic-programming algorithm is shown for constructing a search tree with minimal expected cost.","PeriodicalId":92118,"journal":{"name":"Proceedings of the ... ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems","volume":"9 1","pages":"305-316"},"PeriodicalIF":0.0000,"publicationDate":"2010-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":"{\"title\":\"Performance guarantees for B-trees with different-sized atomic keys\",\"authors\":\"M. A. Bender, Haodong Hu, Bradley C. Kuszmaul\",\"doi\":\"10.1145/1807085.1807125\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Most B-tree papers assume that all <i>N</i> keys have the same size <i>K</i>, that <i>F</i> = <i>B/K</i> keys fit in a disk block, and therefore that the search cost is O(log<sub><i>f</i></sub>+1 <i>N</i>) block transfers. When keys have variable size, however, B-tree operations have no nontrivial performance guarantees.\\n This paper provides B-tree-like performance guarantees on dictionaries that contain keys of different sizes in a model in which keys must be stored and compared as opaque objects. The resulting <b>atomic-key dictionaries</b> exhibit performance bounds in terms of the average key size and match the bounds when all keys are the same size. Atomic key dictionaries can be built with minimal modification to the B-tree structure, simply by choosing the pivot keys properly.\\n This paper describes both static and dynamic atomic-key dictionaries. In the static case, if there are <i>N</i> keys with average size <i>K</i>, the search cost is <i>O</i>(⌈<i>K/B</i>⌉ log<sub>1+⌈<i>K/B</i>⌉</sub> <i>N</i>) expected transfers. The paper proves that it is not possible to transform these expected bounds into worst-case bounds. The cost to build the tree is <i>O</i>(<i>NK</i>) operations and <i>O</i>(<i>NK/B</i>) transfers if all keys are presented in sorted order. If not, the cost is the sorting cost.\\n For the dynamic dictionaries, the amortized cost to insert a key κ of arbitrary length at an arbitrary rank is dominated by the cost to search for κ. Specifically the amortized cost to insert a key κ of arbitrary length and random rank is <i>O</i>(⌈<i>K/B</i>⌉ log<sub>1+⌈<i>K/B</i>⌉</sub> <i>N</i> + |κ| /<i>B</i>) transfers. A dynamic-programming algorithm is shown for constructing a search tree with minimal expected cost.\",\"PeriodicalId\":92118,\"journal\":{\"name\":\"Proceedings of the ... ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems\",\"volume\":\"9 1\",\"pages\":\"305-316\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2010-06-06\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"6\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the ... ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/1807085.1807125\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the ... ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1807085.1807125","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

摘要

大多数B树论文假设所有N个键都有相同的大小K, F = B/K个键适合一个磁盘块,因此搜索成本是O(logf+ 1n)个块传输。但是,当键具有可变大小时,b树操作没有重要的性能保证。本文为包含不同大小键的字典提供了类似b树的性能保证,其中键必须作为不透明对象存储和比较。生成的原子键字典根据平均键大小显示性能界限,并在所有键大小相同时匹配界限。只需对b树结构进行最小的修改,就可以构建原子键字典,只需正确地选择枢轴键。本文描述了静态和动态原子键字典。在静态情况下,如果有N个平均大小为K的键,则搜索成本为O(≤≤K/B²log1+≤K/B²N)次期望传输。本文证明了不可能将这些期望边界转化为最坏情况边界。构建树的成本是O(NK)次操作和O(NK/B)次传输,如果所有键都以有序的方式呈现。如果不是,则成本为分拣成本。对于动态字典,在任意秩插入任意长度的键κ的平摊代价由查找κ的代价决定。特别是摊余成本插入一个关键κ任意长度的和随机的排名是O(⌈K / B⌉log1 +⌈K / B⌉N + |κ| / B)转移。给出了一种以最小期望代价构造搜索树的动态规划算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Performance guarantees for B-trees with different-sized atomic keys
Most B-tree papers assume that all N keys have the same size K, that F = B/K keys fit in a disk block, and therefore that the search cost is O(logf+1 N) block transfers. When keys have variable size, however, B-tree operations have no nontrivial performance guarantees. This paper provides B-tree-like performance guarantees on dictionaries that contain keys of different sizes in a model in which keys must be stored and compared as opaque objects. The resulting atomic-key dictionaries exhibit performance bounds in terms of the average key size and match the bounds when all keys are the same size. Atomic key dictionaries can be built with minimal modification to the B-tree structure, simply by choosing the pivot keys properly. This paper describes both static and dynamic atomic-key dictionaries. In the static case, if there are N keys with average size K, the search cost is O(⌈K/B⌉ log1+⌈K/B N) expected transfers. The paper proves that it is not possible to transform these expected bounds into worst-case bounds. The cost to build the tree is O(NK) operations and O(NK/B) transfers if all keys are presented in sorted order. If not, the cost is the sorting cost. For the dynamic dictionaries, the amortized cost to insert a key κ of arbitrary length at an arbitrary rank is dominated by the cost to search for κ. Specifically the amortized cost to insert a key κ of arbitrary length and random rank is O(⌈K/B⌉ log1+⌈K/B N + |κ| /B) transfers. A dynamic-programming algorithm is shown for constructing a search tree with minimal expected cost.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
CiteScore
4.40
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信