Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
WeightedQuickUnionByHeightUf
C# 클래스 WeightedQuickUnionByHeightUf, Algorithms-4th-Edition-in-Csharp
按照高度加权的 Quick-Union 并查集。
상속:
QuickUnionUf
파일 보기
프로젝트 열기: ikesnowy/Algorithms-4th-Edition-in-Csharp
공개 메소드들
메소드
설명
Union
(
int
p
,
int
q
) :
void
将两个结点所属的连通分量合并。
WeightedQuickUnionByHeightUf
(
int
n
)
新建一个以高度作为判断依据的加权 quick-union 并查集。
메소드 상세
Union()
공개
메소드
将两个结点所属的连通分量合并。
public
Union
(
int
p
,
int
q
) :
void
p
int
需要合并的结点。
q
int
需要合并的另一个结点。
리턴
void
WeightedQuickUnionByHeightUf()
공개
메소드
新建一个以高度作为判断依据的加权 quick-union 并查集。
public
WeightedQuickUnionByHeightUf
(
int
n
)
n
int
新建并查集的大小。