Рет қаралды 53,864
Graph/Trees Playlist : • Graph & Trees Course
ALL CP/DSA RESOURCES : linktr.ee/iamluv
FREE COMPETITIVE PROGRAMMING COURSE PLAYLIST : • Competitive Programmin...
In this Video I explain a Disjoint Set Union along with their optimisations like Union by size/rank and path compression
Practice Questions:
www.hackerearth.com/challenge...
cp-algorithms.com/data_struct... (Scroll down on link for questions)
Timestamps:
Explanation: (0:00)
Code: (8:35)
Optimisation, Path Compression and Union by Size : (13:22)
Time Complexity : (23:07)
Be a part of our awesome Community. Join
○ Discord : / discord
○ Telegram : t.me/LuvIsMeYT
You can follow me on below platforms for all the latest updates
○ Instagram : / i._m_.luv
○ Twitter : / luvk1412
○ Linkedin : / luvk1412
Blog(Not frequently updated)
○ Blog : www.codewithluv.in
Hashtags
#dsu #pathcompression #union #graphs