You may be misunderstanding what an algorithm is, because I don’t see how your post relates to algorithms.
Am algorithm is just a defined series of steps to do something. Doing long division would be an algorithm.
Social media sites need to rank the posts that it shows to users, and it uses algorithms for that. People talk about social media algorothms because social media sites often select an algorithm that is specifically designed to prioritize the posts that keep users engaged. Lemmy has an algorithm. If you’re sorting by Hot or Scaled, that’s an algorithm. The main difference is that this algorithm is available for people to see and has been selected to actually do what it says it does
The questions you’re asking about already exist. Portguese man-o-war are colonies of multiple organisms. Bees and ants are considered superorganisms.
It’s not going to happen to humans, if that’s what you’re asking. The evolutionary incentive simply isn’t there to form a superorganism physically, though you could definitely make the argument that society and culture can be interpreted as a superorganism