This topic created in 2031 days ago, the information mentioned may be changed or developed.
请问
quick-find 算法
在 quick-find 算法中,每次 f i n d ( ) 调用只需要访问数组一次,而归并两个分量的 u n i o n ( )操作访问数组的次数在 (N+3) 到 (2N+1) 之间。
quick-union 算法
在最坏情况下,这需要 2N+1 次数组访问
这两个算法的效率是怎么分析出来的