【发布时间】:2013-04-13 11:45:26
【问题描述】:
我必须找到一种算法来解决教职员工的问题。 我不是要求解决方案(请不要发布任何解决方案),请进一步阅读。
问题的句子:
** Given a graph G = (V, E) find 2 sets S1 and S2 of edges of G such that:
1. S1 ∪ S2 = E
2. S1 ∩ S2 = ∅
3. The 2 subgraphs of G formed by S1 and S2 do not contain triangles (triangle = 3 nodes such that they link together 2 by 2)
在过去的 2 天里,我一直在尝试找到一种算法来解决这个问题,我认为我的方法是正确的。对于之前偶然发现它的任何人:你知道这个问题是否已经在多项式时间内解决了吗? (如果不是,是 NP-complete/NP-hard/NP?)
提前致谢, 约翰
【问题讨论】:
标签: graph geometry complexity-theory bipartite