当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

南京大学:《计算理论之美》课程教学资源(课件讲稿)Some efficient algorithms for the k-vertex cover problem

资源类别:文库,文档格式:PDF,文档页数:56,文件大小:11.96MB,团购合买
点击下载完整版文档(PDF)

Some efficient algorithms for the k-vertex cover problem Yijia Chen Shanghai Jiao Tong University July 8,2021@Nanjing

Some efficient algorithms for the k-vertex cover problem Yijia Chen Shanghai Jiao Tong University July 8, 2021 @ Nanjing

The goal of this talk 1.Show you an interesting(I hope)problem. 2.Show some simple yet non-trivial algorithms. 3.Show a nontrivial application of linear programming. 4.Present a parallel algorithm using logic and number theory

The goal of this talk 1. Show you an interesting (I hope) problem. 2. Show some simple yet non-trivial algorithms. 3. Show a nontrivial application of linear programming. 4. Present a parallel algorithm using logic and number theory

The CCTV problem CAN WE INSTALL AT MOST 10000 CCTV (CLOSED-CIRCUIT TELEVI- SION)CAMERAS SO THAT EVERY STREET IN NANJING IS COVERED?

The CCTV problem Can we install at most 10000 CCTV (closed-circuit televi￾sion) cameras so that every street in Nanjing is covered?

Modelling the CCTV problem

Modelling the CCTV problem

Modelling the CCTV problem

Modelling the CCTV problem

Vertex cover Definition Let G=(V,E)be a graph.Then a vertex cover is a vertex subset S C V such that for every uv∈E ues or ves

Vertex cover Definition Let G = (V, E) be a graph. Then a vertex cover is a vertex subset S ⊆ V such that for every uv ∈ E u ∈ S or v ∈ S

The main question of this talk FOR EACH FIXED K,WHAT IS THE BEST ALGORITHM TO FIND A VERTEX COVER OF SIZE AT MOST K OR REPORT THERE IS NONE?

The main question of this talk For each fixed k, what is the best algorithm to find a vertex cover of size at most k or report there is none?

The most naive algorithm BRUTEFoRCE(G,k) 1.For each subset ScV with ISlsk 2.if s is a vertex cover of G,then output S and return 3.output NO. The number of its running steps is roughly IG+1

The most naive algorithm BruteForce(G, k) 1. For each subset S ⊆ V with |S| 6 k 2. if S is a vertex cover of G, then output S and return 3. output NO. The number of its running steps is roughly |G| k+1

Another naive algorithm BouNDEDSEARCHTREE(G,k) Rodney G.Downey Michael R.Fellows

Another naive algorithm BoundedSearchTree(G, k) Rodney G. Downey Michael R. Fellows

Another naive algorithm BouNDEDSEARCHTREE(G,k) 1.If k<0 then return NO 2.If G has no edge then return S=0 3.else 4. choose an arbitrary edge uv in G 5 remove,u from G and let Gu be the resulting graph 6. call BOUNDEDSEARCHTREE(Gu,k-1) 7 if it returns a vertex cover Su then return SUfu) 8. remove v from G and let G.be the resulting graph 9 call BOUNDEDSEARCHTREE(Gy,k-1) 10. if it returns a vertex cover S then return SU(v) 11. return NO

Another naive algorithm BoundedSearchTree(G, k) 1. If k < 0 then return NO 2. If G has no edge then return S = ∅ 3. else 4. choose an arbitrary edge uv in G 5. remove u from G and let Gu be the resulting graph 6. call BoundedSearchTree(Gu, k − 1) 7. if it returns a vertex cover Su then return Su ∪ {u} 8. remove v from G and let Gv be the resulting graph 9. call BoundedSearchTree(Gv, k − 1) 10. if it returns a vertex cover Sv then return Sv ∪ {v} 11. return NO

点击下载完整版文档(PDF)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共56页,可试读19页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有