Overview
Hector Garcia-Molina's Bully Algorithm assumes each process has a unique comparable numeric ID and knows the IDs/addresses of all peers. When a process notices the coordinator is unresponsive, it sends ELECTION messages to all processes with higher IDs. If any higher-ID process replies OK, the challenger yields and waits; if no higher-ID process responds within the timeout, the process declares itself the new coordinator and broadcasts COORDINATOR to all lower-ID nodes.