Union Find Algorithm | Disjoint Set | Data Structure

preview_player
Показать описание
Union-find is a data structure that can be used to detect cycles in graphs. The basic idea is to start with each vertex in its own set. Then, for each edge in the graph, we check if the two vertices of the edge are in the same set. If they are in the same set, then there is a cycle in the graph. Otherwise, we merge the two sets together.
In this video, you will learn how union-find works in more detail. You will also see how to implement union-find in code.
I hope this is helpful!

#disjointsets #unionfind #disjointsets #unionfindalgorithm #union #unionfindfinddata #datastructures #unionbyrank #kruskalalgorithm #dsa #javafindandunion #algorithms #tree #treeindsa #graph #graphalgorithms #coding #computerscience #education #learning #path #basicsstrong
Рекомендации по теме