a rupestrian algorithm
play

A Rupestrian Algorithm FUN 2016 Giuseppe A. Di Luna, Paola - PowerPoint PPT Presentation

A Rupestrian Algorithm FUN 2016 Giuseppe A. Di Luna, Paola Flocchini, Giuseppe Prencipe, Nicola Santoro, Giovanni Viglietta La Maddalena June 8, 2016 A Rupestrian Algorithm A recent archaeological expedition discovered ancient cave


  1. Ritual: creating Chiefs If an Explorer sees a Marker with no scepter, it becomes a Disciple and stops moving./ A Rupestrian Algorithm

  2. Ritual: creating Chiefs If an Explorer sees a Marker with no scepter, it becomes a Disciple and stops moving./ A Rupestrian Algorithm

  3. Ritual: creating Chiefs If an Explorer and a Chief bump into each other, they swap their states (equivalently, they switch positions)./ A Rupestrian Algorithm

  4. Ritual: creating Chiefs If an Explorer and a Chief bump into each other, they swap their states (equivalently, they switch positions)./ A Rupestrian Algorithm

  5. Ritual: creating Chiefs If an Explorer sees a Disciple, it becomes a Disciple, as well. / A Rupestrian Algorithm

  6. Ritual: creating Chiefs If an Explorer sees a Disciple, it becomes a Disciple, as well. / A Rupestrian Algorithm

  7. Ritual: Unique Leader case If a Chief reaches a Marker who still has the scepter, he acquires the scepter and becomes Unique Leader./ A Rupestrian Algorithm

  8. Ritual: Unique Leader case If a Chief reaches a Marker who still has the scepter, he acquires the scepter and becomes Unique Leader./ A Rupestrian Algorithm

  9. Ritual: Unique Leader case If a Chief reaches a Marker who still has the scepter, he acquires the scepter and becomes Unique Leader./ A Rupestrian Algorithm

  10. Ritual: Unique Leader case If a Chief reaches a Marker who still has the scepter, he acquires the scepter and becomes Unique Leader./ A Rupestrian Algorithm

  11. Ritual: Unique Leader case The Unique Leader goes around the initial line, and all who see him become Followers./ A Rupestrian Algorithm

  12. Ritual: Unique Leader case The Unique Leader goes around the initial line, and all who see him become Followers./ A Rupestrian Algorithm

  13. Ritual: Unique Leader case The Unique Leader goes around the initial line, and all who see him become Followers./ A Rupestrian Algorithm

  14. Ritual: Unique Leader case The Unique Leader goes around the initial line, and all who see him become Followers./ A Rupestrian Algorithm

  15. Ritual: Unique Leader case If two villagers try to move to the same spot, only one succeeds (chosen at random)./ A Rupestrian Algorithm

  16. Ritual: Unique Leader case If two villagers try to move to the same spot, only one succeeds (chosen at random)./ A Rupestrian Algorithm

  17. Ritual: Unique Leader case If two villagers try to move to the same spot, only one succeeds (chosen at random)./ A Rupestrian Algorithm

  18. Ritual: Unique Leader case If two villagers try to move to the same spot, only one succeeds (chosen at random)./ A Rupestrian Algorithm

  19. Ritual: Unique Leader case If two villagers try to move to the same spot, only one succeeds (chosen at random)./ A Rupestrian Algorithm

  20. Ritual: Unique Leader case Each member of the queue waits for the next member to reach him, and then takes another step./ A Rupestrian Algorithm

  21. Ritual: Unique Leader case Each member of the queue waits for the next member to reach him, and then takes another step./ A Rupestrian Algorithm

  22. Ritual: Unique Leader case Each member of the queue waits for the next member to reach him, and then takes another step./ A Rupestrian Algorithm

  23. Ritual: Unique Leader case Each member of the queue waits for the next member to reach him, and then takes another step./ A Rupestrian Algorithm

  24. Ritual: Unique Leader case Eventually, all the active villagers become part of the line and can start the migration./ A Rupestrian Algorithm

  25. Ritual: Opposing Leaders case If the Markers give their scepters to two different Explorers, two Chiefs are created./ A Rupestrian Algorithm

  26. Ritual: Opposing Leaders case If two Chiefs meet, they become Opposing Leaders and switch directions./ A Rupestrian Algorithm

  27. Ritual: Opposing Leaders case If two Chiefs meet, they become Opposing Leaders and switch directions./ A Rupestrian Algorithm

  28. Ritual: Opposing Leaders case The Opposing Leaders walk around the initial line collecting everyone, until they meet again on the other side./ A Rupestrian Algorithm

  29. Ritual: Opposing Leaders case Now their goal is to determine a winner by comparing the sizes of their respective queues./ A Rupestrian Algorithm

  30. Ritual: Opposing Leaders case To this end, they send a message to their respective Follower, which is forwarded all the way to the tail./ A Rupestrian Algorithm

  31. Ritual: Opposing Leaders case To this end, they send a message to their respective Follower, which is forwarded all the way to the tail./ A Rupestrian Algorithm

  32. Ritual: Opposing Leaders case Then the message bounces back and goes to the head again. / A Rupestrian Algorithm

  33. Ritual: Opposing Leaders case Then the message bounces back and goes to the head again. / A Rupestrian Algorithm

  34. Ritual: Opposing Leaders case The first Opposing Leader to get the message back is the loser, and becomes a Follower./ A Rupestrian Algorithm

  35. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  36. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  37. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  38. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  39. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  40. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  41. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  42. Ritual: Opposing Leaders case The other Opposing Leader becomes then the Unique Leader, and guides the procession./ A Rupestrian Algorithm

  43. Ritual: Opposing Leaders case However, if one of the two queues bends, its head is automatically declared the winner, even if that queue is shorter./ A Rupestrian Algorithm

Recommend


More recommend