知识卡片

普通读书笔记卡 · 3717

哈密顿环归约用边构件限制路径

理解等级:高级

从顶点覆盖归约哈密顿环时,原图每条边(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、两者都选”,并排除一条边两端都不选。

这张卡片看不懂?

已有反馈 · 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].

    参考来源

    - 位置:《算法导论(第4版)》第34章《NP完全性》(OEBPS/chapter034.xhtml,文本字符[95000,100000))。 - 结论依据:原文§34.5及图34.16明确给出12顶点构件、四个外部连接端点和仅有的三种遍历形态;后文把同一原顶点关联的构件串接,并解释这些路径怎样对应顶点覆盖选择。 - 原始内容: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].