Update data_structures/dsu_union_rank.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Aayush Vyas
2021-09-07 07:25:26 +05:30
committed by GitHub
parent c40b4709a2
commit 1884317990

View File

@@ -32,9 +32,9 @@ using std::vector;
*/
class dsu{
private:
vector<uint64_t> p; ///<keeps track of the parent of ith element
vector<uint64_t> depth; ///<tracks the depth(rank) of i in the tree
vector<uint64_t> setSize;///<size of each chunk(set)
vector<uint64_t> p; ///< keeps track of the parent of ith element
vector<uint64_t> depth; ///< tracks the depth(rank) of i in the tree
vector<uint64_t> setSize; ///< size of each chunk(set)
public:
/**
* @brief constructor for initialising all data members