Overview
In the Ring Leader Election algorithm (Lann 1977, optimized by Chang & Roberts 1979), N processes are organized in a logical unidirectional ring where each node knows its successor. A node initiating an election sends ELECTION(myId) to its next live neighbor. Each receiving node compares the incoming ID with its own: in Chang-Roberts, it forwards the message only if incomingId > myId (or replaces it with myId if myId > incomingId and not yet participating). When a node receives its own ID back after a full circuit, it is elected leader and circulates a COORDINATOR announcement.