Gale Shapley Stable Marriage Algorithm

Implementation of the Gale-Shapley stable matching algorithm.
ダウンロード: 1.6K
更新 2013/11/11

ライセンスの表示

Given N men and N women, and the preferences of each of them over the members of the opposite gender, a stable matching is a matching between the N men and women such that there is no man and woman who prefer each other over their respectively matched partners.

The Gale-Shapley algorithm determines such a stable matching. Depending on the formulation, it provides either a men-optimal or a women-optimal stable matching. The given function determines the men-optimal stable matching. One can determine the women-optimal stable matching by switching the preferences in the input. An example is provided.

引用

Sanjith Gopalakrishnan (2026). Gale Shapley Stable Marriage Algorithm (https://jp.mathworks.com/matlabcentral/fileexchange/44262-gale-shapley-stable-marriage-algorithm), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
謝辞

ヒントを得たファイル: stable matching

バージョン 公開済み リリース ノート
1.0.0.0