| Algorithm 5: MoveRWS algorithm. Function finds a valid transition sequence, as can be seen in Figure 8. This function is also called before the initial recursion of the MoveRWS algorithm. Function makes use of the information of the RWS algorithm (see Algorithm 2), and it exchanges agent identifiers on two adjacent configuration spaces, by exchanging the amount of triangular cells that have the lowest coverage cost, but are adjacent. It also propagates and extends this cost. Function returns the remaining sequence for the specific transition, in order to initially transfer only the amount of triangular cells that are adjacent between i and until the final UAV. In case this happens, the requested area has not been exchanged yet, so the algorithm runs recursively, and the last line takes a step back in sequence traversal. |
| S area size to be moved the area size of adjacent triangular cells between UAV k and l the transition sequence between and for triangular cell exchange, treated as a list
|