实现实现并查集
实现并查集(Disjoint set或者Union-find set)的完整源码(定义,实现,main函数测试)
#include <stdio.h>
#include <stdlib.h>
#define MAX_SIZE 1000 /**< maximum number of elements in the set */
/**
* @brief Find index of or value in an array
*
* @param [in,out] p array to search an