17
Mobile Search for a Black Hole in an Anonymous Ring Dobrev, S., Flocchini, P., Prencipe, G., & Santoro, N. (2007). Mobile Search for a Black Hole in an Anonymous Ring. Mengfei Peng

Mobile Search for a Black Hole in an Anonymous Ring

  • Upload
    ovid

  • View
    34

  • Download
    0

Embed Size (px)

DESCRIPTION

Mobile Search for a Black Hole in an Anonymous Ring. Dobrev , S., Flocchini , P., Prencipe , G., & Santoro, N . ( 2007).  Mobile Search for a Black Hole in an Anonymous Ring . Mengfei Peng. Network :. Ring : a loop network of identical nodes , - PowerPoint PPT Presentation

Citation preview

Page 1: Mobile Search for a Black Hole in  an Anonymous  Ring

Mobile Search for a Black Hole in an Anonymous Ring

Dobrev, S., Flocchini, P., Prencipe, G., & Santoro, N. (2007). 

Mobile Search for a Black Hole in an Anonymous Ring.Mengfei Peng

Page 2: Mobile Search for a Black Hole in  an Anonymous  Ring

Network:Ring: a loop network of identical nodes, Whiteboard: Each node has a bounded

amount of storage(whiteboard), agents can write or read information from the whiteboard, O(log n) bits are sufficient.

n is known (where n is the size of the ring) Nodes are anonymous: no special marks

on any node.

Page 3: Mobile Search for a Black Hole in  an Anonymous  Ring

Agents:computing capability; bound of storage; obey the same protocol; Asynchronous; Identical;

Page 4: Mobile Search for a Black Hole in  an Anonymous  Ring

Result: co-located agentstwo agents are necessary and sufficient to

locate the black holeMoves: O (n log n) moves and it is optimalTime complexity: 2n-4 units of time using

n- 1 agents

If the ring is oriented, two dispersed agents are still necessary and sufficient. Moves: (θ (n log n)).

If the ring is un-oriented, three agents are necessary and sufficient; Moves: (θ (n log n)).

Result: dispersed agents

Page 5: Mobile Search for a Black Hole in  an Anonymous  Ring

Algorithm:measure of complexity:Size: the number of agents;Cost: the number of moves;Time: the amount of time elapsed until

termination----ideal time (i.e., assuming synchronous

execution where a move can be made in one time unit)----\time" complexity is “ideal time" complexity.

Cautious Walk

Page 6: Mobile Search for a Black Hole in  an Anonymous  Ring

Co-located:2 agents

time complexity of Algorithm Divide is also 2n log n + O(n).

Page 7: Mobile Search for a Black Hole in  an Anonymous  Ring

n-1 agents to locate BH

Algorithm Optimal Time lets n -1 co-located agents find the black hole in 2n -4time.

Why 2n-4: if n-1 is BH, a agent must come to n-2, and come back to 0, so 2(n-2)

Page 8: Mobile Search for a Black Hole in  an Anonymous  Ring

Dispersed agents:initially there is at most one agent at any given location

If k is known, cost in oriented rings: Ω(n log(n-k)).

If k of agents is unknown, cost in oriented rings: Ω (n log n).

Dispersed, oriental ring, k ≥ 2Three phases: pairing, elimination, and resolution.

Algorithm:

Page 9: Mobile Search for a Black Hole in  an Anonymous  Ring

K is known When arriving at a node already visited by another agent, it proceeds to the right via the safe port. If there is no safe port, it tests how many agents are at this node; if the number of agents at the node is k- 1, the algorithm terminates.

Page 10: Mobile Search for a Black Hole in  an Anonymous  Ring

K is unknown

Page 11: Mobile Search for a Black Hole in  an Anonymous  Ring

A:status:alone

Page 12: Mobile Search for a Black Hole in  an Anonymous  Ring
Page 13: Mobile Search for a Black Hole in  an Anonymous  Ring

D:status:paired-left

Page 14: Mobile Search for a Black Hole in  an Anonymous  Ring

C sees D’s “jion me” mark and terminates. status:paired-right

Page 15: Mobile Search for a Black Hole in  an Anonymous  Ring

Questions:1, How (n-1) co-located agents explored the ring?

Page 16: Mobile Search for a Black Hole in  an Anonymous  Ring

Questions:2, How k dispersed agents explored the ring while k is known?

Page 17: Mobile Search for a Black Hole in  an Anonymous  Ring

Questions:3, How k dispersed agents explored the ring while k is unknown?