problemscpp
A collection of my answers to algorithm problems in c++.
|
并查集 更多...
#include <templates.h>
Public 成员函数 | |
UnionFind (int n) | |
unsigned | count () |
int | find (int x) |
int | get_size (int x) |
bool | same (int x, int y) |
void | unite (int x, int y) |
Private 属性 | |
vector< int > | parent |
vector< int > | rank |
vector< int > | size |
并查集
在文件 templates.h 第 91 行定义.
|
explicit |
在文件 templates.cpp 第 478 行定义.
unsigned UnionFind::count | ( | ) |
在文件 templates.cpp 第 518 行定义.
int UnionFind::find | ( | int | x | ) |
在文件 templates.cpp 第 489 行定义.
被这些函数引用 count(), find(), leetcode::process_restricted_friend_requests::Solution::friendRequests(), get_size(), pat::a::a1021::main(), same() , 以及 unite().
int UnionFind::get_size | ( | int | x | ) |
在文件 templates.cpp 第 516 行定义.
被这些函数引用 acwing::acwing837::main().
bool UnionFind::same | ( | int | x, |
int | y | ||
) |
在文件 templates.cpp 第 514 行定义.
引用了 find().
被这些函数引用 acwing::acwing837::main() , 以及 acwing::acwing859::main().
void UnionFind::unite | ( | int | x, |
int | y | ||
) |
在文件 templates.cpp 第 496 行定义.
引用了 find(), parent, rank , 以及 size.
被这些函数引用 leetcode::process_restricted_friend_requests::Solution::friendRequests(), acwing::acwing837::main(), acwing::acwing859::main() , 以及 pat::a::a1021::main().
|
private |
在文件 templates.h 第 93 行定义.
被这些函数引用 UnionFind(), find() , 以及 unite().
|
private |
在文件 templates.h 第 94 行定义.
被这些函数引用 UnionFind() , 以及 unite().
|
private |
在文件 templates.h 第 95 行定义.
被这些函数引用 UnionFind(), count(), get_size() , 以及 unite().