Neural Ninjas Β· DSA Simulation Labs Β· Lab 33

πŸ‘‘ The Cluster Boss

Every dot starts as its own tiny cluster, reporting only to itself. Union two clusters, and the SMALLER one's boss gets re-wired to report to the LARGER one's boss β€” keeping every reporting chain as short as possible.

Union Log

Controls

πŸ”— UnionI check both bosses first. If they're already the same, I do nothing β€” that pair is already one cluster. Otherwise, I always attach the smaller side.
πŸ‘‘ BossOnly one dot per cluster answers to nobody β€” that's the boss. Follow enough "reports to" arrows from anywhere in the cluster, and you always land on it.
Pick a level above to begin.