代码搜索:COMPACT
找到约 3,584 项符合「COMPACT」的源代码
代码结果 3,584
www.eeworm.com/read/168218/9932201
out compact.out
Find(1) = 1 Find(2) = 1
Find(3) = 1 Find(4) = 1
Find(5) = 5 Find(6) = 6
www.eeworm.com/read/168218/9932323
cpp compact.cpp
// union/find with weighting and path compaction
#include
int *parent;
bool *root;
void Initialize(int n)
{// One element per set/class/tree.
root = new bool[n+1];
pare
www.eeworm.com/read/168218/9933281
out compact.out
Find(1) = 1 Find(2) = 1
Find(3) = 1 Find(4) = 1
Find(5) = 5 Find(6) = 6
www.eeworm.com/read/168218/9933285
cpp compact.cpp
// union/find with weighting and path compaction
#include
int *parent;
bool *root;
void Initialize(int n)
{// One element per set/class/tree.
root = new bool[n+1];
pare
www.eeworm.com/read/358191/10194265
out compact.out
Find(1) = 1 Find(2) = 1
Find(3) = 1 Find(4) = 1
Find(5) = 5 Find(6) = 6
www.eeworm.com/read/358191/10194337
cpp compact.cpp
// union/find with weighting and path compaction
#include
int *parent;
bool *root;
void Initialize(int n)
{// One element per set/class/tree.
root = new bool[n+1];
pare