How are roles defined in purely algorithmic or natural swarms, as opposed to applied systems?

Answer

As emergent functional states dictated by the dynamic relationship between the agent and the environment.

In natural or algorithmic swarms, roles manifest as emergent functional states determined dynamically by the agent's interaction with its environment.

How are roles defined in purely algorithmic or natural swarms, as opposed to applied systems?
Roledecisionagentswarmcoordination