[题解]ADS11 Approximation

1.Suppose ALG is an α-approximation algorithm for an optimization problem Π whose approximation ratio is tight. Then for every ϵ>0 there is no (α−ϵ)-approximation algorithm for Π unless P = NP.
F, 按照我的理解,可能会有近似比更小的算法。

2.As we know there is a 2-approximation algorithm for the Vertex Cover problem. Then we must be able to obtain a 2-approximation algorithm for the Clique problem, since the Clique problem can be polynomially reduced to the Vertex Cover problem.
T, reduce to 就算<=,如果CP<=VC, VC有近似比为2的算法,那么CP也有

3.For the bin-packing problem: let S=∑Si. Which of the following statements is FALSE?

A.The number of bins used by the next-fit heuristic is never more than ⌈2S⌉

B.The number of bins used by the first-fit heuristic is never more than ⌈2S⌉

C.The next-fit heuristic leaves at most one bin less than half full

D.The first-fit heuristic leaves at most one bin less than half full

NF近似比是2,其他的近似比都比2小。Next fit可能有多个半空的bit,因为如果永远往前放,不会回头放之前的,所以是C,而FF会检查之前所有位,因此如果有两个半空的,它们会放在一起。

4.To approximate a maximum spanning tree T of an undirected graph G=(V,E) with distinct edge weights w(u,v) on each edge (u,v)∈E, let’s denote the set of maximum-weight edges incident on each vertex by S. Also let w(E′)=∑​(u,v)∈E​′​​, w(u,v) for any edge set E′. Which of the following statements is TRUE?

A.S=T for any graph G

B.S≠T for any graph G

C.w(T)≥w(S)/2 for any graph G

D.None of the above

C, 题目的意思是,如果把每个点最大权值的边加入一个集合,那么这个集合的权值和最大生成树权值之比是多少。注意,点的最大权值边集合意味着集合里相同的边最多出现一次。

很容易证明,S里面不存在环,因此T一定包含S.所以w(T)>=w(S)

假如存在环,设边为e1,e2,e3,…ej, 点为p1, …pj

由于e1在S中,因此w(e1)>w(ej),由于e2在S中,因此w(e2)>w(e1),…,最后得到的是w(ej)>w(e1),矛盾。

5.Assume that you are a real world Chinese postman, which have learned an awesome course “Advanced Data Structures and Algorithm Analysis” (ADS). Given a 2-dimensional map indicating N positions pi(xi​​ ,y​i) of your post office and all the addresses you must visit, you’d like to find a shortest path starting and finishing both at your post office, and visit all the addresses at least once in the circuit. Fortunately, you have a magic item “Bamboo copter & Hopter” from “Doraemon”, which makes sure that you can fly between two positions using the directed distance (or displacement).

Bamboo.jpg (“Bamboo copter & Hopter”, japan12.com/bamboo-copter-hopter)

However, reviewing the knowledge in the ADS course, it is an NPC problem! Wasting too much time in finding the shortest path is unwise, so you decide to design a 2−approximation algorithm as follows, to achieve an acceptable solution.

Compute a minimum spanning tree T connecting all the addresses.
Regard the post office as the root of T.
Start at the post office.
Visit the addresses in order of a _____ of T.
Finish at the post office.
There are several methods of traversal which can be filled in the blank of the above algorithm. Assume that P≠NP, how many methods of traversal listed below can fulfill the requirement?

Level-Order Traversal
Pre-Order Traversal
Post-Order Traversal

A.0

B.1

C.2

D.3

C,不知道题目再说什么

6.An approximation scheme that runs in O ( n 2 / ϵ ) O(n^2/ϵ) O(n2/ϵ) for any fixed ϵ>0 is a fully polynomial-time approximation scheme.

T, 如果 1 / ϵ 1/\epsilon 1/ϵ也是多项式级别的,那么就算是full

7.An approximation scheme that runs in O ( n 2 3 ϵ ) O(n^23^ϵ) O(n23ϵ) for any fixed ϵ>0 is a polynomial-time approximation scheme.

T, 只要是n是多项式级别的就可以。

8.In the bin packing problem, we are asked to pack a list of items L to the minimum number of bins of capacity 1. For the instance L, let FF(L) denote the number of bins used by the algorithm First Fit. The instance L′ is derived from L by deleting one item from L. Then FF(L​′) is at most of FF(L).

F, 如果是NF则是F, yds说的。

9.For the 0-1 version of the Knapsack problem, if we are greedy on taking the maximum profit or profit density, then the resulting profit must be bounded below by the optimal solution minus the maximum profit.

Popt<Pfrac<Pgre+pmax,最优解一定小于物体可分情况下的解。而物体可分情况下的解,可以看成greedy的解+一部分不完整的物体。不完整的物体权值一定小于最大权值。

(感觉证明有问题)

10.An (1+ϵ)-approximation scheme of time complexity ( n + 1 / ϵ ) 3 (n+1/ϵ)^3 (n+1/ϵ)3 is a PTAS but not an FPTAS.

F

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值