Mobile RAM and Shape Formation by Programmable Particles (Euro-Par - - PowerPoint PPT Presentation

mobile ram and shape formation by programmable particles
SMART_READER_LITE
LIVE PREVIEW

Mobile RAM and Shape Formation by Programmable Particles (Euro-Par - - PowerPoint PPT Presentation

Mobile RAM and Shape Formation by Programmable Particles (Euro-Par 2020) Giuseppe A. Di Luna, Paola Flocchini, Nicola Santoro, Giovanni Viglietta, and Yukiko Yamauchi August 28, 2020 Shape Formation by Programmable Particles Amoebots In this


slide-1
SLIDE 1

Mobile RAM and Shape Formation by Programmable Particles

(Euro-Par 2020) Giuseppe A. Di Luna, Paola Flocchini, Nicola Santoro, Giovanni Viglietta, and Yukiko Yamauchi August 28, 2020

Shape Formation by Programmable Particles

slide-2
SLIDE 2

Amoebots

In this model, particles occupy nodes of a triangular grid.

Shape Formation by Programmable Particles

slide-3
SLIDE 3

Amoebots

A particle can move by expanding and contracting.

Shape Formation by Programmable Particles

slide-4
SLIDE 4

Amoebots

A particle can move by expanding and contracting.

Shape Formation by Programmable Particles

slide-5
SLIDE 5

Amoebots

A particle can move by expanding and contracting.

Shape Formation by Programmable Particles

slide-6
SLIDE 6

Amoebots

A particle can move by expanding and contracting.

Shape Formation by Programmable Particles

slide-7
SLIDE 7

Amoebots

A particle can move by expanding and contracting.

Shape Formation by Programmable Particles

slide-8
SLIDE 8

Amoebots

A system of particles is given.

Shape Formation by Programmable Particles

slide-9
SLIDE 9

Amoebots

Particles move asynchronously following an algorithm.

Shape Formation by Programmable Particles

slide-10
SLIDE 10

Amoebots

Particles move asynchronously following an algorithm.

Shape Formation by Programmable Particles

slide-11
SLIDE 11

Amoebots

At each step, any set of particles is activated by an adversary.

Shape Formation by Programmable Particles

slide-12
SLIDE 12

Amoebots

At each step, any set of particles is activated by an adversary.

Shape Formation by Programmable Particles

slide-13
SLIDE 13

Shape Formation

final shape

The goal is to form a shape that is given as input to all particles.

Shape Formation by Programmable Particles

slide-14
SLIDE 14

Shape Formation

initial configuration final configuration deterministic algorithm

The shape-formation algorithm should be deterministic.

Shape Formation by Programmable Particles

slide-15
SLIDE 15

Shape Formation

initial configuration final configuration deterministic algorithm

The shape can be scaled up depending on the size of the system.

Shape Formation by Programmable Particles

slide-16
SLIDE 16

Related Literature

Original paper introducing Amoebots:

Derakhshandeh, Gmyr, Strothmann, Bazzi, Richa, Scheideler Leader election and shape formation with self-organizing programmable matter DNA 2015

Randomized shape-formation algorithm for sequentially activated Amoebots, where the starting shape is a triangle and the final shape is a collection of triangles:

Derakhshandeh, Gmyr, Richa, Scheideler, Strothmann Universal shape formation for programmable matter SPAA 2016

Deterministic shape-formation algorithm for asynchronous Amoebots, where the starting shape is simply connected and the final shape is a collection of triangles and segments:

Di Luna, Flocchini, Santoro, Viglietta, Yamauchi Shape formation by programmable particles DISC 2017 (BA), OPODIS 2017

Shape Formation by Programmable Particles

slide-17
SLIDE 17

Our Particle Model

The n particles in the system: initially form any simply connected shape know the final shape but do not know n have a constant amount of internal memory are anonymous and start in the same state can only see and communicate with adjacent particles do not have a compass may not agree on a clockwise direction are activated asynchronously execute the same deterministic algorithm cannot occupy the same node

Shape Formation by Programmable Particles

slide-18
SLIDE 18

Unbreakable Symmetry

If the system has a center of symmetry not on a grid node...

Shape Formation by Programmable Particles

slide-19
SLIDE 19

Unbreakable Symmetry

Then this symmetry is impossible to break.

Shape Formation by Programmable Particles

slide-20
SLIDE 20

Unbreakable Symmetry

The same holds for systems with a 3-fold rotational symmetry.

Shape Formation by Programmable Particles

slide-21
SLIDE 21

Unbreakable Symmetry

If the center is not on a grid node, the symmetry is unbreakable.

Shape Formation by Programmable Particles

slide-22
SLIDE 22

Statement of Results

Observation If the system initially has an unbreakable 2- or 3-symmetry, it cannot form shapes that do not have the same type of symmetry. Theorem For all other cases, there is a universal shape-formation algorithm, provided that the system initially forms a simply connected shape, and the final shape and its scaled-up copies are Turing-computable (with some bland extra assumptions). The extra assumptions are satisfied by connected shapes, so: Corollary A system that initially forms a simply connected shape can form a final shape whose scaled-up copies are Turing-computable and connected if and only if this does not contradict the Observation.

Shape Formation by Programmable Particles

slide-23
SLIDE 23

Universal Shape-Formation Algorithm

Start with a simply connected system (i.e., with no “holes”).

Shape Formation by Programmable Particles

slide-24
SLIDE 24

Universal Shape-Formation Algorithm

Phase 1 (old): attempt to elect a leader.

Shape Formation by Programmable Particles

slide-25
SLIDE 25

Universal Shape-Formation Algorithm

Phase 2 (old): construct a spanning forest.

Shape Formation by Programmable Particles

slide-26
SLIDE 26

Universal Shape-Formation Algorithm

Phase 3 (old): agree on a clockwise direction.

Shape Formation by Programmable Particles

slide-27
SLIDE 27

Universal Shape-Formation Algorithm

Phase 4 (old): form one line per leader.

Shape Formation by Programmable Particles

slide-28
SLIDE 28

Universal Shape-Formation Algorithm

Phase 5 (new): simulate a RAM to compute the final shape.

Shape Formation by Programmable Particles

slide-29
SLIDE 29

Universal Shape-Formation Algorithm

Phase 6 (new): keep computing while forming the final shape.

Shape Formation by Programmable Particles

slide-30
SLIDE 30

Universal Shape-Formation Algorithm

Phase 6 (new): keep computing while forming the final shape.

Shape Formation by Programmable Particles

slide-31
SLIDE 31

Random-Access Machines

A random-access machine is a model of computation with: some registers, each storing a non-negative integer a finite program consisting of only 3 types of instructions:

increment the value stored in a register by 1 if the value stored in a register is positive, decrement it by 1 test the value of a register and branch if it is 0

Shape Formation by Programmable Particles

slide-32
SLIDE 32

Random-Access Machines

A random-access machine is a model of computation with: some registers, each storing a non-negative integer a finite program consisting of only 3 types of instructions:

increment the value stored in a register by 1 if the value stored in a register is positive, decrement it by 1 test the value of a register and branch if it is 0

Theorem (Minsky, 1967) Any Turing machine can be simulated by a random-access machine with only 2 registers, the first of which initially contains the input.

Shape Formation by Programmable Particles

slide-33
SLIDE 33

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2 4 8

A random-access machine with 2 registers can be simulated by 4 particles: a leader, which executes the program, and 3 particles whose distances correspond to the values stored in the 2 registers.

Shape Formation by Programmable Particles

slide-34
SLIDE 34

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-35
SLIDE 35

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-36
SLIDE 36

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-37
SLIDE 37

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-38
SLIDE 38

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-39
SLIDE 39

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-40
SLIDE 40

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-41
SLIDE 41

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-42
SLIDE 42

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-43
SLIDE 43

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-44
SLIDE 44

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-45
SLIDE 45

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-46
SLIDE 46

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-47
SLIDE 47

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-48
SLIDE 48

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-49
SLIDE 49

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-50
SLIDE 50

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-51
SLIDE 51

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-52
SLIDE 52

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2 5 8

If the leader has to increment the value of the first register, it pulls the last two particles to the right by one step, and then goes back to its original position.

Shape Formation by Programmable Particles

slide-53
SLIDE 53

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2 7

If the leader has to test if the value of the second register is 0, it reaches the second-to-last particle and exchanges messages with it, asking if the last particle is adjacent to it.

Shape Formation by Programmable Particles

slide-54
SLIDE 54

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to test if the value of the second register is 0, it reaches the second-to-last particle and exchanges messages with it, asking if the last particle is adjacent to it.

Shape Formation by Programmable Particles

slide-55
SLIDE 55

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to test if the value of the second register is 0, it reaches the second-to-last particle and exchanges messages with it, asking if the last particle is adjacent to it.

Shape Formation by Programmable Particles

slide-56
SLIDE 56

Simulating a Random-Access Machine with 2 Registers

L

Register 1 Register 2

If the leader has to test if the value of the second register is 0, it reaches the second-to-last particle and exchanges messages with it, asking if the last particle is adjacent to it.

Shape Formation by Programmable Particles

slide-57
SLIDE 57

Shape-Formation Phase

L L L

If k > 1 leaders have been elected in the previous phases, it means that the initial shape has an unbreakable k-fold symmetry.

Shape Formation by Programmable Particles

slide-58
SLIDE 58

Shape-Formation Phase

Hence, we may assume that also the shape to be formed has the same k-fold symmetry.

Shape Formation by Programmable Particles

slide-59
SLIDE 59

Shape-Formation Phase

The plane is partitioned into k sectors, and each leader is tasked with forming the part of the shape that falls in its sector.

Shape Formation by Programmable Particles

slide-60
SLIDE 60

Shape-Formation Phase

L L L

The plane is partitioned into k sectors, and each leader is tasked with forming the part of the shape that falls in its sector.

Shape Formation by Programmable Particles

slide-61
SLIDE 61

Shape-Formation Phase

L L L

Assume there is an algorithm that, given n, generates the points of the shape. Let each leader simulate a RAM for that algorithm.

Shape Formation by Programmable Particles

slide-62
SLIDE 62

Shape-Formation Phase

L

The leader takes position at the beginning of the simulated RAM.

Shape Formation by Programmable Particles

slide-63
SLIDE 63

Shape-Formation Phase

L

Register 1: representation of n

By scanning the previous part of the chain, it constructs a representation of n in the first register, which serves as the input.

Shape Formation by Programmable Particles

slide-64
SLIDE 64

Shape-Formation Phase

L

The simulated RAM will generate all the points of the shape and the sequence of moves necessary to reach them.

Shape Formation by Programmable Particles

slide-65
SLIDE 65

Shape-Formation Phase

L

Computing...

The simulated RAM computes the first point of the shape, while the rest of the chain does not move.

Shape Formation by Programmable Particles

slide-66
SLIDE 66

Shape-Formation Phase

L

Moving...

When the RAM has finished, the value of the first register indicates that the chain has to move in some direction.

Shape Formation by Programmable Particles

slide-67
SLIDE 67

Shape-Formation Phase

L

Moving...

(The movement of the whole chain is coordinated by the leader, and takes place one particle at a time.)

Shape Formation by Programmable Particles

slide-68
SLIDE 68

Shape-Formation Phase

L

The RAM computes the next movement, and the whole chain moves as soon as the computation is finished.

Shape Formation by Programmable Particles

slide-69
SLIDE 69

Shape-Formation Phase

L

The RAM computes the next movement, and the whole chain moves as soon as the computation is finished.

Shape Formation by Programmable Particles

slide-70
SLIDE 70

Shape-Formation Phase

L

Sliding...

When the chain is on the same line as the first point of the shape, it slides until the last particle of the chain coincides with the point.

Shape Formation by Programmable Particles

slide-71
SLIDE 71

Shape-Formation Phase

L

Sliding...

When the chain is on the same line as the first point of the shape, it slides until the last particle of the chain coincides with the point.

Shape Formation by Programmable Particles

slide-72
SLIDE 72

Shape-Formation Phase

L

Sliding...

When the chain is on the same line as the first point of the shape, it slides until the last particle of the chain coincides with the point.

Shape Formation by Programmable Particles

slide-73
SLIDE 73

Shape-Formation Phase

L

Sliding...

When the chain is on the same line as the first point of the shape, it slides until the last particle of the chain coincides with the point.

Shape Formation by Programmable Particles

slide-74
SLIDE 74

Shape-Formation Phase

L

Deploying

A message is forwarded to the last particle, telling it to stay there, and perhaps expand in some direction to cover two points.

Shape Formation by Programmable Particles

slide-75
SLIDE 75

Shape-Formation Phase

L

A message is forwarded to the last particle, telling it to stay there, and perhaps expand in some direction to cover two points.

Shape Formation by Programmable Particles

slide-76
SLIDE 76

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-77
SLIDE 77

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-78
SLIDE 78

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-79
SLIDE 79

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-80
SLIDE 80

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-81
SLIDE 81

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-82
SLIDE 82

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-83
SLIDE 83

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-84
SLIDE 84

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-85
SLIDE 85

Shape-Formation Phase

L

The protocol proceeds in the same fashion with the other points of the shape.

Shape Formation by Programmable Particles

slide-86
SLIDE 86

Shape-Formation Phase

L

The algorithm ensures that the last 4 points of the shape are “in the same neighborhood”.

Shape Formation by Programmable Particles

slide-87
SLIDE 87

Shape-Formation Phase

When the leader is on the first of these 4 points, it makes the RAM contract, erasing the registers.

Shape Formation by Programmable Particles

slide-88
SLIDE 88

Shape-Formation Phase

Distance bounded by a constant

Assuming that the distance of the other 3 points is bounded by a constant, the particles can reach them using constant memory.

Shape Formation by Programmable Particles

slide-89
SLIDE 89

Shape-Formation Phase

Assuming that the distance of the other 3 points is bounded by a constant, the particles can reach them using constant memory.

Shape Formation by Programmable Particles

slide-90
SLIDE 90

Fractal and Curved Shapes

This protocol allows the system to form shapes that scale up like fractals (e.g., the Sierpinski triangle), as well as curved objects, which are better approximated as the number of particles increases.

Shape Formation by Programmable Particles

slide-91
SLIDE 91

Fractal and Curved Shapes

This protocol allows the system to form shapes that scale up like fractals (e.g., the Sierpinski triangle), as well as curved objects, which are better approximated as the number of particles increases.

Shape Formation by Programmable Particles

slide-92
SLIDE 92

Fractal and Curved Shapes

This protocol allows the system to form shapes that scale up like fractals (e.g., the Sierpinski triangle), as well as curved objects, which are better approximated as the number of particles increases.

Shape Formation by Programmable Particles

slide-93
SLIDE 93

Fractal and Curved Shapes

This protocol allows the system to form shapes that scale up like fractals (e.g., the Sierpinski triangle), as well as curved objects, which are better approximated as the number of particles increases.

Shape Formation by Programmable Particles

slide-94
SLIDE 94

Fractal and Curved Shapes

This protocol allows the system to form shapes that scale up like fractals (e.g., the Sierpinski triangle), as well as curved objects, which are better approximated as the number of particles increases.

Shape Formation by Programmable Particles

slide-95
SLIDE 95

Fractal and Curved Shapes

= 1 λ = 2 λ = 3 λ = 4 λ

By contrast, the old protocol only allowed the formation of shapes that are made up of full triangles and segments.

Shape Formation by Programmable Particles

slide-96
SLIDE 96

General Computable Shapes

= 3 n = 5 n = 8 n

More generally, the new protocol only requires the existence of a computable function that, on input n, produces a configuration of n particles that forms a suitably scaled-up copy of the final shape.

Shape Formation by Programmable Particles

slide-97
SLIDE 97

Dismantling the Mobile RAMs

Also, each mobile RAM used to form the shape has to be dismantled when it has finished computing: Assumption For each scaled-up copy Sn of the final shape, there exists a configuration Cf of n particles that forms Sn (such that Cf is unbreakably k-symmetric if Sn has to be formed from an unbreakably k-symmetric initial configuration) and, for each symmetric component C ′

f of Cf , there exists a ball of diameter

independent of n that contains at least four particles of C ′

f .

Shape Formation by Programmable Particles

slide-98
SLIDE 98

Conclusion

Theorem Under the previous Assumption, any Turing-computable shape is formable from any simply connected initial configuration. Only very sparse shapes fail to satisfy the Assumption. In particular, connected shapes abundantly satisfy it. Corollary A necessary and sufficient condition for a connected Turing-computable shape to be formable from a simply connected initial configuration is that, if the initial configuration is unbreakably k-symmetric, then also the corresponding scaled-up copy of the shape is unbreakably k-symmetric.

Shape Formation by Programmable Particles