如何找到图中所有可到达的节点

发布于 2024-12-22 15:56:59 字数 152 浏览 5 评论 0原文

给定图中可到达的节点,如何找到所有可到达的节点?您将如何启用此信息的并行计算?给定多个核心,您会选择多少个线程?

对于第一部分,我会使用广度优先搜索,第二部分,我认为我应该使用 Map-reduce 的 strnegth 但无法理解如何? 你能帮忙吗?感谢您的时间和努力。

Given a node in a graph that is reachable, how do you find all the nodes that are reachable ? How would you enable parallel computation of this information ? Given a number of cores, how many threads would you choose ?

For the first part, i would go with the Breadth first Search and second part, i think somehow i should use the strnegth of Map-reduce but not able to understand how?
Could you please help. Appreciate your time and efforts.

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

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

发布评论

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

评论(1

尤怨 2024-12-29 15:56:59

文章中有一个已解决的示例: 使用迭代映射缩减算法的广度优先图搜索

There is a worked out example in the article: breadth-first graph search using an iterative map-reduce algorithm

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