Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは単純な問題です。n人の科目とm人の学生(m <= n)があると仮定します。私は、すべての学生に異なる科目を選択できる非常に公正なアルゴリズムを探しています。「先着順」の状況は避けたい。アイデアをありがとう!
最大二部マッチングを見つけます。
入力がすべての科目に対する各学生のランキングである場合、安定した結婚アルゴリズムを使用してそれを解決できます