【发布时间】:2021-01-06 20:16:53
【问题描述】:
我正在学习 Blossom 算法,但我很困惑为什么你不能简单地做我想到的这种贪婪的方法。谁有反例?
While no more vertices:
Choose the vertex (V) with the least number of edges
Considering vertices connected to that vertex V, choose one with the least number of edges.
Create this edge and don't consider these two vertices anymore.
Reduce the count of edges on each vertex accordingly. Repeat
【问题讨论】:
标签: algorithm graph-theory graph-algorithm