Skip to content

Beyond the Boundary: Optimal Grid Dispersion by Spread, Reverse, and Collect

Manish Kumar, Anisur Rahaman Molla, Debasish Pattanayak, Subhajit Pramanick

cs.DCarXiv:2610.16935

Abstract

Dispersion requires a set of mobile agents to occupy distinct nodes of a graph such that each node contains at most one agent. We study deterministic dispersion of k n agents on an n-node oriented square grid, where each node has globally consistent North, East, South, and West port labels, from arbitrary initial configurations. This includes both rooted configurations, where all agents are co-located initially, and general configurations, where agents are initially distributed arbitrarily across the nodes. On oriented square grids, Kshemkalyani, Molla, and Sharma~KMS20 gave an O((k,))-round algorithm in the local-communication model, where only agents on the same node can exchange information, and an O(k)-round algorithm in the global-communication model, where any two agents can communicate regardless of position, both using O( k) bits per agent. The bound in the local communication model is optimal when k=Θ(n), but it remains open whether local communication alone can match the Ω(k) time lower bound when k=o(n). We solve this by presenting Spread--Reverse--Collect (SRC), a deterministic algorithm that disperses any k n agents in O(k) synchronous rounds using O( k) bits of persistent memory per agent, matching both time and memory lower bounds. SRC is based on a geometric primitive, a -shaped parallel sweep, together with a simple priority rule. Unlike earlier grid algorithms that gather agents at the boundary and spread out from there, each SRC sweep starts from the agents' current position, and when it reaches the boundary the group simply reflects its sweep back inside and continues. SRC therefore needs no knowledge of the grid size and runs unchanged on an infinite oriented grid.

Create a lesson