270 likes | 811 Views
YO-YO Leader Election. Lijie Wang 6982704. Using SPIN. Used to detect design error in applications; descriptions of distributed algorithms. YO-YO Algorithm. Minimum finding Leader(smallest id node) Consists two parts Preprocessing I terations. Basic Components. Edge Between nodes
E N D
YO-YO Leader Election Lijie Wang 6982704
Using SPIN Used to detect design error in applications; descriptions of distributed algorithms.
YO-YO Algorithm Minimum finding Leader(smallest id node) Consists two parts Preprocessing Iterations
Basic Components Edge Between nodes Voting through Node Id Neighbors
Edge Direction Small->large (id) Preprocessing Node Exchange its id with neighbors
Direction goes down using different ico
Candidates Local minima ->source ->candidate Preprocessing completed Second part start…
Two phases YO- -YO Iteration Remove candidates Leave the only one
All sink done -> YO- end… Source: ⊙->id-> out neighbors Internal: ->all in neighbors->⊙->min->out neighbors Sink: ->all in neighbors-> ⊙
-YO start… Sink: ⊙->Y ->min; ⊙-> N->others Internal: ->all out neighbors-> ⊙ Receive at least one N: ⊙->N-> all in neighbors Receive all Y: ⊙->Y->min; ⊙->N->others Source: all out neighbors -> ⊙
Receive all Y Survives (this time) Eliminate candidates Receive at least one N No longer a candidate How?...
Modify DAG Flip the link with N Reverse N-edge With reversing Sink and internal not become candidate Receive at least one N No longer a candidate Become sink or internal less candidate
Drag down the dead candidates And start over…
Termination? To reduce the message To detect termination Only left one source Count the only one candidate Become the leader Additional mechanism Pruning
Pruning Eliminate redundant route Eliminate leaf
Complexity With pruning Though we do not know the exact number of reduced message in each iteration. Surely, the communication cost will be less remarkable Total: 2* Without pruning Each phase: 2 messages each link Number of phase: log (number of sources) Total: 2*m*log(s)
For the spin result Ispin result will be show in the final report Fail to intallIspin on the 64-bit system Try to use the Virtual Machine with a 32-bit system Thank you