Lec 23 Prims Algorithm
NPTEL - Indian Institute of Science, Bengaluru · 2,701 words · 14 min read · EN

Below is the complete, readable transcript of Lec 23 Prims Algorithm by NPTEL - Indian Institute of Science, Bengaluru on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
namaskara in this session We Begin our discussions on algorithms for finding minimum spanning trees in the past sessions we have seen the algorithms for single Source shortest path problem and all pair shortest path problem they were all working on directed graphs all our minimum spanning tree algorithms are going to work on undirected
unconnected graphs so let GB a connected undirected graph this is Edge weighted each Edge has got a weight and weight of an edge is denoted by W of e as usual W of e could be arbitrary it could be positive negative zero any value we put no restriction on uh the weight and the weights are
arbitrary real numbers for all practical purposes we can take them to be arbitary integers your tree is a connected acyclic graph the basic definition of a tree a tree is said to be a spanning tree for a graph if vertex sets are identical you can see that V and V Dash the vertex set is same
the Ed set is a subset of e vertex set is same so you are given a G let us say A B C D E F let's say this is the graph G with the same set I'm going to use a subset of edges to build the tree okay so for example at a I can
connect with b b with c b with e b with d e with f these edges this is a subset of edges therefore this is a spanning tree you can see that edges of te are edges of G so it is a spanning tree now weight of a spanning tree how do we Define a weight or what is known
as the cost of a spanning tree is some of the weights of the edges found in that uh tree add all the edge weights you to get the cost of the spanning tree minimum cost spanning tree usual definition there may be several spanning trees we are interested in that spanning tree which has got a minimum cost so
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.