首页> 外文期刊>電子情報通信学会技術研究報告 >木上の関数の簡単な並列計算アルゴリズム
【24h】

木上の関数の簡単な並列計算アルゴリズム

机译:树上函数的简单并行计算算法

获取原文
获取原文并翻译 | 示例
           

摘要

本論文は,n 節点の根付き木で定義される関数を計算する問題を扱う.具体的には,f(v)=W(v)⊕(⊕_(u∈S(v) f(u))で定義される関数の,木の根rでの値 f(r)を求める(S(v)は節点vの子の集合を表す.).本論文は,この関数をpプロセッサのEREW-PRAM モデルでO(n/p+log~2 p)時間で計算するアルゴリズムを提案する.演算子⊕と⊕は次の条件を満たすとする:⊕は結合的で,⊕に対して左分配的であり,⊕は結合的である.もし⊕が逆元を持つなら(つまり⊕が群を成すなら),時間計算量はO(n/p+log p)に改善される.このアルゴリズムは省メモリである.節点の重みw(v)がたビットで表現され,関数の値がW ビットで表現されるとすると,このアルゴリズムは木を格納するために2(k+1)れビットを用い,関数の計算を行う際の作業領域はO(p(W+log n))ビットである.単純さとメモリ効率の良さから,このアルゴリズムはGPGPU に適している.%We propose a simple parallel algorithm for computing a function defined on a rooted tree with n nodes. Namely, we want to compute the value of a function f(r) for the root node r, defined as f(v) = w(v) ⊕ ( ⊕_(u∈S(v)) f(u)) where S(v) denotes the set of child nodes of the node v. We propose a simple EREW-PRAM algorithm for computing the function in O(n/p + log2 p) time using p processors. We assume that the operators ⊕ and ⊕ satisfy the following: ⊕ is associative, left-distributive over ⊕, and ⊕ is associative. If ⊕ has the inverse (i.e., ⊕ forms a group), the time complexity is improved to O(n/p + log p). Our algorithm is space efficient. If the weight of a node is represented in k bits and the value of the function is represented in W bits, our algorithm uses 2(k + l)n bits to store the tree, and uses O(p(W + log n)) bit working space for computing the function. Because of the simplicity and space-efficiency, the algorithm is suitable for GPGPU.
机译:本文涉及计算由n节点根树定义的函数的问题。具体而言,计算由f(v)= W(v)⊕(⊕_(u∈S(v)f(u))定义的函数的树的根r处的值f(r)(S (V)表示节点v的子集。)本文提出一种算法,通过p处理器的EREW-PRAM模型在O(n / p + log〜2 p)时间内计算此函数。令⊕和⊕满足以下条件:⊕是关联的,左分配给⊕,而⊕是关联的:如果⊕具有逆元素(即⊕形成一个群) ,时间复杂度提高到O(n / p + log p)。该算法节省内存。节点权重w(v)以位表示,函数的值以W位表示。然后,该算法使用2(k + 1)位存储树,计算该函数的工作区域为O(p(W + log n))位。因此,我们提出了一种简单的并行算法,用于计算在具有n个节点的根树上定义的函数,即我们要为根节点计算函数f(r)的值。 r,定义为f(v)= w(v)⊕(⊕_(u∈S(v))f(u)),其中S(v)表示节点v的子节点集。 EREW-PRAM算法使用p个处理器在O(n / p + log2 p)时间内计算函数。我们假设运算符⊕和⊕满足以下条件:⊕是关联的,在left上是左分布的,而⊕是关联的。如果⊕具有逆(即⊕形成一个组),则时间复杂度提高了t o O(n / p + log p)。我们的算法是空间有效的。如果节点的权重以k位表示,并且函数的值以W位表示,则我们的算法使用2(k + l)n位用于存储树,并使用O(p(W + log n))位工作空间来计算函数。由于简单和节省空间,该算法适用于GPGPU。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号