个人记录
并查集的复杂度证明
n个点,m次 union 或 find 操作,有路径压缩和按高度(秩)合并的并查集,复杂度为(n + m)log^* n,其中log^* n表示不断n leftarrow log_2 n直到n变为0需要几次(据说这个值也被叫做α(n))。 我们默认在所有操作开始前,有n个互不相交…
53793
这个家伙很鸽,什么也没留下
n个点,m次 union 或 find 操作,有路径压缩和按高度(秩)合并的并查集,复杂度为(n + m)log^* n,其中log^* n表示不断n leftarrow log_2 n直到n变为0需要几次(据说这个值也被叫做α(n))。 我们默认在所有操作开始前,有n个互不相交…
Moo Moo Moooooo Earned Degrees Postdoctoral Instructor in Applied Mathematics, Department of Mathematics, Massachusetts Institute of Technol…
已经到底了