> any pair of students can be swapped if they both get a more preferred school.
This is the meaning of stable in the stable marriage problem. And the Gale-Shapley algorithm does this.
This is the meaning of stable in the stable marriage problem. And the Gale-Shapley algorithm does this.