Stable Marriage Problem Introductory talk 2 Yosuke KIKUCHI Dept Comp. and Info. Eng. Tsuyama College of Tech OKAYAMA, JAPAN.

Slides:



Advertisements
Similar presentations
Is Charlie Brown a Loser? Do you think you know your real character? Do you actually know, for example, the good and bad points about yourself? It is.
Advertisements

SPSSによるHosmer-Lemeshow検定について
レポート書き方. おしいレポート よく調べてある それぞれの、1文の言っていることは正 しい しかし、全体として、何が言いた いのかわからない 内容の重要だが、全体の構成も重 要である.
7.n次の行列式   一般的な(n次の)行列式の定義には、数学的な概念がいろいろ必要である。まずそれらを順に見ていく。
9.線形写像.
学生の携帯電話選択理由 岡田隆太.
3.多項式計算アルゴリズム べき乗の計算 多項式の計算.
九州大学 岡村研究室 久保 貴哉 1. 利用中のAPの数の推移 2 横軸:時刻 縦軸:接続要求数 ・深夜では一分間で平均一台、 昼間では平均14台程度の接続 要求をAPが受けている。 ・急にAPの利用者数が増えてく るのは7~8時あたり.
麻雀ゲーム 和島研究室 ソ 小林巧人
5.連立一次方程式.
相関.
―本日の講義― ・平均と分散 -代表値 -ぱらつき(分散・標準偏差等) ・Excelによる演習
論理回路 第2回 今日の内容 前回の課題の説明 数の体系 – 数の表現 – 代表的な数 – 基数の変換 – 補数.
広告付き価格サービ ス 小園一正. はじめに 世の中には様々な表現方法の広告があり ます。その中でも私たち学生にとって身 近にあるものを広告媒体として取り入れ られている。 価格サービス(無料配布のルーズリー フ)を体験したことにより興味を惹かれ るきっかけとなった。主な目的は、これ.
素数判定法 2011/6/20.
フーリエ係数の性質. どこまで足す? 理想的には無限大であるが、実際に はそれは出来ない これをフーリエ解析してみる.
1章 行列と行列式.
本宮市立白岩小学校. 1 はじめに 2 家庭学習プログラム開発の視点 ① 先行学習(予習)を生かした 確かな学力を形成する授業づく り ② 家庭との連携を図った家庭学習の習慣化.
フーリエ級数. 一般的な波はこのように表せる a,b をフーリエ級数とい う 比率:
プログラミング入門2 第4回 式文 代入式 論理演算子 ループの脱出、スキップ 情報工学科 篠埜 功.
3.エントロピーの性質と各種情報量.
Excelによる積分.
1 6.低次の行列式とその応用. 2 行列式とは 行列式とは、正方行列の特徴を表す一つのスカ ラーである。すなわち、行列式は正方行列からスカ ラーに写す写像の一種とみなすこともできる。 正方行列 スカラー(実数) の行列に対する行列式を、 次の行列式という。 行列 の行列式を とも表す。 行列式と行列の記号.
計算のスピードアップ コンピュータでも、sin、cosの計算は大変です 足し算、引き算、掛け算、割り算は早いです
1 0章 数学基礎. 2 ( 定義)集合 集合については、 3セメスタ開講の「離散数学」で詳しく扱う。 集合 大学では、高校より厳密に議論を行う。そのために、議論の 対象を明確にする必要がある。 ある “ もの ” (基本的な対象、概念)の集まりを、 集合という。 集合に含まれる “ もの ” を、集合の要素または元という。
10.PとNP完全問題との境界.
4.プッシュダウンオートマトンと 文脈自由文法の等価性
1 0章 数学基礎. 2 ( 定義)集合 集合については、 3セメスタ開講の「離散数学」で詳しく扱う。 集合 大学では、高校より厳密に議論を行う。そのために、議論の 対象を明確にする必要がある。 ある “ もの ” (基本的な対象、概念)の集まりを、 集合という。 集合に含まれる “ もの ” を、集合の要素または元という。
システムプログラム論 課題 大村 廉. 課題 Java を用いて Producer / Consumer 問題を解決する MyBuffer クラスを –Synchronized キーワード –Semaphore クラス (java.util.concurrent.Semaphore) を用いてそれぞれ作りなさい.
信号測定. 正弦波 多くの場合正弦波は 0V の上下で振動する しかし、これでは AD 変換器に入れら れないので、オフ セットを調整して データを取った.
1 9.線形写像. 2 ここでは、行列の積によって、写像を 定義できることをみていく。 また、行列の積によって定義される写 像の性質を調べていく。
“KING OF POPS” 田口健太郎. 調査  調査内容:マイケ ル・ジャクソンがど のような人生を歩ん できたか  調査方法:インター ネット  問題点:彼の容姿の 変化について、一部 誤解が生じている部 分がある.
ビット. 十進数と二進数 十進数  0から9までの数字を使って 0、1、2、3、4、5、6、7、8、9、 10、11、12 と数える 二進数  0と1を使って 0、1、10、11、100、101、11 0、111 と数える.
結城諒 司 吉田成 樹 完成予定図 O N! 7セグLE D ランダム表 示 OF F ? 数字が出たら 勝ち!!
正弦波.
3.正方行列(単位行列、逆行列、対称行列、交代行列)
学習者の意欲を高める音読指導の 一時例 1 Speak を使った 音読指導 鈴木政浩(西武文理大学)
プログラミング演習B ML編 第3回 2010/6/15 (コミ) 2010/6/16 (情報・知能) 住井 ~sumii/class/proenb2010/ml3/
伝わるスライド 中野研究室 M2 石川 雅 信. どのようなスライドを作れば良 いか 伝えたいこと.
JPN 312 (Fall 2007): Conversation and Composition Contraction (2); 意見を言う (to express your opinion)
JPN 311: Conversation and Composition 許可 (permission)
地図に親しむ 「しゅくしゃくのちがう 地図を 使ってきょりを調べよ う1」 小学4年 社会. 山口駅裁判所 県立 美術館 サビエル 記念聖堂 山口市役所 地図で探そう 市民会館 県立 図書館.
方程式を「算木」で 解いてみよう! 愛媛大学 教育学部 平田 浩一.
3.多項式計算アルゴリズム べき乗の計算 多項式の計算.
JPN 312 (Fall 2007): Conversation and Composition 文句 ( もんく ) を言う.
HKS Analysis Log Jul 2006 Part1 D.Kawama. 第壱部 HKS Sieve Slit Analysis.
HSPによる学習機能付き シューティングゲームの製作
1 中野研究室 4 年ゼミのイロハ 斉藤(修士 2 年) ( 2009 年 ”4 年ゼミのイロハ ” を参考に作りました)
「ネット社会の歩き方」レッスンキット プレゼンテーション資料集 15. チャットで個人情報は 言わない プレゼンテーション資料 著作権は独立行政法人情報処理推進機構( IPA )及び経済産業省に帰属します。
8.任意のデータ構造 (グラフの表現とアルゴリズム)
プログラミング入門2 第3回 複合文、繰り返し 情報工学科 篠埜 功.
リファクタリング支援のための コードクローンに含まれる識別子の変更内容分析 井上研究室 工藤 良介 1.
NODA Ken, KAJITA Satoshi and SASA Yoshinobu Truss Contest 2004 idea 男がこう言っ た。 「デザインにこだわろう。」 現場が一瞬凍りついた。 男はこう続けた。 「記録に残るだけではだめだ、記憶に残さなくて は。」 現場がひとつになった。
メニューに戻る メニューに戻る | 前表示スライド 前表示スライド G*power 3 の web ページ Windows はこちら Mac はこちら ダウンロード後,実行してインストール.
プログラミング演習( 1 組) 第 8 回
携帯電話でのコミュニ ケーションについて 1班真田 出水 佐伯 堺. 仮説  女性のほうが携帯電話を使ったコミュニ ケーションを重要視する。
音の変化を視覚化する サウンドプレイヤーの作成
Self-efficacy(自己効力感)について
本文. 考えながら読みましょ う 「いろいろなこと」( 3 行目)は何で すか 「①電話料金はコンビニで支払いをしていま す。いつでも払えますから、便利です。」 「②夕食はコンビニで買います。お弁当やお かずがいろいろありますから。」今、若者に 人気のあるコンビニは、いろいろなことをす るのに非常に便利な場所になった。
1 Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game.
たくさんの人がいっしょに乗れる乗り物を 「公共交通」といいます バスや電車 と 自動車 の よいところ と よくない ところ よいところ と よくない ところ を考えてみよう!
Stable Marriage Problem Introductory talk 2 Yosuke KIKUCHI Dept Comp. and Info. Eng. Tsuyama College of Tech OKAYAMA, JAPAN.
Stable Marriage Problem Introductory talk Yosuke KIKUCHI Dept Comp. and Info. Eng. Tsuyama College of Tech OKAYAMA, JAPAN.
日本語きほん文法の復習 Basic Japanese Grammar Review
今日の内容 高階関数  関数を値として扱う 関数を引数にとる 関数を返す関数 プログラミングの例題  クイックソート.
英語勉強会 名手⇒詫間 2015/10/22. 原文 This study says acquiring motor skills support system. There is how to acquire moor skills that coach advises learner. Motor.
Stable Matching Examples Ron K. Cytron Examples drawn from Knuths’ lecture in French: Marriages stables et leurs relations.
心臓および肝臓移植会社. 心臓移植は非常に複雑な 手技であり、 zoukiishoku119 は候補者の 評価から手技後のケアま で、各患者の治療に協力 チームアプローチをとっ ています。私たちの多分 野の移植グループには、 心臓専門医、心臓外科医、 看護師、心臓リハビリ専 門家、ソーシャルワー カーが含まれます。これ.
腎臓移植 腎臓移植の前に、ドナー両方の腎臓は機 能的に良好でなければならない。ドナー の両方の腎臓が機能的に健康であること を保証するために、多数の試験が行われ ている。
Ask Have ~ ? / How long ~ ? Answer these questions
Presentation transcript:

Stable Marriage Problem Introductory talk 2 Yosuke KIKUCHI Dept Comp. and Info. Eng. Tsuyama College of Tech OKAYAMA, JAPAN

Contents Original stable marriage problem (conntinued) Experimental study Scored stable marriage

Review of previous talk Introduction of background Original stable marriage problem – Setting – Definition of stable – application – Gale-Shapley algorithm – Features of the algorithm – Proof of correctness of the algorithm – Number of proposals (worst case and mean value)

My lab. member

Stable marriage problem There are N -women and N-men. Each parson has a preference list of opposite sex. Then decide N-matching between women and men.

A matching is stable A matching is unstable if a man A and a woman a, not married to each other, but they mutually prefer each other to their partners. These pair A and a is called blocking pair. A matching is stable if it does not contain a blocking pair.

Blocking pair Men {A,B}, Women {α,β} Preference list Men’sWomen’s A α B β Man A Man B Woman α Woman β 12 Aβα B βα 12 αBA βAB

Blocking pair Men {A,B}, Women {α,β} Preference list Men’sWomen’s A α B β Man A Man B Woman α Woman β 12 Aβα B βα 12 αBA βBA It is not a blocking pair.

Blocking pair Men {A,B}, Women {α,β} Preference list Men’sWomen’s A α B β Man A Man B Woman α Woman β 12 Aβα B βα 12 αBA βAB

Setting of stable marriage problem Case N=4 (Men {A,B,C,D}, Women {a,b,c,d}) 1234 Acbda Bbacd Cbdac Dcadb 1234 aABDC bCADB cCBDA dBACD Men’s preference listWomen’s preference list

Example of stable and unstable 1234 A γβδα B βαγδ C βδαγ D γαδβ 1234 α ABDC β CADB γ CBDA δ BACD Men’s preference listWomen’s preference list (A α, B β, C γ, D δ ) A and β are a blocking pair. (A δ, B α, C β, D γ ) This is a stable matching.

Simple approach Case N= 3(Men {A,B,C}, Women {a,b,c}) 123 Abac Bcab Cabc 123 aACB bCAB cCBA Men’s preference listWomen’s preference list (Aa, Bb, Cc) (Ab, Ba, Cc) A and b are a blocking pair. b and C are a blocking pair.A and a are a blocking pair. a and C are a blocking pair. (Ac, Ba, Cb) (Ac, Bb, Ca) This approach does not end. But (Ab, Bc, Ca) and (Aa, Bc, Cb) are stable matcihg. Thus this approach can not obtain stable matching for any lists. This is initial matching!

What is Stable matching ? Men’s preference listWomen’s preference list Ac Ba Cb Dd → Pair Dc is a blocking pair. → Ad Ba Cb Dc 1234 Acbda Bbacd Cbdac Dcadb 1234 aABDC bCADB cCBDA dBACD

Applications of stable matching Distribution of students among laboratory Distribution interns into hospitals [1] - reference - [1] 医師臨床研修マッチング協議会 (JAPAN INTERNS MATCHING CONFERENCE(?)) URL) /3/26http://

Distribution n interns into m hospitals n k : capacity of k-th hospital n 1 +n 2 + ・・・ +n m =n The number of interns > the capacities of hospitals ⇒ fictitious hospital (the worst choice for inters) (the capacity of fictitious hospital = The number of interns - the capacities of hospitals) The number of interns < the capacities of hospitals ⇒ fictitious interns (the worst choice for hospitals) (the number of fictitious interns = The capacities of hospitals - the number of interns )

Distribution n interns into m hospitals Interns I 1 I 2. I n Hospitals H 1 (capacity n 1 ) H 2 (capacity n 2 ). H m (capacity n m

Distribution n interns into m hospitals Interns I 1 I 2. I n Hospitals H 11 (capacity 1) H 12 (capacity 1) H 1n 1 (capacity 1) H 21 (capacity 1) H 22 (capacity 1) H 2n 2 (capacity 1) … … … Same list Same list Then we modify this model to original stable marriage model.

Incomplete lists 123 Aa Bcab Cca 123 aCA bBAC cBC Men’s preference listWomen’s preference list In these reference lists, only (Aa, Bb, Cc) is matching. But this matching is not stable matching. It is known that there exists a stable matching for complete lists.

Incomplete lists 123 Aaωω Bcab Ccaω 123 aCAΩ bBAC cBCΩ Men’s preference listWomen’s preference list We add new man Ω and new woman ω. Ω is the worst choice for women. ω is the worst choice for men.

Gale-Shapley algorithm The algorithm contains following four steps. – 1. man proposes to his desirable woman one by one. – 2. woman decides whether accept or reject. – 3. If a man is refused, then he remove her name from his preference list. – 4. Repeat the steps above, until every man is accepted by a woman.

Pseudo code of Gale-Shapley algorithm Variables and constants n: number of women = number of men k: number of couples X: suitor χ: woman toward whom the suitor makes advances Ω: (undesirable) imaginary man k=0; all the women are engaged to Ω; while(k < n){ X=(k+1)-st man; while(X != Ω){ x=the best choice remaining on X’s list; if(χ prefers X to her current partner){ engage X and χ; X=preceding partner of χ;} if(X != Ω) withdraw χ from X’s list; } k = k+1; } Output matching ;

γβ Gale-Shapley algorithm Men’s listWomen’s list AB C β α D γ δ 1234 A γβδα B βαγδ C βδαγ D γαδβ 1234 α ABDC β CADB γ CBDA δ BACD Ω α Ω β Ω γ Ω δ

1234 aABDC bCADB cCBDA dBACD 1234 Acbda Bbacd Cbdac Dcadb Gale-Shapley のアルゴリズム Men’s listWomen’s list AB C Dc b a c d

Gale-Shapley algorithm Features ・ The algorithm always finds a stable matching. ・ The matching is optimal solution for men (women). ・ The matching is independent from the order of proposals.

The algorithm can find a stable matching Man A Man Woman Woman a Suppose A is not married to a and if A prefers a to his partner in the matching obtained. Then a has rejected A’s proposal and is married to someone she prefers to A. Then A and a is not blocking pair. Thus the matching is stable.

The matching is optimal solution for men (women) A man can not marry with a woman who ranks higher in his list than his partner. If the women make the advances, then the matching obtained is optimal for women.

Man A Woman a Man A Man B Woman a Woman b If one stable matching contains Aa, and another contains Ab and Ba, then either A prefers b to a and a prefers A to B or A prefers a to b and a prefers B to A.

Man A Woman a Man A Man B Woman a Woman b If one stable matching contains Aa, and another contains Ab and Ba, then either A prefers b to a and a prefers A to B or A prefers a to b and a prefers B to A. Every other stable matching is better for one of the spouses and worse for the other.

There are two stbale matching. One is the (Aa, …), and another is the (Ab, Ba, …). Then it is hold that either A prefers b to a and a prefers A to B, or A prefers a to b and a prefers B to A.

Proof. We prove the situations of A and a can not both worsen in the second matching. We prove that they can not improve for the two at the same time. Notation: bAa ⇒ A prefers b to a. AaB ⇒ a prefers A to B.

A=X 0, a=x 0, b=x 1, and suppose bAa then x 1 X 0 x 0. The matching (Aa, …) is a worse choice for X 0, x 1 marries with X 1 and X 1 x 1 X 0. The matching is better choice for x 1. The matching (Ab, Ba, …) is a worse choice for x 1. X 1 marries with x 2 and x 2 X 1 x 1.

We obtain the sequence X 0 x 0 X 1 x 1 X 2 x 2 … in the matching (Aa, …), X 0 x 1 X 1 x 2 X 2 x 3 … in the matching (Ab, Ba, …) where x k+1 X k x k and X k+1 x k+1 X k for all k ≧ 0. Since the number of person is finite, there exist integers j and k, j <k, such that X j = X k. Let j be the smallest integer having this property and for this j, let k be the smallest integer such that X j = X k and k>j. Then x j = x k.

If j=0 since otherwise X k-1 x k =X k-1 x j would appear in the matching (Ab, Ba, …) as well as X j-1 x j, from which X j-1 =X k-1, contradicting the fact that j is the smallest integer with X j =X k. Thus X k-1 x 0 appears in the matching (Ab, Ba, …). But x 0 =a. Thus X k-1 =B. Given that X k x k X k-1, we have proved AaB.

Number of proposals Worst case O(n 2 ) times (The maximum number of rejection is n(n-1)/2. ) The complexity of the algorithm is O(n 2 ). Best case n times (each man is not rejected. Thus each man’s partner is the really best partner for him. ) Then we estimate the mean number of proposals. We will find an upper bound for the mean number of proposals.

γβ When the algorithm is end? Men’s listWomen’s list AB C β α D γ δ 1234 A γβδα B βαγδ C βδαγ D γαδβ 1234 α ABDC β CADB γ CBDA δ BACD Ωα Ωβ Ωγ Ωδ

We address the order of proposals When the algorithm ends? Woman’s list A 1234 α ABDC β CADB γ CBDA δ C A B D When all women appear in this sequence, we obtain a stable matching. δ, β, δ, β, γ, γ, β, δ, α, γ, δ δ α βδβγβδ 1234 A δβ B βγ C δ D γβδα γ

coupon collector’s problem There are n distinct coupons and that each time one buys a box of detergent one obtains a coupon at random. How many boxes must be bought, on average, to obtain all n coupons? C B C A C B D D Case n=4 { A,B,C,D } →we stop to buy boxes, when we obtain 4 kinds of coupon. Capsuled toy vending machine

mean value q k : the probability that at least k boxes are necessary m: number of coupons that we have. n : number of kinds of coupons Mean number of boxes one must buy to obtain new coupons when he already have m coupons. The mean value of boxes one must buy to obtain all n coupons. q 1 =1, q 2 =m/n, q 3 =(m/n) 2,… q 1 +q 2 +q =1+(m/n)+(m/n)

mean value where H n is the sum of the first n terms of the harmonic series 1+1/2+1/3+ ・・・. H n =ln n+γ+1/(2n)-1/(12n 2 )+ε where 0 < ε < 1/(120n 4 ), γ is Euler’s constant. An upper bound for the mean number E(N) of proposals to obtain a stable matching by Gale-Shapley algorithm is nH n =nln n+O(n).

mean value An upper bound for the mean number E(N) of proposals to obtain a stable matching by Gale-Shapley algorithm is nH n =nln n+O(n). Man can marry with a woman who is ranked ln n in his list on the average.

クロックソリティアのゲーム 52枚のカードを4 枚ずつ、ランダムに 13の山に分ける。 Kが4枚出た時に、 すべてのカードがめ くれていたらゲーム クリア。そうでなけ れば、ゲームオー バー

実装結果

Gale-Shapley アルゴリズムの動作例 明 勇 梅彦 栄治 秋 郁恵 麗 エリエリ 麗 秋 エリエリ エリエリ 麗 エリエリ 麗 秋 勇栄治 勇 梅彦 明 秋 勇 勇明 麗 秋郁恵 明 明 エリエリ 栄治 Matching={( 明, 郁恵 ),( 勇, 秋 ),( 梅彦, 麗 ),( 栄治, エリ )}

Gale-Shapley アルゴリズムとは Stable Marriage Problem に存在する Stable Matching を 求めるアルゴリズム (今回は、男性から告白するアルゴリズムとする) アルゴリズムの内容は次の 3 つの手順からなる 1. 男性は順に 1 人ずつ女性に告白する 2. 女性たちは自らの好みで告白者と付き合うか、 振る 3. 振られた男性は自分のリストから、その女性を 除く この手順を各男性全てが女性と付き合うまで繰り返 す

Experimental study ( 1/2 ) Implementing the Gale-Shapley algorithm window.exe

Experimental study ( 2/2 ) Measurement of the mean of solution of the Gale-Shapley algorithm ・ Pentium D:2.66GHz ・ Memory: 1 Gbyte ・ OS:Windows XP Random number generator : Random Streamer RPG times measurements for n=5,50,75,100 – result nMeasured value log n 100(Measured value - log n)/log n

Structure of stable matchings All stable matchings : (A α, B β, C γ, D δ ), (A α, B β, C δ, C γ ), (A β, B α, C γ, D δ ), (A β, B α, C δ, C γ ), (A β, B δ, C α, D γ ), (A γ, B α, C δ, D β ), (A γ, B δ, C α, D β ) 1234 α CDBA β DCAB γ ABDC δ BACD 1234 A αβγδ B βαδγ C γδαβ D δγβα Men’s listWomen’s list

Structure of stable matchings 1234 α CDBA β DCAB γ ABDC δ BACD 1234 A αβγδ B βαδγ C γδαβ D δγβα Men’s listWomen’s list All stable matchings : ( α, β, γ, δ ), ( α, β, δ, γ ), ( β, α, γ, δ ), ( β, α, δ, γ ), ( β, δ, α, γ ), ( γ, α, δ, β ), ( γ, δ, α, β ) All stable matchings : (A α, B β, C γ, D δ ), (A α, B β, C δ, C γ ), (A β, B α, C γ, D δ ), (A β, B α, C δ, C γ ), (A β, B δ, C α, D γ ), (A γ, B α, C δ, D β ), (A γ, B δ, C α, D β )

Structure of stable matchings 1234 α CDBA β DCAB γ ABDC δ BACD 1234 A αβγδ B βαδγ C γδαβ D δγβα Men’s listWomen’s list All stable matchings : ( α, β, γ, δ ), ( α, β, δ, γ ), ( β, α, γ, δ ), ( β, α, δ, γ ), ( β, δ, α, γ ), ( γ, α, δ, β ), ( γ, δ, α, β ) ( α, β, γ, δ ) ( α, β, δ, γ ) ( β, α, γ, δ ) ( β, α, δ, γ ) ( β, δ, α, γ ) ( γ, α, δ, β ) ( γ, δ, α, β )

Structure of stable matchings ( α, β, γ, δ ) ( α, β, δ, γ ) ( β, α, γ, δ ) ( β, α, δ, γ ) ( β, δ, α, γ ) ( γ, α, δ, β ) ( γ, δ, α, β ) Distributive lattice

Structure of stable matchings Distributive lattice 1234 α CDBA β DCAB γ ABDC δ BACD 1234 A αβγδ B βαδγ C γδαβ D δγβα Men’s listWomen’s list

Scored stable marriage problem Men’s preference listWoman’s preference list A γ : 40 + 5 = 45 How to calculate score A δ,B α,C β,D γ : = 240 1234 A γ 40 β 30 δ 20 α 10 B β 85 α 10 γ5γ5 δ0δ0 C β 50 δ 45 α5α5 γ0γ0 D γ 40 α 30 δ 20 β 10 1234 α A 40 B 30 D 20 C 10 β C 40 A 30 D 20 B 10 γ C 60 B 30 D5D5 A5A5 δ B 50 A 45 C5C5 D0D0 How to calculate score of matching

1234 α A 40 B 30 D 20 C 10 β C 40 A 30 D 20 B 10 γ C 60 B 30 D5D5 A5A5 δ B 50 A 45 C5C5 D0D0 1234 A γ 40 β 30 δ 20 α 10 B β 85 α 10 γ5γ5 δ0δ0 C β 50 δ 45 α5α5 γ0γ0 D γ 40 α 30 δ 20 β 10 Find optimal matching 順位1番2番3番4番 Abbda Bcacd Cbdac Dcadb Men’s preference list Woman’s preference list αβγδ A B C D Assignment problem using Hungarian method Maximum score

What is Hungarian method ? This method can find n matching such that total amount is minimum in n×n matrix. αβγδ A B C D αβγδ A B C D Maximum score 200-score in matrix

αβγδ A B C D Finding optimal matching The matching that be found by Hungarian method αβγδ A B C D Aδ Bβ Cγ DαAδ Bβ Cγ Dα = 270

Case: score is inclined. Men’s preference listWoman’s preference list 1234 A α 100 β0β0 δ0δ0 γ0γ0 B α 100 β0β0 γ0γ0 δ0δ0 C α 100 δ0δ0 β0β0 c0c0 D α 100 γ0γ0 δ0δ0 β0β0 1234 α A 100 B0B0 D0D0 C0C0 β A 100 C0C0 D0D0 B0B0 γ A 100 B0B0 D0D0 C0C0 δ A 100 B0B0 C0C0 D0D0 αβγδ A B 000 C 000 D 000 More than one solution by using Hungarian method A α,Bδ,C β,D γ : 200 A β,B α,Cδ,D γ : 200 A γ,Bδ,C α,D β : 200 ・ Use Gale-Shapley algorithm A α,B β,C δ,D γ : 200

Scored stable marriage problem Apply Hungarian method Apply Gale-Shapley algorithm find stable matching compare the score of Gale-Shapley and the core of Hungarian method. If the score of Gale-Shapley = the core of Hungarian method, then we choose the score of Gale-Shapley

C言語プログラムの実行結果

まとめ 提案したスコア付き安定結婚問題の考察 今後の課題 C言語では、 5×5 の表以内での実装しか行っ ていないので、 n×n で実装する。 ハンガリアン法以外のアルゴリズムを使っ て実装する。 利点: Gale-Shapley のアルゴリズムでは男性 優位または女性優位に解が偏るが、スコア付き で考えるとその偏りがなくなる場合がある。 問題点 : 求めた解(マッチング)に、ブロッ キングペアが存在してしまうことがある。

Further work If the preference list is incomplete and includes tie, finding the maximum stable matching is NP-hard [ Halldorsson et al, 2003] approximation algorithm is developed by Iwama et al, approximation algorithm is developed by Iwama et al, Can we improve the approximation ratio? It is known that lower bound unless P=NP.

Further work Stable roommates problem This problem does not have solution for any preference list. This problem is a generalization of stable marriage problem.

Further work Stable roommates problem 123 ABDC BDAC CABD DABC

Further work Stable roommates problem 123 ABDC BDAC CABD DABC AB, CD AC, BD AD, BC B and D are a blocking pair. A and D are a blocking pair. A and B are a blocking pair. This is no solution for this list.

Gap between original and scored When the solution of Gale-Shapley algorithm and the solution of Hungarian method? Men’s preference listWoman’s preference list δ 1234 A γ 90 β5β5 δ4δ4 α1α1 B β 40 α 30 γ 20 δ 10 C β 51 δ 49 α1α1 γ0γ0 D γ 40 α 39 δ 20 β1β1 1234 α ABDC β CADB γ CBDA δ BACD

Gap between original and scored Men’s preference listWoman’s preference list 1234 A γ 90 β5β5 δ4δ4 α1α1 B β 40 α 30 γ 20 δ 10 C β 51 δ 49 α1α1 γ0γ0 D γ 40 α 39 δ 20 β1β1 1234 α ABDC β CADB γ CBDA δ BACD Stable matching is (A δ, B α, C β D γ ) and the score is =125 The maximum score is 218 and the matching is (A γ, B β, C δ, D α ), ( ). But this matching is unstable, because C and β is a blocking pair. Which is better for men ?

Further reading Please consult Google. Edward G. Thurber, Concerning the maximum number of stable matchings in the stable marriage problem, Discrete Mathematics 248 (2002) 195–219. Jan Eeckhout, On the uniqueness of stable marriage matchings, Economics Letters 69 (2000) 1–8

About the women sequence Suppose a sequence S=α 1 α 2 α 3... α n is obtained by Gale-Shapley algorithm. The partial sequence of S, Each alphabet α k is containd at most m in the partial sequence A of S, A=α 1 α 2 α 3... α m(m+1)/2 where m is a positive integer.

mean value q k : the probability that at least k boxes are necessary m: number of coupons that we have. n : number of kinds of coupons Mean number of boxes one must buy to obtain new coupons when he already have m coupons. q 1 =1, q 2 =m/n, q 3 =(m/n) 2,… q 1 +q 2 +q 3 + ・・・ +q m+1 =1+(m/n)+(m/n) 2 + ・・・ +(m/n) m Can we obtain more strict upper bound of the number of proposals?