知识卡片

普通读书笔记卡 · 3647.a.1.b.3

匈牙利算法朴素实现为四次方

理解等级:中级

对两侧各n点的完全二分图,朴素匈牙利算法至多增广n次;每次搜索最多n次标号增长,每次扫O(n²)条边,故总时间O(n⁴)。

维护松弛量并避免重建图可改进至O(n³)。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第25章 二分图匹配 · 查看原书依据

      Now, let’s see why the Hungarian algorithm runs in O(n4) time, where |V| = n/2 and |E| = n2 in the original graph G. (Below we outline how to reduce the running time to O(n3).) You can go through the

    参考来源

    - 位置:《算法导论(第4版)》第25章《二分图匹配》(OEBPS/chapter025.xhtml,文本字符[65000,70000))。 - 结论依据:25.3节分解n轮增广、每轮O(n³)搜索,并说明O(n³)优化入口。 - 原始内容:Now, let’s see why the Hungarian algorithm runs in O ( n 4 ) time, where | V | = n /2 and | E | = n 2 in the original graph G . (Below we outline how to reduce the running time to O ( n 3 ).) You can go through the