知识卡片
哈密顿环归约用边构件限制路径
从顶点覆盖归约哈密顿环时,原图每条边(u,v)对应一个12顶点构件Γᵤᵥ,两侧各有一条6顶点链。只有[u,v,1]、[u,v,6]、[v,u,1]、[v,u,6]四个端点能连接构件外部。
因此哈密顿环若从u侧入口进入,只能从u侧出口离开:它可以一次走遍12个顶点,也可以只走u侧6个顶点,稍后再从v侧入口到出口走另外6个。对v侧同理;构件不存在把u侧入口接到v侧出口、同时又用另一条不相交路径覆盖其余顶点的走法。
归约随后把同一原顶点关联的构件入口和出口串起来。选择沿u侧穿过Γᵤᵥ就表示用顶点u覆盖边(u,v),沿v侧则表示用v覆盖;两侧都走表示两个端点都入选。三种允许形态正好编码“选u、选v、两者都选”,并排除一条边两端都不选。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第34章 NP完全性 · 查看原书依据
Any hamiltonian cycle of G′ must traverse the edges of Γuv in one of the three ways shown in Figures 34.16(b)–(d). If the cycle enters through vertex [u, v, 1], it must exit through vertex [u, v, 6], and it either visits all 12 of the gadget’s vertices (Figure 34.16(b)) or the six vertices [u, v, 1] through [u, v, 6] (Figure 34.16(c)). In the latter case, the cycle will have to reenter the gadget to visit vertices [v, u, 1] through [v, u, 6].