Union/find algorithm without union by rank for disjoint-set forests data structure

后端 未结 2 1491
轮回少年
轮回少年 2021-02-05 09:24

Here\'s a breakdown on the union/find algorithm for disjoint set forests on wikipedia:

  • Barebone disjoint-set forests... (O(n))
    • ... with unio
2条回答
  •  终归单人心
    2021-02-05 10:11

    I googled for "without union by rank" and the second link that came up was this one:

    ...We close this section with an analysis of union–find with path compression but without union by rank...

    The union-find datastructure with path compression but without union by rank processes m find and n-1 link operations in time O((m+n) log n)

提交回复
热议问题