ImageVerifierCode 换一换
格式:PPTX , 页数:75 ,大小:390.95KB ,
资源ID:14017646      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/14017646.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(算法高级教程3.10.2OnlineBipartiteMatching优质PPT.pptx)为本站会员(b****1)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

算法高级教程3.10.2OnlineBipartiteMatching优质PPT.pptx

1、,Online Bipartite Matching,A matchmaker and n boys are gathered in a room.n girls appear,one at a time.Each girl has a list of boys who are acceptable to her,which she reveals to the matchmaker as she appears.The matchmaker immediately matches the new girl to one of the boys on her list,if any of th

2、em are available.The goal is to maximize the number of matches.,2,Importance of Matching,Resource AllocationSchedulingMemory Management RoutingRobot Motion PlanningExploring an unknown terrainFinding a destinationComputational Finance,Subroutine in many other algorithms.,Given as input a bipartite g

3、raph G=(U,V,E)in which each vertex u U(girls)arrives in online fashion,devise an algorithm that matches u(girl)to one(boy)of its previously unmatched neighbours in V.The matching has to be immediate and is irrevocable,once made.The objective is to maximize the size of the resulting matching.Assume t

4、hat the input graph G has a perfect matchingi.e.a matching of size n.We denote a perfect matching by a function m:#U V.Hence,a c-competitive algorithm must return a matching of size at least cn.,4,Deterministic Algorithm,when u arrives assign it to a some unmatched neighbour.Lemma 3.10.1.The above a

5、lgorithm has a competitive ratio of 1/2.Proof.If a vertex u1 is not present in the resulting matching M,then it does not have an unmatched neighbour,if not,we would have matched u1 to that neighbour.Hence,the resulting matching must be maximal.For every edge u,m(u),either vertex u or m(u)is present

6、in M.So,at least n/2 vertices are matched and hence the algorithm has a competitive ratio of 1/2.,5,Online bipartite matching,V(boys),U(girls),Online bipartite matching,V(boys),U(girls),Online bipartite matching,V(boys),U(girls),Online bipartite matching,V(boys),U(girls),Online bipartite matching,V(

7、boys),U(girls),Online bipartite matching,V(boys),U(girls),Online bipartite matching,V(boys),U(girls),We can prove that any deterministic algorithm cannot do better than the obvious algorithm.An adversary can limit the size of matching to n/2 in the following way:#Let the first n/2 vertices that arri

8、ve have edges to all the vertices in V.Clearly,the adversary can determine the vertices in V that will be matched.Let the next n/2 vertices that arrive contain edges only to those vertices in V which are already matched.The input graph has a perfect matching but the second half of the vertices are n

9、ot matched;#hence our analysis is tight for the deterministic case.,13,Online bipartite matching,n/2,:#n/2:#,V(boys),U(girls),Online bipartite matching,n/2,:#n/2:#,V(boys),U(girls),Online bipartite matching,:#,:#,n/2,V(boys),U(girls),Randomized Algorithm,For each possible input,calculate the expecta

10、tion of the answer and take the worst expected value among all the inputs.In our case,an input instance would be specified by a graph G along with an arrival order.So the input space would contain all possible(G,)pairs.The most natural way to introduce randomness would be to match u to one of the un

11、matched neighbours picked randomly.This algorithm performs better than the deterministic algorithm;#however the improvement is not substantial.,17,Lemma 3.10.2.A randomized algorithm that picks an unmatched neighbour uniformly and randomly has a competitive ratio of at most 1/2+O(logn)/n.Proof.To se

12、e why this is the case,consider the following input.Let u1,.,un U and v1,.,vnV.There is an edge between ui and vi for all i.Every vertex in the first half of U=u1,.,un/2 is connected to every vertex in the second half of V=vn/2,.,vnas shown below:#,18,Online bipartite matching,:#,:#,n/2,n/2,VU,u1,un

13、/2un/2+1,:#,:#,v(boys)(girls),1,vn/2vn/2+1,vnun,Tight instance for the nave randomized algorithm,The vertices arrive in the order of their indices.Intuitively,the algorithm fails to perform well on this input since it matches too many us from the first half to the vs of the second half.The first n/2

14、 vertices from U are definitely in the matching since all of them get at least one unmatched neighbour when they arrive.Each ui from the second half of U can be matched to vi,if vi is not already matched.What is the probability that this happens?#,20,Let us find the expected number of vertices that

15、are matched in the first half of V.When u1 arrives,it can pick either v1 or vn/2,.,vn.So the probability of v1 getting matched is 1/(n/2+1).Similarly,when u2 arrives,the probability that v2 gets matched is:#,21,Similarly,probability of v3 getting matched is less than 1/(n/2 1)and in general a vertex

16、 vi in the first half of V has less than 1/(n/2 i+2)probability of being in the matching.Let Ev be the expected number of vertices from v1,.,vn/2 in the matching.,Hence,less than O(logn)unmatched neighbours are expected to be available to the second half of U,which proves our claim.22,Ranking algorithm,A slightly different randomized algorithm,named RankingKarp,performs much better.The algorithm is as follows:#Ranking()Initialization:#Pick a random permutation(ranking)of the vertices in VFor each u U that arrives:#

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1