how many ants does it take to find the food? - tik · powerpoint presentation author: jara uitto...

92
ETH Zurich – Distributed Computing – www.disco.ethz.ch Jara Uitto How Many Ants Does It Take to Find the Food?

Upload: others

Post on 21-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

ETH Zurich – Distributed Computing – www.disco.ethz.ch

Jara Uitto

How Many Ants Does It Take to Find the Food?

Page 2: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• 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

Page 3: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

• Infinite integer grid.

• Each ant initially located in the origin.

Page 4: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

• Adversarially hidden treasure/food.

• (Manhattan) distance to treasure is 𝐷.

Page 5: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• 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

Page 6: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

Page 7: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

Page 8: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

• One Turing Machine is enough. No communication needed.

=

Page 9: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

• Ants are controlled by (randomized) finite state machines.

• Communicate by sensing the states of nearby ants.

• Run-time studied by Emek, Langner, Uitto and Wattenhofer [ICALP2014].

Page 10: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• Synchrony vs. Asynchrony

• A deterministic protocol?

Model

Page 11: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Model

• Individual algorithm for each ant.

• An algorithm works correctly if the ants find the treasure in expected finite time.

3

2

1

Page 12: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Deterministic + Asynchronous

Page 13: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 14: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 15: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 16: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 17: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 18: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 19: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 20: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 21: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 22: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 23: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 24: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 25: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 26: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 27: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 28: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 29: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 30: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 31: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 32: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 33: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 34: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 35: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 36: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 37: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Triangle Search

Page 38: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• Can we perform better if the ants have a common sense of time?

Synchronization?

Page 39: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 40: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 41: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 42: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 43: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 44: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 45: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 46: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 47: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 48: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 49: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 50: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 51: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 52: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 53: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 54: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 55: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 56: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 57: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Rectangle Search

Page 58: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• How about random coin tosses?

Randomization

Page 59: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Geometric Search

Page 60: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE

Geometric Search

Page 61: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1

Geometric Search

Page 62: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 11

Geometric Search

Page 63: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 111

Geometric Search

Page 64: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110

Geometric Search

Page 65: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 11101

Geometric Search

Page 66: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 111011

Geometric Search

Page 67: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 68: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 69: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 70: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 71: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 72: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

NE 1110110

Geometric Search

Page 73: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Geometric Search

Page 74: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

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 𝑗 < 𝑖.

Page 75: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• Let 𝑇 be the total time required.

• 𝐸 𝑇 ≤ 𝑃(𝐴𝑖+1 ∙ 𝐵𝑖)

∞𝑖=1 (𝑂 𝑖 + 𝑂(𝐷)).

• 𝑃 𝐴𝑖+1 ∙ 𝐵𝑖 ≤ 2− 𝐷+3 ∙ 1 − 2− 𝐷+3 𝑖

.

• 𝐸 𝑇 ≤ 2− 𝐷+3 1 − 2−(𝐷+3)𝑖𝑂 𝑖 + 𝑂(𝐷)∞

𝑖=1 =

𝑂 2𝐷 .

Run-Time

Page 76: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• 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?

Page 77: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• A finite state machine repeats its behavior.

One Ant

Page 78: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

q

One Ant

Page 79: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

q

q

One Ant

Page 80: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

q

q

q

One Ant

Page 81: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

A band of constant width

𝑐

One Ant

Page 82: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• One ant can only discover a band of constant width.

• How about two ants?

One Ant

Page 83: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• Let 𝑡 be the time of the last meeting.

Two Ants

• Both agents (alone) discover a band after 𝑡.

Page 84: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• 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

Page 85: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Two Ants

(𝑞, 𝑞′)

Page 86: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Two Ants

(𝑞, 𝑞′) (𝑞, 𝑞′)

Page 87: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Two Ants

(𝑞, 𝑞′) (𝑞, 𝑞′) (𝑞, 𝑞′)

Page 88: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Two Ants

(𝑞, 𝑞′) (𝑞, 𝑞′) (𝑞, 𝑞′)

Page 89: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Two Ants

• Two deterministic ants can only discover a band of constant width.

• Two deterministic ants cannot find the food.

𝑐′

(𝑞, 𝑞′) (𝑞, 𝑞′) (𝑞, 𝑞′)

Page 90: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

• Three asynchronous ants?

• Two randomized ants?

Conclusion

Page 91: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Conclusion

Page 92: How Many Ants Does It Take to Find the Food? - TIK · PowerPoint Presentation Author: Jara Uitto Created Date: 7/25/2014 10:00:41 AM

Questions?

Thanks to my co-authors Yuval Emek, Tobias Langner, David Stolz and Roger Wattenhofer