没有数组索引的斐波那契堆?

发布于 2024-12-15 04:53:08 字数 184 浏览 6 评论 0原文

朋友们,我的教授讨论了斐波那契堆并布置了家庭作业。需求通常是在提取之后,我们需要通过链接相同程度的根来压缩根列表。我们使用数组索引来查找另一个相同程度的元素。但现在想象一下您的系统中没有数组索引功能。使用一些数据结构和附加指针来实现提取,以便您可以获得相同的摊销时间!

我对此已经伤透了脑筋,但我没有得到任何想法。有任何线索或输入吗???

Friends, my professor covered Fibonacci heaps and gave a home work. The requirement is usually after a extract, we need to compress the root list by linking roots of same degree. We use array indexing to find another element of same degree. But now imagine that you don't have array indexing capabilities in your system. Implement extract using some data structures and additional pointers so that you can achieve same amortized time!!

I've broken my head over this but I'm not getting any ideas. Any clues or inputs???

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文