什么是“m桥技术”?用于分区二叉树以进行并行处理?

发布于 2024-09-17 14:21:00 字数 669 浏览 9 评论 0原文

它是如何运作的?请用英语或伪代码详细解释,以便我可以用任何语言实现。

本文提到并简要描述了这一点: http://citeseerx. ist.psu.edu/viewdoc/download?doi=10.1.1.4.3643&rep=rep1&type=pdf

但那里没有足够的细节来实现我自己。 (图 2b 中的权重似乎是错误的?并且不清楚他们如何决定在图 2c 中进行切割的位置。)

我还查找了原始源论文(http://www-2.cs.cmu.edu/~glmiller/Publications/Papers/ReMiMo93.pdf)但也无法从那里弄清楚。

是否有更好的算法可以满足相同的需求?具体来说,有什么可以保证分区树“几乎相同大小”(但更多)?该论文建议 m-bridge 保证分区树不会大于 4n/p,如果您只有 4 个处理器,则这并不能保证!

How does it work? Please explain in enough detail in English or pseudocode so that I can implement in any language.

It is mentioned and briefly described in this paper:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.4.3643&rep=rep1&type=pdf

but there isn't enough detail there to implement myself. (the weights in Fig2b seem wrong? and it's not clear how they decided where to make the cuts in Fig 2c.)

I also looked up the original source paper (http://www-2.cs.cmu.edu/~glmiller/Publications/Papers/ReMiMo93.pdf) but couldn't figure it out from there either.

Are there better algorithms out there that fill the same need? Specifically, anything that can guarantee partitioned trees that are "almost the same size" (but more so)? The paper suggests m-bridge guarantees no partitioned tree to be bigger than 4n/p, which is not much of a guarantee if you only have 4 processors!

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

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

发布评论

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

评论(1

薆情海 2024-09-24 14:22:06

要进行一次切割:

  1. 对于树中的每个节点,计算该节点有多少个后代。
  2. 具有>n/2个后代的节点形成下降路径。下降到路径的底部。
  3. 其中一个孩子有 n/3 到 n/2 个后代。把它从树的其余部分切下来。

要进行多次砍伐,请反复砍伐剩余的最大的树。

To make one cut:

  1. For each node in the tree, compute how many descendants that node has.
  2. The nodes with >n/2 descendants form a descending path. Descend to the bottom of the path.
  3. One of the children has between n/3 and n/2 descendants. Cut it from the rest of the tree.

To make many cuts, repeatedly cut the largest tree remaining.

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