【发布时间】:2013-02-10 04:57:05
【问题描述】:
众所周知,计算具有最小可能叶数的生成树是 NP 完全的。但我无法计算出这个问题的多项式时间减少到哈密顿路径问题。
我的指数减少:
if(hamiltonian path exists for whole graph)
min leaves = 1;
return;
else
for each vertex of the graph
if(hamiltonian path exists for this graph after removing the vertex and its incident edges)
min leaves = 2;
return;
continue similarly for the graph deleting 2 vertices, 3 vertices, 4vertices,... until you get a minimum spanning tree with some minimum number of leaves.
所以,在最坏的情况下,这个算法总共会产生
(N choose 1) + (N choose 2) + (N choose 3) + ....(N choose N) = 2^N
调用哈密顿路径问题。因此减少是指数的。
请为此问题提出多项式时间缩减建议。
【问题讨论】:
-
computing a spanning tree that has the minimum possible number of trees--> 哈? -
将此问题简化为哈密顿路径并不能证明它是 NP 完全的 - 您确定这是您想要做的简化吗?
-
多项式时间缩减将证明问题是 NP 完全的。但我确信这不是我想要做的减少,因为它减少了指数时间。我正在寻找将此问题的多项式时间缩减为哈密顿路径问题。
-
@NikunjBanka-我很困惑-您知道要证明约束 MST 问题的 NP 完全性,您需要将哈密顿路径减少到约束 MST,而不是相反?我想我不确定您为什么要尝试进行这种减少,因为它不能证明任何关于受约束的 MST。
-
我在家庭作业中被问到这个问题(受约束的 MST 问题是否是 NP 完成的,使用从汉密尔顿路径问题的减少)。谷歌说是的。但我找不到多项式时间缩减。
标签: algorithm graph-theory graph-algorithm minimum-spanning-tree np-complete