如何找到图中所有可到达的节点
给定图中可到达的节点,如何找到所有可到达的节点?您将如何启用此信息的并行计算?给定多个核心,您会选择多少个线程?
对于第一部分,我会使用广度优先搜索,第二部分,我认为我应该使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文章中有一个已解决的示例: 使用迭代映射缩减算法的广度优先图搜索
There is a worked out example in the article: breadth-first graph search using an iterative map-reduce algorithm