gpt4 book ai didi

algorithm - 简单图 |V|= 10^6,度数 4 : Maximum Independent Subset?

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:38:21 27 4
gpt4 key购买 nike

给你一个具有 100 万个顶点的最大度数为 4 的简单图。

我们想找到一个最大独立子集。

一般情况下是NP难的。

度数最大为 4 的事实是否提供了计算它的有效解决方案?

最佳答案

进一步阅读维基百科页面,我发现了这个主题:

For instance, for sparse graphs (graphs in which the number of edges is at most a constant times the number of vertices in any subgraph), the maximum clique has bounded size and may be found exactly in linear time;[6] however, for the same classes of graphs, or even for the more restricted class of bounded degree graphs, finding the maximum independent set is MAXSNP-complete, implying that, for some constant c (depending on the degree) it is NP-hard to find an approximate solution that comes within a factor of c of the optimum.[7]

你的情况是有界度的情况,所以从这个片段来看,你的更严格的版本仍然是 NP-hard。

关于algorithm - 简单图 |V|= 10^6,度数 4 : Maximum Independent Subset?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11782203/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com