楼主:
cutekid (可爱小孩子)
2016-10-16 18:02:39Maximum Independent Set Greedy Method 如下:
Greedy(G):
S = {}
While G is not empty:
Let v be a node with minimum degree in G // 选拥有最小 degree 的点
S = union(S, {v})
remove v and its neighbors from G // 将选到的点和它的邻居删掉
return S