ผลต่างระหว่างรุ่นของ "01204512/weight bipartite matching"
ไปยังการนำทาง
ไปยังการค้นหา
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
แถว 1: | แถว 1: | ||
: ''เอกสารนี้เป็นส่วนหนึ่งของวิชา [[01204512]]'' | : ''เอกสารนี้เป็นส่วนหนึ่งของวิชา [[01204512]]'' | ||
+ | |||
+ | ==Primal และ Dual linear programs== | ||
เราจะพิจารณาปัญหา maximum weighted perfect bipartite matching ให้ bipartite graph <math>G = (U\cup V,E)</math> ที่มีน้ำหนัก <math>w(u,v)</math> บนเส้นเชื่อม <math>(u,v)\in E</math> | เราจะพิจารณาปัญหา maximum weighted perfect bipartite matching ให้ bipartite graph <math>G = (U\cup V,E)</math> ที่มีน้ำหนัก <math>w(u,v)</math> บนเส้นเชื่อม <math>(u,v)\in E</math> | ||
แถว 23: | แถว 25: | ||
* Subject to: | * Subject to: | ||
** for all <math>(u,v)\in E</math>, <math>a(u)+b(v)\geq w(u,v)</math> | ** for all <math>(u,v)\in E</math>, <math>a(u)+b(v)\geq w(u,v)</math> | ||
+ | |||
+ | ==Complementary slackness== | ||
+ | |||
+ | ==Primal-dual algorithms== |
รุ่นแก้ไขเมื่อ 04:35, 8 สิงหาคม 2555
- เอกสารนี้เป็นส่วนหนึ่งของวิชา 01204512
Primal และ Dual linear programs
เราจะพิจารณาปัญหา maximum weighted perfect bipartite matching ให้ bipartite graph ที่มีน้ำหนัก บนเส้นเชื่อม
เราเขียน integer program ของปัญหาดังกล่าวได้ดังนี้ เราจะให้ตัวแปร มีค่าเป็น 1 ถ้าเราเลือกเส้นเชื่อมนั้นใน matching และเป็น 0 ถ้าเราไม่ได้เลือก
- Maximize
- Subject to:
- for all ,
- for all ,
- for all ,
เราจะ relax ปัญหาให้เป็น linear program โดยเปลี่ยนเงื่อนไขสุดท้ายเป็น
- For all ,
จาก linear program ดังกล่าว เราสามารถหา dual program ได้ โดยสร้างตัวแปร สำหรับทุก ๆ (เงื่อนไขแรก) และตัวแปร สำหรับทุก ๆ (เงื่อนไขที่สอง) เนื่องจากเงื่อนไขเป็นสมการ (ไม่ใช่ อสมการ) ตัวแปร dual ทั้งสองจะเป็นแบบไม่ระบุขอบเขต
ด้านล่างเป็น dual linear program
- Minimize
- Subject to:
- for all ,