The stable crews problem
上传者:冯晓刚|上传时间:2015-05-07|密次下载
The stable crews problem
内容需要下载文档才能查看 内容需要下载文档才能查看
DiscreteAppliedMathematics140(2004)1–
内容需要下载文档才能查看http://wendang.chazidian.com/locate/dam
Thestablecrewsproblem??
KatarÃ??naCechlÃarovÃaa;?,SoÄnaFerkovÃab
ÄarikUniversity,JesennÃofMathematics,FacultyofScience,P.J.SafÃa5,04154KoÄsice,SlovakiabTatraBanka,a.s.,SoftwareDevelopmentDepartment,ITDivision,HodÄzovonÃam.,81421Bratislava,SlovakiaaInstitute
Received27November2001;receivedinrevisedform13February2003;accepted26May2003Abstract
Inthispapertheclassicalstableroommatesproblemisgeneralizedtosituationswhenthetwopartnersinapairperformdi??erentroles.Weproposeane??cientalgorithmtodecidetheexistenceofastablematchinginthisproblem.?2003ElsevierB.V.Allrightsreserved.
MSC:90C12;68Q25
Keywords:Thestableroommatesproblem;Thestablecrewsproblem;Polynomialalgorithms
1.Introduction
Theclassicalstableroommatesproblem(SRPforshort)introducedin[1]dealswithsituationswhenasetofparticipants,saystudents,hastobepartitionedintopairs,i.e.eachstudenthastobeassignedaroommate.Inthismodelitissupposedthatallthestudentshaveclearpreferencesovertheirprospectiveroommatesandthataparticipant’ssatisfactionwithaparticularmatchingisbasedsolelyontheidentityofhisroommate.Providedtherearenotwoparticipantswhoprefereachothertotheirpartnersinaparticularmatching,thenthematchingiscalledstable.Insomecasesasimplepartitionofpeopleintopairsisnotanappropriatemodel.Imagineagroupofpilots,whohavetobepartitionedintotwo-personaeroplanecrews.Inacrew,say,onepilotisthecaptainandtheotherthenavigator.ItisnaturaltoThisworkwassupportedbytheSlovakAgencyforScience,“CombinatorialStructuresandComplexityofAlgorithms”,1/0425/03.?Correspondingauthor.E-mailaddress:cechlarova@science.upjs.sk(K.CechlÃarovÃa).
0166-218X/$-seefrontmatter?2003ElsevierB.V.Allrightsreserved.doi:10.1016/j.dam.2003.05.003??
2K.CechlÃarovÃa,S.FerkovÃa/DiscreteAppliedMathematics140(2004)1–17
expectthatapilot’sevaluationofacrewdependsnotonlyontheidentityofhispartner,butalsoonthedistributionoftheroles.Forexample,pilotimaylikepilotjasanavigator,butconsiderhimtobequiteapoorcaptain.Inthispaper,weproposetomodelsuchsituationsbyallowingeachparticipantitoincludeinhispreferencelisttwocopiesofeveryotherparticipantj,representingthetwopossiblerolesjcanperforminacrewconsistingofiandj.Weshowthatour‘stablecrewsproblem’(SCPforshort)isageneralizationofthestableroommatesproblem.Further,ifthepreferencesofparticipantsarestrict,itispossibletodecidetheexistenceofastablematchingbyapolynomialalgorithmthatisanextensionofIrving’sclassicalstableroommatesalgorithm[2,3].InSection2,wedeÿneformallythestablecrewsproblemandintroducetheessentialterminologyusedinthepaper.Section3isdevotedtotherelationbetweentheSRPandtheSCP.ThestablecrewsalgorithmisderivedinSection4.Finally,Section5summarizestheresultsandoutlinespossibletopicsforfutureresearch.
2.Deÿnitionsandnotation
Nisthesetofparticipantsandwesupposethat|N|=niseven.ThesetN×{1;2}willrepresenttheparticipantswithassignedroles.Anelement[i;t]∈N×{1;2}willusuallybedenotedbyit.Foreachparticipanti∈Nthereisacomplete,re exiveandtransitivepreferencerelationdeÿnedonasubsetof(N\{i})×{1;2}denotedby??i.Ifat??ibs,thenwesaythatparticipantiprefersparticipantainrolettoparticipantbinroles.Ifat??ibsandbs??iat,thenwesaythatparticipantiisindi??erentbetweenparticipantsa;bintherespectiverolesandweshallwriteat?ibs.Ifat??ibsandbs??iatdoesnothold,thenparticipantistrictlyprefersparticipantainrolettoparticipantbinrolesandweshallwriteat??ibs.Thepreferencerelationofparticipanti∈NwillberepresentedbyanorderedpreferencelistdenotedbyP(i).WesaythatparticipantjinroletisacceptableforparticipantiifjtappearsinP(i).Otherwise,jtisunacceptablefori.(Notethatjinrole3?tmaystillbeacceptablefori.)Ann-tupleofpreferencelistsofallparticipantsfromNwillbecalledapreferenceproÿleanddenotedbyP.
Deÿnition1.Aninstanceofthestablecrewsproblemisapair{N;P}.
Deÿnition2.Foragiveninstance{N;P}oftheSCP,afunction??:N→N×{1;2}willbecalledamatching,ifforalli;j∈Nandt∈{1;2}thefollowingconditionsarefulÿlled:
(i)??(i)∈P(i),(ii)if??(i)=jt,thenj=i,(iii)??(i)=jt???(j)=i3?t.
If??(i)=j2(or,equivalently,??(j)=i1)weshallwrite,withsomeabuseofnotation,(i1;j2)∈??.
K.CechlÃarovÃa,S.FerkovÃa/DiscreteAppliedMathematics140(2004)1–173
Deÿnition3.Apair(i1;j2)∈[N×{1;2}]2iscalledablockingpairforamatching??ifj2??i??(i)andi1??j??(j).Amatchingiscalledstableifitisfreeofblockingpairs.Apair(i1;j2)willbecalledastablepairifthereexistsastablematching??suchthat(i1;j2)∈??.
Example1.ConsiderthefollowingpreferenceproÿleforthesetofparticipantsN={a;b;c;d}:
P(a)
P(b)
P(c)===b1;b2;d2;c1;c2;d1;a2;d1;c2;d2;a1;a2;b2;b1;a1;d1;d2;
P(d)=b1;a1;c1:
Here,forexample,theÿrstchoiceofparticipantbisparticipantainthesecondrole,hissecondchoiceisparticipantdintheÿrstrole,histhirdchoiceparticipantcinthesecondrole,etc.Noticethatb’sÿrstchoiceisparticipantainthesecondrolewhileb’slastchoiceisparticipantainÿrstrole;alsocintheÿrstroleisunacceptableforb.Noticealsothatthepair(a1;b2)couldneverbeastablepair,sinceitwouldalwaysbeblockedby(a2;b1)(theparticipantswouldsimplyswitchtheirrolesinacrew).
3.Stablecrewsgeneralizestableroommates
Theorem4.ForeveryinstanceIoftheSRPwithnparticipantsthereexistsaninstanceI??oftheSCPwithnparticipantssuchthateverystablematchingofIcorrespondstoastablematchingofI??andviceversa.
Proof.SupposethatI=(N;P)isaninstanceoftheSRP.Letusdeÿneanarbitrarystrictlinearordering onNanddeÿneaninstanceI??=(N;P??)oftheSCPinthefollowingway:Foreachx∈Nreplaceeachparticipanty∈P(x)bytwoconsecutivecopiesofyinordery1;y2ify xandinordery2;y1otherwise.Let??beastablematchingforI.Letusdeÿneamatching????forI??asfollows:if{x;y}∈??inIandx y,then(x1;y2)∈????.Clearly,????isamatchingforI??andweshowthatitisstableaswell.First,??(x)∈P(x)foreachx,henceduetotheconstructionofP??and????wehave????(x)∈P??(x).Nowsupposethatapair(u1;v2)blocks????.Thismeansthat????(u)?uv2and????(v)?vu1.Letusconsiderthreepossiblecases:
(1)????(u)=v1and????(v)=u2.Then????(u)?uvtand????(v)?vutforbotht=1;2inP??.Butthenv??u??(u)andu??v??(v)inP,whichimpliesthatthepair{u;v}blocks??inI.Acontradiction.(2)????(u)=v1and????(v)=u2or????(u)=v1and????(v)=u2inI??.Thiscontradictsthedeÿnitionofamatching.
4K.CechlÃarovÃa,S.FerkovÃa/DiscreteAppliedMathematics140(2004)1–17
(3)????(u)=v1and????(v)=u2.Sincev2??u????(u)=v1andu1??v????(v)=u2,wehaveu v.But,thedeÿnitionof????implies(u1;v2)∈????,acontradiction.
Toprovetheconverseimplication,letusdeÿneforastablematching????inI??amatching??inIasfollows:if(x1;y2)∈????inI??(noticethatinthiscase(y1;x2)isnotastablepairinI??),then{x;y}∈??inI.Obviously,??isamatchingforI.Nowsupposethat??isnotstable,i.e.,thereexistsablockingpair{u;v}for??.Then??(u)?uvand??(v)?vuandso??(u)t?uvsand??(v)t?vusfort;s=1;2whichimpliesthat????isnotstable,acontradiction.
AconverseofTheorem4isnottrue,i.e.thereareinstancesoftheSCPforwhichitisnotclearhowtodeÿnea‘corresponding’instanceoftheSRP(seeExample1);orthiscorrespondinginstanceisquitenatural,buttheSCP-matchingsdonotleadunambiguouslytoSRP-matchings,asisillustratedbythefollowingexample.
Example2.ConsiderthefollowingpreferenceproÿlesfortheSCPwithtwopartici-pantsa;b.
P1:P(a)=b1,P(b)=a1.P2:P(a)=b1;b2,P(b)=a2;a1.P3:P(a)=b1;b2,P(b)=a1;a2.
Obviously,toallthreepreferenceproÿlesonlyonepreferenceproÿle
P:P(a)=b;
P(b)=a
fortheSRPcanbeassigned;givingauniquestablematching??={a;b}.Nevertheless,P1doesnotadmitanymatching,forP2thereisauniquestablematching??2=??{(b1;a2)},whileinP3therearetwostablematchings??3={(b1;a2)}and??3={(a1;b2)}.
4.Thestablecrewsalgorithm
InthissectionwealwaysconsideraninstanceoftheSCPwithstrictpreferences.ThealgorithmdescribedinthissectionisanextensionofIrving’sclassicalStableRoommatesAlgorithm,see[3,2].Thereforeletusnowrecallthisalgorithminbrief.TheStableRoommatesAlgorithmstartswithaso-calledconsistentpreferenceproÿle(apreferenceproÿleisconsistent,ifforeachpairofparticipantsx;y∈N:x∈P(y)ifandonlyify∈P(x))anditconsistsoftwophases.Phase1isbasedonasequenceofproposals.Afreeparticipant,sayx,proposestotheÿrstparticipantinhislist,sayy.Asaresult,participantxbecomessemiengagedtoyandydeletesalltheparticipantsworsethanxfromhispreferencelist.Phase1terminateswhensomepreferencelistbecomesempty(thenthegiveninstanceoftheSRPhasnostablesolution)orwhentherearenomorefreeparticipantsleft.Ifonterminationeverypreferencelistcontainsjustoneentry,thenthereducedproÿleconstitutesastablesolution.Otherwise,thealgorithmproceedswithPhase2.
K.CechlÃarovÃa,S.FerkovÃa/DiscreteAppliedMathematics140(2004)1–175
InPhase2pairsofparticipantsarefurtherdeletedfromtheproÿlebymeansofrotationelimination.(Thenotionofarotationwillbeexplainedlater.)TheterminationconditionsforPhase2areidenticaltothoseforPhase1.DuetothefactthattheSCP,incontrasttotheSRP,considersparticipantsinroles,weneedtoincorporatecertainmodiÿcationsandrevisionstoIrving’soriginalalgo-rithm:
(1)Werequireastrictlyconsistentproÿleastheinputtothealgorithm.(2)Phase1is,apartfromtechnicaldetails,identicalwithPhase1ofIrving’salgorithm.(3)Phase2isanalogoustoIrving’sPhase2,butweintroduceanewelement,calledthedoublefavouriteelimination.
Everyproÿlegeneratedduringtheexecutionofthealgorithmwillbereferredtoasareducedproÿle.ForagivenreducedpreferenceproÿleTandaparticipantx,theÿrst,thesecondandthelastparticipantintherespectiverolesinx’spreferencelistPT(x)willbedenotedbyfT(x);sT(x)andlT(x),respectively.(Iftheproÿleisclearfromthecontext,thenthesubscriptsindicatingtheproÿlecanbeomitted.)
4.1.Strictconsistency
ThenotionofstrictconsistencyisageneralizationofconsistencydeÿnedfortheSRP.
Deÿnition5.Let{N;P}beaninstanceoftheSCP.WesaythatapreferenceproÿlePisstrictlyconsistent,ifforallparticipantsx;y∈Nandt∈{1;2}thefollowingholds:(i)xt∈P(y)ifandonlyify3?t∈P(x).(ii)ifyt;y3?t∈P(x)andyt??xy3?t,thenxt??yx3?t.
Thesecondconditionisimpliedbytheconsiderationthatifyt??xy3?t,andx3?t??yxt,thenthepair(xt;y3?t)isalwaysblockedbythepair(yt;x3?t).Weshallsupposethattheinputpreferenceproÿleisstrictlyconsistent(whichisotherwisetrivialtoachievebyappropriatedeletions).Inthealgorithmeverydeletion,e.g.deletionofxtfromP(y),alwaysmeansdeletionofthepair(xt;y3?t),i.e.y3?tisalsodeletedfromP(x)thuspreservingstrictconsistency.
Example3.Considertheinstance{N;P}oftheSCPwiththesetofparticipantsN={a;b;c;d;e;f}andthepreferenceproÿleP:
P(a)
P(b)
P(c)
P(d)=d1;f2;b1;d2;b2;e1;e2;f1,=c1;c2;a1;e1;e2;a2;d1;f2,==d2;e2;b1;e1;f1;b2,b2;f1;c1;a2;e1;f2;e2,
下载文档
热门试卷
- 2016年四川省内江市中考化学试卷
- 广西钦州市高新区2017届高三11月月考政治试卷
- 浙江省湖州市2016-2017学年高一上学期期中考试政治试卷
- 浙江省湖州市2016-2017学年高二上学期期中考试政治试卷
- 辽宁省铁岭市协作体2017届高三上学期第三次联考政治试卷
- 广西钦州市钦州港区2016-2017学年高二11月月考政治试卷
- 广西钦州市钦州港区2017届高三11月月考政治试卷
- 广西钦州市钦州港区2016-2017学年高一11月月考政治试卷
- 广西钦州市高新区2016-2017学年高二11月月考政治试卷
- 广西钦州市高新区2016-2017学年高一11月月考政治试卷
- 山东省滨州市三校2017届第一学期阶段测试初三英语试题
- 四川省成都七中2017届高三一诊模拟考试文科综合试卷
- 2017届普通高等学校招生全国统一考试模拟试题(附答案)
- 重庆市永川中学高2017级上期12月月考语文试题
- 江西宜春三中2017届高三第一学期第二次月考文科综合试题
- 内蒙古赤峰二中2017届高三上学期第三次月考英语试题
- 2017年六年级(上)数学期末考试卷
- 2017人教版小学英语三年级上期末笔试题
- 江苏省常州西藏民族中学2016-2017学年九年级思想品德第一学期第二次阶段测试试卷
- 重庆市九龙坡区七校2016-2017学年上期八年级素质测查(二)语文学科试题卷
- 江苏省无锡市钱桥中学2016年12月八年级语文阶段性测试卷
- 江苏省无锡市钱桥中学2016-2017学年七年级英语12月阶段检测试卷
- 山东省邹城市第八中学2016-2017学年八年级12月物理第4章试题(无答案)
- 【人教版】河北省2015-2016学年度九年级上期末语文试题卷(附答案)
- 四川省简阳市阳安中学2016年12月高二月考英语试卷
- 四川省成都龙泉中学高三上学期2016年12月月考试题文科综合能力测试
- 安徽省滁州中学2016—2017学年度第一学期12月月考高三英语试卷
- 山东省武城县第二中学2016.12高一年级上学期第二次月考历史试题(必修一第四、五单元)
- 福建省四地六校联考2016-2017学年上学期第三次月考高三化学试卷
- 甘肃省武威第二十三中学2016—2017学年度八年级第一学期12月月考生物试卷
网友关注
- 教资国考:结构化面试押题模拟题十三
- 教资国考:结构化面试押题模拟题二十二
- 教师资格国考幼儿《综合素质》高频考点及考题模拟题(十七)
- 教师资格国考幼儿《综合素质》高频考点及考题模拟题(九)
- 教资国考:结构化面试押题模拟题六
- 2014年教师资格证考试面试模拟题全面解析三
- 2012年教师面试指导:面试问题模拟题一
- 2014年教师资格证考试面试模拟题全面解析二
- 教资国考:结构化面试押题模拟题二十五
- 教师资格国考幼儿《综合素质》高频考点及考题模拟题(十三)
- 教资国考:结构化面试押题模拟题二十六
- 教师资格考试面试问题模拟题:做班主任吃亏吗
- 教资国考:结构化面试押题模拟题十七
- 2012年教师面试指导:面试问题模拟题三
- 教师资格国考幼儿《综合素质》高频考点及考题模拟题(十四)
- 教资国考:结构化面试押题模拟题十九
- 2012年教师面试指导:面试问题模拟题二
- 2014年教师资格证考试面试模拟题全面解析七
- 教资国考:结构化面试押题模拟题二十
- 教师资格国考幼儿《综合素质》高频考点及考题模拟题(七)
- 教资国考:结构化面试押题模拟题十二
- 教资国考:结构化面试押题模拟题九
- 教资国考:结构化面试押题模拟题十四
- 教资国考:结构化面试押题模拟题八
- 教资国考:结构化面试押题模拟题十
- 教资国考:结构化面试押题模拟题十一
- 教资国考:结构化面试押题模拟题十八
- 教资国考:结构化面试押题模拟题二
- 教资国考:结构化面试押题模拟题二十七
- 教资国考:结构化面试押题模拟题二十一
网友关注视频
- 冀教版英语四年级下册第二课
- 第8课 对称剪纸_第一课时(二等奖)(沪书画版二年级上册)_T3784187
- 外研版英语三起5年级下册(14版)Module3 Unit1
- 冀教版小学数学二年级下册1
- 外研版英语三起5年级下册(14版)Module3 Unit2
- 沪教版牛津小学英语(深圳用) 五年级下册 Unit 12
- 北师大版数学 四年级下册 第三单元 第二节 小数点搬家
- 第五单元 民族艺术的瑰宝_16. 形形色色的民族乐器_第一课时(岭南版六年级上册)_T3751175
- 北师大版数学四年级下册第三单元第四节街心广场
- 冀教版小学数学二年级下册第二单元《余数和除数的关系》
- 冀教版小学数学二年级下册第二周第2课时《我们的测量》宝丰街小学庞志荣.mp4
- 沪教版牛津小学英语(深圳用) 四年级下册 Unit 4
- 苏科版数学 八年级下册 第八章第二节 可能性的大小
- 【部编】人教版语文七年级下册《泊秦淮》优质课教学视频+PPT课件+教案,辽宁省
- 【获奖】科粤版初三九年级化学下册第七章7.3浓稀的表示
- 【部编】人教版语文七年级下册《泊秦淮》优质课教学视频+PPT课件+教案,天津市
- 人教版历史八年级下册第一课《中华人民共和国成立》
- 第五单元 民族艺术的瑰宝_16. 形形色色的民族乐器_第一课时(岭南版六年级上册)_T1406126
- 【部编】人教版语文七年级下册《逢入京使》优质课教学视频+PPT课件+教案,辽宁省
- 苏科版数学七年级下册7.2《探索平行线的性质》
- 三年级英语单词记忆下册(沪教版)第一二单元复习
- 苏科版数学八年级下册9.2《中心对称和中心对称图形》
- 冀教版英语五年级下册第二课课程解读
- 沪教版八年级下册数学练习册21.3(2)分式方程P15
- 8.练习八_第一课时(特等奖)(苏教版三年级上册)_T142692
- 冀教版英语三年级下册第二课
- 【部编】人教版语文七年级下册《逢入京使》优质课教学视频+PPT课件+教案,安徽省
- 【部编】人教版语文七年级下册《过松源晨炊漆公店(其五)》优质课教学视频+PPT课件+教案,江苏省
- 六年级英语下册上海牛津版教材讲解 U1单词
- 二次函数求实际问题中的最值_第一课时(特等奖)(冀教版九年级下册)_T144339
精品推荐
- 2016-2017学年高一语文人教版必修一+模块学业水平检测试题(含答案)
- 广西钦州市高新区2017届高三11月月考政治试卷
- 浙江省湖州市2016-2017学年高一上学期期中考试政治试卷
- 浙江省湖州市2016-2017学年高二上学期期中考试政治试卷
- 辽宁省铁岭市协作体2017届高三上学期第三次联考政治试卷
- 广西钦州市钦州港区2016-2017学年高二11月月考政治试卷
- 广西钦州市钦州港区2017届高三11月月考政治试卷
- 广西钦州市钦州港区2016-2017学年高一11月月考政治试卷
- 广西钦州市高新区2016-2017学年高二11月月考政治试卷
- 广西钦州市高新区2016-2017学年高一11月月考政治试卷
分类导航
- 互联网
- 电脑基础知识
- 计算机软件及应用
- 计算机硬件及网络
- 计算机应用/办公自动化
- .NET
- 数据结构与算法
- Java
- SEO
- C/C++资料
- linux/Unix相关
- 手机开发
- UML理论/建模
- 并行计算/云计算
- 嵌入式开发
- windows相关
- 软件工程
- 管理信息系统
- 开发文档
- 图形图像
- 网络与通信
- 网络信息安全
- 电子支付
- Labview
- matlab
- 网络资源
- Python
- Delphi/Perl
- 评测
- Flash/Flex
- CSS/Script
- 计算机原理
- PHP资料
- 数据挖掘与模式识别
- Web服务
- 数据库
- Visual Basic
- 电子商务
- 服务器
- 搜索引擎优化
- 存储
- 架构
- 行业软件
- 人工智能
- 计算机辅助设计
- 多媒体
- 软件测试
- 计算机硬件与维护
- 网站策划/UE
- 网页设计/UI
- 网吧管理