Prim's Algorithm: Minimal Spanning Tree

  Рет қаралды 303,048

Barry Brown

Barry Brown

Күн бұрын

Пікірлер: 169
@abhichakladar5279
@abhichakladar5279 5 жыл бұрын
This was so confusing the way my prof explained in class, yet the way you explained it in this video I got it in 2 minutes, and now I have that part of the final down. Thank you.
@PanneerYuvaraja
@PanneerYuvaraja 10 жыл бұрын
I have kept watching many videos on youtube , but this was the best !! Keep doing videos for all topics on datastructures Sir !! Keep up the good work ! Tomorrow is my semester and I am benefited very much by your video !
@justaplanet
@justaplanet 5 жыл бұрын
I have a test in 50 minutes and was hella stressed cause this problem was giving me hella trouble. Thank you so much.
@motorheadbanger90
@motorheadbanger90 7 жыл бұрын
good enough for me. better than lecture...and the man leading my lecture is the nephew of Kruskal who founded Kruskals algorithm, Clyde.
@CeretPenyok
@CeretPenyok 10 жыл бұрын
Whoa. Thank you so much. I was looking for some from Google and get many forum and blog, but I still can't understand the method, and then I found this video. Thank you sir. :) You really helped me out. :D
@kornklown420
@kornklown420 6 жыл бұрын
Dude! I think I was in one of your classes (quite a few years back) at Sierra College! Great job on the video! Unfortunately the computer science world is saturated with videos of terrible quality that are difficult to understand. You made the concept of a spanning tree very simple to understand, thank you!
@starcalibre
@starcalibre 10 жыл бұрын
seriously the best algorithms videos on youtube. thanks for posting these.
@DeepIntoMyThoughts
@DeepIntoMyThoughts 12 жыл бұрын
Great video! Always easier to understand when you get it visualized like this.
@knightjia97
@knightjia97 7 жыл бұрын
best explanation of prims algorithm by far
@party_boy69
@party_boy69 12 жыл бұрын
Very easy to understand explanation. This should help me with my assignment question which is hard to grasp without mst knowledge. thank you.
@maryamwahab
@maryamwahab 13 жыл бұрын
cooool ........i dont even have to read this topic !!! it just got imprinted in my mind from ur lecture !!!!!!! thanks :)
@ChelinTutorials
@ChelinTutorials 13 жыл бұрын
great teacher, great work! Thanks for the video. cheers from Argentina!
@nimamaleki1595
@nimamaleki1595 9 жыл бұрын
Thanks buddy! Short and sweet! Useful.
@rebecCATz
@rebecCATz 10 жыл бұрын
Thanks for the helpful explanations! Your videos are great!
@Beastofcookies
@Beastofcookies 12 жыл бұрын
TEACH ME MASTER! No but seriously thanks. Your video was the first explanation I looked at and it made perfect sense. :)
@derrickmink
@derrickmink 12 жыл бұрын
you are such a great teacher, please do more videos
@lucky2kay
@lucky2kay 11 жыл бұрын
can be used to work out the cheapest or the quickest way to touch all the vertices, depending on what the numerical values represent
@and1fer
@and1fer 10 жыл бұрын
very helpful, thank you.
@david_artist
@david_artist 2 жыл бұрын
This video explains the algorithm very well!
@SerTony16
@SerTony16 9 жыл бұрын
Great video, easy to follow. Helped me in discrete math.
@umphgoodness
@umphgoodness 12 жыл бұрын
Awesome, thank you! This really helped reinforce the concept in my head.
@felipegassen4070
@felipegassen4070 10 жыл бұрын
Great explanation!! Thanks for your help Barry!
@alehunter15
@alehunter15 9 жыл бұрын
god bless u dude
@devkodar303
@devkodar303 Ай бұрын
thank u for explaining this much easier!
@mohamedabdul633
@mohamedabdul633 Жыл бұрын
The best explanation ever!
@TheNapolyon
@TheNapolyon 11 жыл бұрын
5 min. youtube video is better than a 50 min lecture :))
@AbdullaFaraz
@AbdullaFaraz 10 жыл бұрын
that was really easy to understand. thanks so much
@Lnmul
@Lnmul 12 жыл бұрын
Much easier to understand than how my professor taught it. Thanks!
@yanksrock1000
@yanksrock1000 5 жыл бұрын
Great simple explanation!
@theamjolnir9641
@theamjolnir9641 6 жыл бұрын
Beautifully explained, thank you!
@Allin-ri6tx
@Allin-ri6tx 9 жыл бұрын
very much help full and easiest way to explain
@spacebar9615
@spacebar9615 9 жыл бұрын
very good explaining and good example thank you!
@TheYsrawat
@TheYsrawat 12 жыл бұрын
Thanks for the nice explanation. At 2:50 if we have chosen G-A which has same weight as H-F, then the result would have been different and it would not result in a minimal spanning tree. Please let me know in case I am missing something.
7 жыл бұрын
Great! Thanks for the clear explanation.
@mehdibenguerrah5445
@mehdibenguerrah5445 9 жыл бұрын
Thank you ! Very good explanation
@atlas6030
@atlas6030 4 жыл бұрын
I thought this was Khan Academy! But anyways thank you :)
@tahaabdullah4278
@tahaabdullah4278 7 жыл бұрын
Great video, really helped me out. But I was wondering, what's the difference between Prim's algorithm and Dijkstra's algorithm. As I understand it, both figure out the minimum spanning trees for a given graph in about the same way.
@justodiaz1858
@justodiaz1858 9 жыл бұрын
For MST, I believe you can add a small constant to all edges to break ties.
@codemurp3244
@codemurp3244 9 жыл бұрын
+Justo Diaz Wait...can you please explain how that works? Wouldn't the edges still end up tying because you're adding the same constant? Sorry
@justodiaz1858
@justodiaz1858 9 жыл бұрын
+codeMurp :3 I should have said, add different extremely small numbers to each edge. This keeps edges that were originally distinct still distinct, but for edges that were originally the same are now distinct. You could add different fractional amounts by adding to each edge a fraction in increasing order. So take your first edge add .001, take the next edge add .002 etc. If fractions scare you, multiply all edges by 1000, then take your first edge and add 1, take the second and add 2, etc. This is assuming you don't have more than 1000 edges. If you do, than make your additions even smaller. The point is to make sure the additions are so small that they keep the original order, but still break ties.
@alexstapf
@alexstapf 13 жыл бұрын
Great explanation! NOW I understood it. Thank you.
@AnanyaKirti
@AnanyaKirti 10 жыл бұрын
really nice explanation.
@nicchang1234
@nicchang1234 9 жыл бұрын
The video is great. Thank you so much
@jamesvega7258
@jamesvega7258 9 жыл бұрын
HI. Thanks for the guide man. It was very useful
@AzRAELGoDlIkE
@AzRAELGoDlIkE 9 жыл бұрын
Thank you ! This video explains it perfectly!
@Vigi
@Vigi 9 жыл бұрын
Good video! :)
@vijaygaonkar7020
@vijaygaonkar7020 12 жыл бұрын
I agree with Beastofcookies and Derrick Mink, please do more videos. Thanks a lot!
@shrikantbang1692
@shrikantbang1692 9 жыл бұрын
Great video !
@willclegg1
@willclegg1 13 жыл бұрын
Could have definitely done with you as my uni lecturer this year!
@MuchKnowledge
@MuchKnowledge 10 жыл бұрын
Great video, thanks!
@nnzhdnv
@nnzhdnv 13 жыл бұрын
wow thanks, you explained this very very well! got it the first time round :)
@omercak2746
@omercak2746 7 жыл бұрын
Just awesome! Thank you
@archiemorley1601
@archiemorley1601 8 жыл бұрын
you are a boss, helped me out xx
@4751ludo
@4751ludo 6 жыл бұрын
Thank you really well explained
@yasmin_jsmn
@yasmin_jsmn 10 жыл бұрын
very simple explanation ,, keep going
@TehFingergunz
@TehFingergunz 8 жыл бұрын
great video, thank you!
@wellingtonsouzamarques222
@wellingtonsouzamarques222 11 жыл бұрын
Great class!!
@LeonardoRinaldiYautja
@LeonardoRinaldiYautja 11 жыл бұрын
Thank you very much, that helped me a lot!
@rianzamanx
@rianzamanx 10 жыл бұрын
Thank you very much...
@ramazangul1789
@ramazangul1789 10 жыл бұрын
Thank you million times
@LuaneCarolineAquinoCavalcanti
@LuaneCarolineAquinoCavalcanti 9 жыл бұрын
thanks a lot, great video btw
@jms2829
@jms2829 9 жыл бұрын
Very helpful. Thanks heaps
@arvindk2568
@arvindk2568 9 жыл бұрын
Great video. Thx a lot
@hardikanand6153
@hardikanand6153 2 жыл бұрын
What is the differnce between minimum spanning tree and a minimmal spanning tree of a graph?
@AbhishekGhosh1805
@AbhishekGhosh1805 8 жыл бұрын
Would you not pick H going to E directly (weight: 4), instead of going from H => F => E =>Total Weight: 7 ?
@thetubeingtubster93
@thetubeingtubster93 8 жыл бұрын
great presentation. my professor says to start with the one with the most degrees. Does it matter where to start?
@otuyakbayev
@otuyakbayev 12 жыл бұрын
really helpful video! thank you a lot! appreciate this!
@igedemahendradarmawiguna9558
@igedemahendradarmawiguna9558 11 жыл бұрын
I am wondering, what software do you use for explaining this... seem interesting...
@AnkitSharma-tj4ub
@AnkitSharma-tj4ub 11 жыл бұрын
Thanks a lot! A really helpful video :)
@rubalrai1
@rubalrai1 8 жыл бұрын
great video..👍
@sleekygee1
@sleekygee1 11 жыл бұрын
great tutorials ;)
@TheRoxas13th
@TheRoxas13th 11 жыл бұрын
Nice! But i still confuse what this minimum spanning tree used for.
@cameraGHOST
@cameraGHOST 10 жыл бұрын
Thank you so much!
@AhmedThaking
@AhmedThaking 10 жыл бұрын
@benja303 I was thinking the same thing. But it is not Sal from Khans Academy
@SurbhiShah16
@SurbhiShah16 13 жыл бұрын
amazing video!!! thanks a lot!
@queenofunderland
@queenofunderland 10 жыл бұрын
hi mr. brown, when we write Java Codes regarding the insertion of an edge of min. weight AB, then in the "main menu" method , we can write: for (i=0;i< G.length; i ++){ if (AdjacentMatrix G[i] == 1) col[i]= true; enter the edge AB to the list of visited vertices } , right?
@PMD90
@PMD90 13 жыл бұрын
it helps me so much thank you
@henry14835
@henry14835 12 жыл бұрын
thanks, your video is very nice
@siyuanliu4581
@siyuanliu4581 9 жыл бұрын
The video is great! BTW, how do you draw all those things? What software are you using?
@profbbrown
@profbbrown 9 жыл бұрын
+Shawn Liu At the time I was using a Wacom Cintiq tablet with Autodesk's Sketchbook Express. If I were to re-make the video today, I'd use an iPad with GoodNotes.
@kshitizadhikari3855
@kshitizadhikari3855 9 жыл бұрын
awesome vid thnks !! :)
@BananaCold
@BananaCold 9 жыл бұрын
This is god damn clear! Really appreciate this great video!
@nickold4499
@nickold4499 10 жыл бұрын
Thank you!
@engmfouda
@engmfouda 12 жыл бұрын
How can we prove the correctness and the termination of this algorithm ?
@HollyVanHart
@HollyVanHart 5 жыл бұрын
💖 Thanks for this! ✨ 😻 😍
@WernAncheta
@WernAncheta 9 жыл бұрын
Hi Barry, thanks a lot for this video. You mentioned at the later part of the video that we would always end up with the minimal weight of 22, but when I tried solving it I got 24 instead. Am I doing something wrong or is it normal to get other values aside from 22.
@riffninja
@riffninja 8 жыл бұрын
This is great. thanks
@hanselgunawan1151
@hanselgunawan1151 11 жыл бұрын
GOD BLESS YOU!
@rohitmanocha4167
@rohitmanocha4167 9 жыл бұрын
thanks a lot SIR!!!
@steeeeeven11
@steeeeeven11 12 жыл бұрын
Thank you, very helpful!
@tahamagdy4932
@tahamagdy4932 7 жыл бұрын
Thank you dear
@samarth_blak
@samarth_blak 11 жыл бұрын
Its better dan my lecturer's lecture... That person took 1 hour to explain this..!!!!
@MWARIS1
@MWARIS1 13 жыл бұрын
Thank you sooo much you explained really well, Thank you :)
@Angel-y5u8b
@Angel-y5u8b 9 жыл бұрын
What if you are given some random dots with an (x, y) location, any idea of how to create the weighted graph to then use this algorithm? I thought about connecting everything to everything with a weight to create the graph en then use the algorithm but I'm thinking it would make it way slower, any thoughts/suggestions?
@felfaj
@felfaj 11 жыл бұрын
Thank you very useful
@mickyor1107
@mickyor1107 11 жыл бұрын
thanks :D time to code for me xD this really helped me a lot :)
@ayush11iitkgp
@ayush11iitkgp 12 жыл бұрын
thank you Sir...really helpfull..!! :)
@thetubeingtubster93
@thetubeingtubster93 8 жыл бұрын
and fir the maximum would you do the same thing but look for the maximum instead ?
@fraxmans
@fraxmans 11 жыл бұрын
I know people won't add the edge between G and F, but how to make computer to avoid adding it?
@aleksandrakapa
@aleksandrakapa 6 жыл бұрын
excellent!!!
@masbro1901
@masbro1901 Жыл бұрын
thank you sir
@education5393
@education5393 9 жыл бұрын
if you chose to go to A from G when you had the tie the MSP would be wrong, there has to be some balancing you are omitting
@NoCodeine
@NoCodeine 7 жыл бұрын
cheers barry mate
3.5 Prims and Kruskals Algorithms - Greedy Method
20:12
Abdul Bari
Рет қаралды 3 МЛН
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,4 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Prim's Minimum Spanning Tree Algorithm | Graph Theory
14:53
WilliamFiset
Рет қаралды 131 М.
How Do You Calculate a Minimum Spanning Tree?
11:12
Spanning Tree
Рет қаралды 69 М.
Dijkstra's Algorithm vs Prim's Algorithm
20:36
Back To Back SWE
Рет қаралды 71 М.
Prim's Algorithm: Minimum Spanning Tree (MST)
6:14
EducateYourself
Рет қаралды 478 М.
G-45. Prim's Algorithm - Minimum Spanning Tree - C++ and Java
19:10
take U forward
Рет қаралды 301 М.
3.6 Dijkstra Algorithm - Single Source Shortest Path - Greedy Method
18:35
Prim's Algorithm for Minimum Spanning Trees (MST) | Graph Theory
11:32
L-4.7: What is Spanning Tree with Examples in Hindi | Algorithm
7:12
Gate Smashers
Рет қаралды 1,1 МЛН