您将使用多路搜索树构建什么。

发布于 2024-07-09 08:22:33 字数 106 浏览 6 评论 0原文

我目前正在自学各种数据结构,并对各种类型的树感到有点沮丧。 我可以理解将某些内容组织成二叉搜索树的目的,但没有看到多路搜索树的任何实际应用。 有人可以举一些他们使用多路搜索树实现的问题的例子吗?

I am currently teaching myself about various data strutures and am a little frustrated with the various types of trees. I can understand the purpose of organizing something into binary search trees but don't see any practical application of multiway search trees. Can someone please give some examples of problems they've implemented using multiway search trees?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多路树用于在磁盘上实现数据结构,例如关系数据库表。

与连续读取相比,磁盘上的查找操作非常慢。 因此,为了提高效率,尽量减少寻道次数的结构是最好的。 对于相同元素,多路树的深度比二叉树小得多,这意味着只需在磁盘上进行很少的查找即可找到节点。

Multiway trees are used to implement data structures on disk, like a relational database table.

A seek operation on disk is very slow compared to a contiguous read. So, for efficiency, a structure that minimizes the number of seeks is best. The depth of a multiway tree is much less than a binary tree for the same elements, meaning that few seeks on disk are required to locate a node.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文