diff --git a/data_structures/dsu_union_rank.cpp b/data_structures/dsu_union_rank.cpp index 6d8a808d2..4476177db 100644 --- a/data_structures/dsu_union_rank.cpp +++ b/data_structures/dsu_union_rank.cpp @@ -32,9 +32,9 @@ using std::vector; */ class dsu{ private: - vector p; /// depth; /// setSize;/// p; ///< keeps track of the parent of ith element + vector depth; ///< tracks the depth(rank) of i in the tree + vector setSize; ///< size of each chunk(set) public: /** * @brief constructor for initialising all data members