From 188431799093fca0c5d065d88576d0bda7667ed0 Mon Sep 17 00:00:00 2001 From: Aayush Vyas <70998175+AayushVyasKIIT@users.noreply.github.com> Date: Tue, 7 Sep 2021 07:25:26 +0530 Subject: [PATCH] Update data_structures/dsu_union_rank.cpp Co-authored-by: David Leal --- data_structures/dsu_union_rank.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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