Kruskals algorithm | Construct MST

Techdose
Techdose
40.6 هزار بار بازدید - 4 سال پیش - This video explains the kruskals
This video explains the kruskals algorithm to find the minimum cost spanning tree in an undirected weighted and connected graph.This is a greedy algorrithm just like the prims algorithm.However, this algorithm differs from prims algorithm because in kruskals algorithm we can select edges at random and so the MST can grow arbitrarily at any point but in prims algorithm, we pick a starting point and the MST grows in adjacent vertices only.I have explained the working of kruskals algorithm using proper example.We are given a graph and we form the edge list.Then we sort the edge list in non-descending order and then we start iterating for each edge one by one and process all edges.If on including an edge no cycle is formed in MST then we include that edge otherwise we discard it.We repeat the process unless (V-1) edges are included in order to form the MST.I have explained the time complexity of the algorithm at the end of the video.If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :) ======================================================================== Join this channel to get access to perks: youtube.comhttps://www.seevid.ir/fa/result?ytch=UCnxhETjJtTPs37hOZ7vQ88g/join INSTAGRAM : www.instagram.com/surya.pratap.k/ SUPPORT OUR WORK: www.patreon.com/techdose LinkedIn: www.linkedin.com/in/surya-pratap-kahar-47bb01168 WEBSITE: techdose.co.in/ TELEGRAM Channel LINK: t.me/codewithTECHDOSE TELEGRAM Group LINK: t.me/joinchat/SRVOIxWR4sRIVv5eEGI4aQ ======================================================================= USEFUL Videos:- Spanning Tree:    • Spanning Tree | MST | Graph Theory   Prims algorithm:    • Prims algorithm | MST | Code implemen...   Disjoint SET:    • Disjoint Set | UNION and FIND   Disjoint set UNION by RANK and Path Compression:    • Disjoint set UNION by RANK and Path C...  
4 سال پیش در تاریخ 1399/05/12 منتشر شده است.
40,666 بـار بازدید شده
... بیشتر