基于势方法分析的更快的支配集算法
1. seq - msc 算法介绍
seq - msc 算法用于解决最小支配集问题,以下是该算法的代码:
Algorithm 2. seq - msc(S, t)
1: choose the largest set S ∈S with t ∈S and ∑e∈S |e| is minimum
2: if |t| ≥3 then
3:
return min(seq - msc(S \ {S} , t), 1 + msc(del(S, S)))
4: else if there exists a quasi - subset R of S then
5:
if R contains an element of frequency two then
6:
return msc(S \ {R})
7:
else
8:
return seq - msc(S \ {R} , t)
9:
end if
10: else if US\M[S] ⊂US then
11:
return 1 + msc(del(S, S))
12: else
13:
return min(msc(S \ M[S]), 1 + msc(del(S, S)))
14: end if
该算法的主要步骤如下:
1. 选择包含目标元素 t 且元素频率之和最小的最大集合 S 。
2. 根据目标元素 t 的大小和集合
超级会员免费看
订阅专栏 解锁全文
1383

被折叠的 条评论
为什么被折叠?



