Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在图中找到不相交集的数量,G然后删除图的一些顶点G并制作图G',我想在其中找到不相交集的数量G',是否有任何好的算法不做与G'我们一样的事情到G?
G
G'
我建议以相反的顺序执行此操作。
我的意思是:
反向顺序更好的原因是因为您只需要在步骤 2 中访问新顶点,因此您最终不会为每个新图重复大量工作。