SLIDE 1 ETH Zurich β Distributed Computing β www.disco.ethz.ch
Jara Uitto
How Many Ants Does It Take to Find the Food?
SLIDE 2
- Introduced by Feinerman, Korman, Lotker and
Sereni [PODC 2012].
- π mobile agents, controlled by Turing
machines, search for a treasure.
- Communication not allowed.
Ants Nearby Treasure Search
SLIDE 3 Model
- Infinite integer grid.
- Each ant initially located in the origin.
SLIDE 4 Model
- Adversarially hidden treasure/food.
- (Manhattan) distance to treasure is πΈ.
SLIDE 5
- How many rounds until the
treasure is found?
- We study the number of ants
needed to find the treasure at all.
Ants Nearby Treasure Search
SLIDE 6
Model
SLIDE 7
Model
SLIDE 8 Model
- One Turing Machine is enough. No
communication needed.
=
SLIDE 9 Model
(randomized) finite state machines.
- Communicate by sensing the
states of nearby ants.
- Run-time studied by Emek,
Langner, Uitto and Wattenhofer [ICALP2014].
SLIDE 10
- Synchrony vs. Asynchrony
- A deterministic protocol?
Model
SLIDE 11 Model
each ant.
correctly if the ants find the treasure in expected finite time.
3 2 1
SLIDE 12
Deterministic + Asynchronous
SLIDE 13
Triangle Search
SLIDE 14
Triangle Search
SLIDE 15
Triangle Search
SLIDE 16
Triangle Search
SLIDE 17
Triangle Search
SLIDE 18
Triangle Search
SLIDE 19
Triangle Search
SLIDE 20
Triangle Search
SLIDE 21
Triangle Search
SLIDE 22
Triangle Search
SLIDE 23
Triangle Search
SLIDE 24
Triangle Search
SLIDE 25
Triangle Search
SLIDE 26
Triangle Search
SLIDE 27
Triangle Search
SLIDE 28
Triangle Search
SLIDE 29
Triangle Search
SLIDE 30
Triangle Search
SLIDE 31
Triangle Search
SLIDE 32
Triangle Search
SLIDE 33
Triangle Search
SLIDE 34
Triangle Search
SLIDE 35
Triangle Search
SLIDE 36
Triangle Search
SLIDE 37
Triangle Search
SLIDE 38
- Can we perform better if the ants have a
common sense of time?
Synchronization?
SLIDE 39
Rectangle Search
SLIDE 40
Rectangle Search
SLIDE 41
Rectangle Search
SLIDE 42
Rectangle Search
SLIDE 43
Rectangle Search
SLIDE 44
Rectangle Search
SLIDE 45
Rectangle Search
SLIDE 46
Rectangle Search
SLIDE 47
Rectangle Search
SLIDE 48
Rectangle Search
SLIDE 49
Rectangle Search
SLIDE 50
Rectangle Search
SLIDE 51
Rectangle Search
SLIDE 52
Rectangle Search
SLIDE 53
Rectangle Search
SLIDE 54
Rectangle Search
SLIDE 55
Rectangle Search
SLIDE 56
Rectangle Search
SLIDE 57
Rectangle Search
SLIDE 58
- How about random coin tosses?
Randomization
SLIDE 59
Geometric Search
SLIDE 60
NE
Geometric Search
SLIDE 61
NE 1
Geometric Search
SLIDE 62
NE 11
Geometric Search
SLIDE 63
NE 111
Geometric Search
SLIDE 64
NE 1110
Geometric Search
SLIDE 65
NE 11101
Geometric Search
SLIDE 66
NE 111011
Geometric Search
SLIDE 67
NE 1110110
Geometric Search
SLIDE 68
NE 1110110
Geometric Search
SLIDE 69
NE 1110110
Geometric Search
SLIDE 70
NE 1110110
Geometric Search
SLIDE 71
NE 1110110
Geometric Search
SLIDE 72
NE 1110110
Geometric Search
SLIDE 73
Geometric Search
SLIDE 74 Run-Time
- For every search π, we have a probability of at
least Ai =
1 4 β 2β(πΈ+1) to find the treasure.
- Let πΆπ be the event that the treasure is not
found during any search π < π.
SLIDE 75
- Let π be the total time required.
- πΉ π β€
π(π΅π+1 β πΆπ)
β π=1
(π π + π(πΈ)).
- π π΅π+1 β πΆπ β€ 2β πΈ+3 β 1 β 2β πΈ+3
π.
- πΉ π β€ 2β πΈ+3
1 β 2β(πΈ+3) π π π + π(πΈ)
β π=1
= π 2πΈ .
Run-Time
SLIDE 76
- Can we do better? In the deterministic and
synchronous case, the answer is no.
- Let us start with showing that one ant is not
enough.
Lower Bounds?
SLIDE 77
- A finite state machine repeats its behavior.
One Ant
SLIDE 81
A band of constant width
π
One Ant
SLIDE 82
- One ant can only discover a band of constant
width.
One Ant
SLIDE 83
- Let π’ be the time of the last meeting.
Two Ants
- Both agents (alone) discover a band after π’.
SLIDE 84
- Lemma: The ants meet infinitely often in some
pair of states (π, πβ²).
- Observation: the time between two such
meetings is bounded by a constant.
Two Ants
SLIDE 85 Two Ants
(π, πβ²)
SLIDE 86 Two Ants
(π, πβ²) (π, πβ²)
SLIDE 87 Two Ants
(π, πβ²) (π, πβ²) (π, πβ²)
SLIDE 88 Two Ants
(π, πβ²) (π, πβ²) (π, πβ²)
SLIDE 89 Two Ants
- Two deterministic ants can only discover a band
- f constant width.
- Two deterministic ants cannot find the food.
πβ² (π, πβ²) (π, πβ²) (π, πβ²)
SLIDE 90
- Three asynchronous ants?
- Two randomized ants?
Conclusion
SLIDE 91
Conclusion
SLIDE 92
Questions?
Thanks to my co-authors Yuval Emek, Tobias Langner, David Stolz and Roger Wattenhofer