2017算法课.作业(8.19)
来源:互联网 发布:鼎尖软件安卓版 编辑:程序博客网 时间:2024/06/08 17:29
题目:
A ktie is a graph on even number of vertices, say 2n, in which n of the vertices form a clique and the remaining n vectors are connected in a tail that consisits of a path joined to one of the vertices of the clique.Given a graph and a goal g, the Kite problem asks for subgraph which is a kite and which contains 2g nodes.Prove that kite is NP-complete.
解答:可以将团问题归结到kite问题上,若要求图G(V,E)的最大团,类似于8.14,可以在图G中添加|V|个顶点,并将每个新顶点都连向原图中不同的某个顶点,共形成了V条新边,这样就得到了一个新图G',容易看出,在G‘中存在大小为2g的kite,当且仅当存在大小为g的团。
A ktie is a graph on even number of vertices, say 2n, in which n of the vertices form a clique and the remaining n vectors are connected in a tail that consisits of a path joined to one of the vertices of the clique.Given a graph and a goal g, the Kite problem asks for subgraph which is a kite and which contains 2g nodes.Prove that kite is NP-complete.
解答:可以将团问题归结到kite问题上,若要求图G(V,E)的最大团,类似于8.14,可以在图G中添加|V|个顶点,并将每个新顶点都连向原图中不同的某个顶点,共形成了V条新边,这样就得到了一个新图G',容易看出,在G‘中存在大小为2g的kite,当且仅当存在大小为g的团。
阅读全文
0 0
- 2017算法课.作业(8.19)
- 算法课作业
- 算法作业(第二周)
- (作业、进程)调度算法
- BF算法(作业五)
- KMP算法(作业六)
- 算法作业
- 算法作业
- 算法作业
- 算法作业
- 算法作业
- 北大算法分析和复杂性理论-2017算法课第一次作业E:二叉树的操作
- 第一课作业 关于程序算法
- 普林斯顿算法课第五周作业
- 普林斯顿算法课第一周作业
- 普林斯顿算法课第二周作业
- 普林斯顿算法课第三周作业
- 普林斯顿算法课第四周作业
- d3js-v4-map-1最简单的canvas地图
- [LeetCode] 300.Longest Increasing Subsequence
- final、finally和finalize的区别是什么?
- Python学习笔记(六)——函数
- hadoop 伪分布式搭建
- 2017算法课.作业(8.19)
- [高频] 四.基础算法和数据结构II
- C语言运算符优先级列表
- Python学习笔记(七)——模块
- struts2
- 欢迎使用CSDN-markdown编辑器
- 端口通信
- Python学习笔记(八)——文件I/O
- emulator模拟器libGL error: unable to load driver: i965_dri.so