Optimal strategies for maintaining a chain of relays between an - - PowerPoint PPT Presentation

optimal strategies for maintaining a chain of relays
SMART_READER_LITE
LIVE PREVIEW

Optimal strategies for maintaining a chain of relays between an - - PowerPoint PPT Presentation

Optimal strategies for maintaining a chain of relays between an explorer and a base camp Lukas Humbel 2. Mai 2012 1/55 2/55 3/55 4/55 5/55 6/55 7/55 8/55 9/55 Outline Model Definition 1 Problem Statement Time/Relay Model What to


slide-1
SLIDE 1

Optimal strategies for maintaining a chain of relays between an explorer and a base camp

Lukas Humbel

  • 2. Mai 2012

1/55

slide-2
SLIDE 2

2/55

slide-3
SLIDE 3

3/55

slide-4
SLIDE 4

4/55

slide-5
SLIDE 5

5/55

slide-6
SLIDE 6

6/55

slide-7
SLIDE 7

7/55

slide-8
SLIDE 8

8/55

slide-9
SLIDE 9

9/55

slide-10
SLIDE 10

Outline

1

Model Definition Problem Statement Time/Relay Model What to measure

2

Manhattan Hopper Strategy Strategy Description Static Scenario Performance Dynamic Scenario Performance

3

Conclusion

10/55

slide-11
SLIDE 11

Problem Statement

11/55

slide-12
SLIDE 12

Problem Statement

v0 v1. . . vn+1 Grid size: 0.5 Transmission distance: 1

11/55

slide-13
SLIDE 13

Problem Statement

Grid size: 0.5 Transmission distance: 1

11/55

slide-14
SLIDE 14

Problem Statement

Grid size: 0.5 Transmission distance: 1

11/55

slide-15
SLIDE 15

Time/Relay Model

12/55

slide-16
SLIDE 16

Time Model

Synchronized Look – Compute – Move

12/55

slide-17
SLIDE 17

Relay Model - Sensory Input

α d1 d2 Sees its chain neighbors Memoryless No communication

13/55

slide-18
SLIDE 18

Relay Model - Sensory Input

α d1 d2 Sees its chain neighbors Memoryless No communication

13/55

slide-19
SLIDE 19

Relay Model - Sensory Input

α d1 d2 Sees its chain neighbors Memoryless No communication . . . must sense when predecessor has stepped

13/55

slide-20
SLIDE 20

Relay Model - Movement

Moves with constant speed

14/55

slide-21
SLIDE 21

Relay Model - Movement

Moves with constant speed Can be removed everywhere Inserted only at home

14/55

slide-22
SLIDE 22

Chain Attributes

Valid condition Optimal condition

15/55

slide-23
SLIDE 23

What to measure

16/55

slide-24
SLIDE 24

Static Scenario

Explorer fixed Quality measurement: Time to optimal chain

16/55

slide-25
SLIDE 25

Dynamic Scenario

Chain in optimal condition Explorer moving Quality measurement:

Possible speed of explorer Maximal chain length

17/55

slide-26
SLIDE 26

What can we expect?

Dynamic Scenario

Explorer can move as fast as a relay constant

18/55

slide-27
SLIDE 27

What can we expect?

Dynamic Scenario

Explorer can move as fast as a relay constant Chain length? O( minimal length )

18/55

slide-28
SLIDE 28

What can we expect?

Dynamic Scenario

Explorer can move as fast as a relay constant Chain length? O( minimal length )

Static Scenario

There are cases where a (constant speed moving) relay needs n timesteps to get close to the direct line.

18/55

slide-29
SLIDE 29

Strategy Description

19/55

slide-30
SLIDE 30

Manhattan Hopper

All stations move on a grid Chain remains valid Relays move at most constant distance Uses Manhattan distance

19/55

slide-31
SLIDE 31

Manhattan Hopper

All stations move on a grid Chain remains valid Relays move at most constant distance Uses Manhattan distance d = ∆x + ∆y

19/55

slide-32
SLIDE 32

Manhattan Hopper Description

v0 v1. . . vn+1 Executed sequentally. vi+1 moves after vi One sequence is called a run

20/55

slide-33
SLIDE 33

Manhattan Hopper Description

Neighbors not in line → move Neighbors in line → stay

21/55

slide-34
SLIDE 34

Manhattan Hopper Description

vi vi+1 vi+2 If vi moves to vi+2. vi+1 and vi+2 are removed.

22/55

slide-35
SLIDE 35

Manhattan Hopper Description

vi vi+1 vi+2 If vi moves to vi+2. vi+1 and vi+2 are removed. vi+1 and vi+2 are removed.

22/55

slide-36
SLIDE 36

Manhattan Hopper Description

vi If vi moves to vi+2. vi+1 and vi+2 are removed. vi+1 and vi+2 are removed. A remove operation ends the run.

22/55

slide-37
SLIDE 37

A little example

23/55

slide-38
SLIDE 38

Static Scenario Performance

24/55

slide-39
SLIDE 39

Static Scenario

Theorem 1 After n runs, the chain has optimal length

24/55

slide-40
SLIDE 40

Configuration

  • ui = position(vi+1) − position(vi)

25/55

slide-41
SLIDE 41

Configuration

  • ui = position(vi+1) − position(vi)

C = (⇒, ⇑, ⇑, ⇒, ⇒, . . . , ⇒, ⇑, ⇑) = ( u0, u1, . . . , uk)

25/55

slide-42
SLIDE 42

Configuration

  • ui = position(vi+1) − position(vi)

C = (⇒, ⇑, ⇑, ⇒, ⇒, . . . , ⇒, ⇑, ⇑) = ( u0, u1, . . . , uk)

  • ui and

uj are oppositional ↔ ui = − uj

25/55

slide-43
SLIDE 43

Configuration

  • ui = position(vi+1) − position(vi)

C = (⇒, ⇑, ⇑, ⇒, ⇒, . . . , ⇒, ⇑, ⇑) = ( u0, u1, . . . , uk)

  • ui and

uj are oppositional ↔ ui = − uj Optimal (Manhattan) length configuration?

25/55

slide-44
SLIDE 44

Static Scenario - Strategy Effects On Configuration

Lemma 2 Let C = ( u0 , u1, u2 . . . , uk). Assume a run finishes without removing any relay. C′ = ( u1, u2, . . . , uk, u0 ) is the configuration after the run. Also afterwards u0 is not oppositional to any other.

26/55

slide-45
SLIDE 45

Static Scenario - Strategy Effects On Configuration

C = ( ⇒ , ⇑ , ⇑, ⇒, ⇒, . . . , ⇒, ⇑, ⇑)

27/55

slide-46
SLIDE 46

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇒ , ⇑ , ⇒, ⇒, . . . , ⇒, ⇑, ⇑)

28/55

slide-47
SLIDE 47

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇑, ⇒ , ⇒ , ⇒, . . . , ⇒, ⇑, ⇑)

29/55

slide-48
SLIDE 48

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇑, ⇒, ⇒ , ⇒ , . . . , ⇒, ⇑, ⇑)

30/55

slide-49
SLIDE 49

Static Scenario - Strategy Effects On Configuration

If u0 is oppositional to any other ui, u0 will meet it at some point C = (. . . , ⇒ , ⇐ , . . .) triggers a removal

31/55

slide-50
SLIDE 50

Static Scenario - Strategy Effects On Configuration

Lemma 3 Let C = ( u0 , u1, u2 . . . , uk). The run finishes with removing vi and vi+1 if and only if

  • ui+1 is the first vector oppositional to

u0. C′ = ( u1, u2, . . . , ui, ui+2, . . . uk) is the configuration after the run.

32/55

slide-51
SLIDE 51

Static Scenario - Strategy Effects On Configuration

C = ( ⇑ , ⇑ , ⇒, ⇒, ⇒, ⇓, . . . , ⇑, ⇑, ⇒)

33/55

slide-52
SLIDE 52

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇑ , ⇒ , ⇒, ⇒, ⇓, . . . , ⇑, ⇑, ⇒)

34/55

slide-53
SLIDE 53

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇒, ⇑ , ⇒ , ⇒, ⇓, . . . , ⇑, ⇑, ⇒)

35/55

slide-54
SLIDE 54

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇒, ⇒, ⇑ , ⇒ , ⇓, . . . , ⇑, ⇑, ⇒)

36/55

slide-55
SLIDE 55

Static Scenario - Strategy Effects On Configuration

C = (⇑, ⇒, ⇒, ⇒, ⇑ , ⇒ , ⇓, . . . , ⇑, ⇑, ⇒) C′ = (⇑, ⇒, ⇒, ⇒, ⇒, ⇑ , ⇓ , . . . , ⇑, ⇑, ⇒) C′′ = (⇑, ⇒, ⇒, ⇒, ⇒, . . . , ⇑, ⇑, ⇒)

37/55

slide-56
SLIDE 56

Static Scenario - Strategy Effects On Configuration

Lemma 3 Let C = ( u0 , u1, u2 . . . , uk). The run finishes with removing vi and vi+1 if and only if

  • ui+1 is the first vector oppositional to

u0. C′ = ( u1, u2, . . . , ui, ui+2, . . . uk) is the configuration after the run.

38/55

slide-57
SLIDE 57

Static Scenario - Some Observations

Vectors are never created, label them uniquely C1 = ( a0, a1, . . . , ak)

39/55

slide-58
SLIDE 58

Static Scenario - Some Observations

Vectors are never created, label them uniquely C1 = ( a0, a1, . . . , ak) In every run ui (i = 0) reduces its position at least by one

Case 1: No removal Case 2: Removal happens and ui is before the removal Case 3: Removal happens and ui is after the removal

39/55

slide-59
SLIDE 59

Static Scenario

Assume after n runs, there is an oppositional pair up and

  • uq with p < q.

C = (. . . , up, . . . , un

  • Distance: n−p

) At most n − p + 1 runs earlier, up was at position 0 and hence would have been removed.

40/55

slide-60
SLIDE 60

Static Scenario

Assume after n runs, there is an oppositional pair up and

  • uq with p < q.

C = (. . . , up, . . . , un

  • Distance: n−p

) At most n − p + 1 runs earlier, up was at position 0 and hence would have been removed. After n rounds, there are no more oppositional pairs.

40/55

slide-61
SLIDE 61

Static Scenario

It takes n rounds to reach minimal length. Timesteps?

41/55

slide-62
SLIDE 62

Static Scenario

It takes n rounds to reach minimal length. Timesteps? Pipeline! Start new run every 3 time steps.

41/55

slide-63
SLIDE 63

Static Scenario

It takes n rounds to reach minimal length. Timesteps? Pipeline! Start new run every 3 time steps. After 3n + n = 4n time steps the chain is optimal

41/55

slide-64
SLIDE 64

Dynamic Scenario Performance

42/55

slide-65
SLIDE 65

Dynamic Scenario

Must handle explorer moves

42/55

slide-66
SLIDE 66

Dynamic Scenario

Must handle explorer moves Perform Follow run Then perform Hopper run

The Hopper run is what we have seen before

42/55

slide-67
SLIDE 67

Follow Run

Explorer moves

43/55

slide-68
SLIDE 68

Follow Run

Relays follow

43/55

slide-69
SLIDE 69

Follow Run

Base inserts new relay

43/55

slide-70
SLIDE 70

Follow Run

43/55

slide-71
SLIDE 71

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length.

44/55

slide-72
SLIDE 72

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length. Proof. Let C be the configuration before the movement and C′ after the follow run.

44/55

slide-73
SLIDE 73

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length. Proof. Let C be the configuration before the movement and C′ after the follow run. No pair of oppositional vectors in C

44/55

slide-74
SLIDE 74

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length. Proof. Let C be the configuration before the movement and C′ after the follow run. No pair of oppositional vectors in C At most one pair of oppositional in C′

44/55

slide-75
SLIDE 75

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length. Proof. Let C be the configuration before the movement and C′ after the follow run. No pair of oppositional vectors in C At most one pair of oppositional in C′ One Hopper removes the first pair of oppositional vectors

44/55

slide-76
SLIDE 76

Dynamic Scenario Performance

Lemma 4 Let the chain have optimal length prior to the explorer’s

  • movement. Then after the explorer’s movement, the Hopper

and Follow run bring the chain to an optimal length. Proof. Let C be the configuration before the movement and C′ after the follow run. No pair of oppositional vectors in C At most one pair of oppositional in C′ One Hopper removes the first pair of oppositional vectors Hence there is no pair at the end and hence the chain has

  • ptimal length

44/55

slide-77
SLIDE 77

Dynamic Scenario Performance

dr := (Manhattan) distance between explorer and home at beginning of round r.

45/55

slide-78
SLIDE 78

Dynamic Scenario Performance

dr := (Manhattan) distance between explorer and home at beginning of round r. dr = 4.5 Number of relays = 9 Optimal chain: Number of relays = 2dr

45/55

slide-79
SLIDE 79

Dynamic Scenario Performance

Explorer speed?

46/55

slide-80
SLIDE 80

Dynamic Scenario Performance

Explorer speed? Must pipeline Time Explorer moves t Follow run started, v1 moves t + 1 Hopper run started, v1 moves t + 4 Explorer moves t + 6 One round

46/55

slide-81
SLIDE 81

Dynamic Scenario Performance

Theorem 5 Assume we start with an optimal chain. Then, the chain maintained by the strategy has the following properties before each round r.

1

The chain remains connected

2

The explorer may move a distance of 1

2 every round, i.e.

every 6th time step

3

Relays move at most constant distance per round

4

The number of relays used in the chain is at most 3dr + 2

47/55

slide-82
SLIDE 82

Dynamic Scenario Performance - Number Of Relays

Each Hopper run operates on an optimal chain.

Chain has 2dr relays. Run takes at most 2dr + 2 time steps.

48/55

slide-83
SLIDE 83

Dynamic Scenario Performance - Number Of Relays

Each Hopper run operates on an optimal chain.

Chain has 2dr relays. Run takes at most 2dr + 2 time steps.

Fix round r Number of relays ≤ 2dr + 2 (number of unfinished Hopper runs)

48/55

slide-84
SLIDE 84

Dynamic Scenario Performance - Number Of Relays

Run of round r Run of round r − 1 Run of round r − 2

49/55

slide-85
SLIDE 85

How Many Unfinished Hopper runs Are There?

Lemma 6 There are at most dr+1

2

unfinished runs in round r. ↔ The run started in round r − dr+1

2

is finished at round r

50/55

slide-86
SLIDE 86

How Many Unfinished Hopper Runs Are There?

r := current round z := earlier round Rounds r z Run started in round z

51/55

slide-87
SLIDE 87

How Many Unfinished Hopper Runs Are There?

r := current round z := earlier round Rounds r z Run started in round z

1

z < r − dr+1

2

51/55

slide-88
SLIDE 88

How Many Unfinished Hopper Runs Are There?

r := current round z := earlier round Rounds r z Run started in round z

1

z < r − dr+1

2

2

Run of round z needs < 2dz + 2 timesteps to finish

51/55

slide-89
SLIDE 89

How Many Unfinished Hopper Runs Are There?

r := current round z := earlier round Rounds r z Run started in round z

1

z < r − dr+1

2

2

Run of round z needs < 2dz + 2 timesteps to finish

3

  • Max. distance of explorer between z and r = r−z

2

→ dz ≤ dr + r−z

2

Run of round z ends in which round?

51/55

slide-90
SLIDE 90

Dynamic Scenario Performance

z < r − dr+1

2

Rounds r z Unfinished runs at r ? At most r − z = dr+1

2

many Number of relays ≤ 2dr + 2 (number of unfinished Hopper runs) Number of relays ≤ 2dr + 2dr+1

2

= 3dr + 1

52/55

slide-91
SLIDE 91

Dynamic Scenario Performance

z < r − dr+1

2

Rounds r z Unfinished runs at r ? At most r − z = dr+1

2

many Number of relays ≤ 2dr + 2 (number of unfinished Hopper runs) Number of relays ≤ 2dr + 2dr+1

2

= 3dr + 1 The strategy keeps chain length in O(dr)

52/55

slide-92
SLIDE 92

Outlook

Can be generalized (drop grid requirement) Keeps optimal characteristics

53/55

slide-93
SLIDE 93

Conclusion

The oscillation of the strategy and its sequential nature improve the Go-to-the-Middle strategy It converts a chain into an optimal in O(n) timesteps (n = number of relays)

Which is optimal

It allows the explorer to move with constant speed.

Which is optimal

54/55

slide-94
SLIDE 94

Questions?

55/55