← Gallery

Irving's Algorithm (Stable Roommates)

Robert W. Irving's 1985 algorithm solves the stable roommates problem in two phases: Phase 1 reduces preference lists (like GS), and Phase 2 eliminates "all-or-nothing" rotations to find a stable matching — or prove none exists.