I did not understand what difference will it make.
How connecting smaller component with the bigger one, optimize the union operation and vice versa?
Please explain.
Union by rank optimisation
Hi @anuragdeol2017
I suggest u to go through the video lectures once again as sir has already explained everything over there… it would be difficult to explain everything over here…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
I watched the lecture again. But still did not get, how connecting smaller component with larger, optimize the union operation. Please explain me that.