`
deepfuture
  • 浏览: 4338137 次
  • 性别: Icon_minigender_1
  • 来自: 湛江
博客专栏
073ec2a9-85b7-3ebf-a3bb-c6361e6c6f64
SQLite源码剖析
浏览量:79477
1591c4b8-62f1-3d3e-9551-25c77465da96
WIN32汇编语言学习应用...
浏览量:68496
F5390db6-59dd-338f-ba18-4e93943ff06a
神奇的perl
浏览量:101642
Dac44363-8a80-3836-99aa-f7b7780fa6e2
lucene等搜索引擎解析...
浏览量:281485
Ec49a563-4109-3c69-9c83-8f6d068ba113
深入lucene3.5源码...
浏览量:14636
9b99bfc2-19c2-3346-9100-7f8879c731ce
VB.NET并行与分布式编...
浏览量:65707
B1db2af3-06b3-35bb-ac08-59ff2d1324b4
silverlight 5...
浏览量:31370
4a56b548-ab3d-35af-a984-e0781d142c23
算法下午茶系列
浏览量:45290
社区版块
存档分类
最新评论

分布式计算-具有近邻知识的深度优先搜索

阅读更多

1、如果进程知道近邻的标识,通过在令牌中包括一张访问过的进程的表,就可避免令牌对非树边的遍历。进程p接到带有表L的令牌,并不将令牌转发给L中的进程。

2、算法

var fatherp:  process init udef;

for the initiator only,execute once:

     begin fatherp=udef then fatherp:=q0;

               send <tlist,{p}> to q

     end

 

for each process,upon receipt of  <tlist,L> from q0:

       begin if fatherp=udef then fatherp:=q0;

                 if 存在q∈Neightp\L

                    then begin choose qNeighp\L;

                                      send <tlist,L∪{p}> to q

                             end

               else if p is initiator

                      then decide

                      else send <tlist,L∪{p}>  to  fatherp

     end

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics