Prim's Algorithm: Minimal Spanning Tree

  Рет қаралды 299,006

Barry Brown

Barry Brown

Күн бұрын

Prim's Algorithm is used to find a minimal spanning tree of a weighted graph. This videos shows you how to do it!

Пікірлер: 168
@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 !
@maryamwahab
@maryamwahab 13 жыл бұрын
cooool ........i dont even have to read this topic !!! it just got imprinted in my mind from ur lecture !!!!!!! thanks :)
@DeepIntoMyThoughts
@DeepIntoMyThoughts 12 жыл бұрын
Great video! Always easier to understand when you get it visualized like this.
@starcalibre
@starcalibre 10 жыл бұрын
seriously the best algorithms videos on youtube. thanks for posting these.
@david_artist
@david_artist 2 жыл бұрын
This video explains the algorithm very well!
@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.
@and1fer
@and1fer 9 жыл бұрын
very helpful, thank you.
@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.
@ChelinTutorials
@ChelinTutorials 13 жыл бұрын
great teacher, great work! Thanks for the video. cheers from Argentina!
@knightjia97
@knightjia97 7 жыл бұрын
best explanation of prims algorithm by far
@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.
@alehunter15
@alehunter15 9 жыл бұрын
god bless u dude
@mohamedabdul633
@mohamedabdul633 11 ай бұрын
The best explanation ever!
@nimamaleki1595
@nimamaleki1595 8 жыл бұрын
Thanks buddy! Short and sweet! Useful.
@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
@Allin-ri6tx
@Allin-ri6tx 9 жыл бұрын
very much help full and easiest way to explain
@yanksrock1000
@yanksrock1000 5 жыл бұрын
Great simple explanation!
@umphgoodness
@umphgoodness 12 жыл бұрын
Awesome, thank you! This really helped reinforce the concept in my head.
@TheNapolyon
@TheNapolyon 11 жыл бұрын
5 min. youtube video is better than a 50 min lecture :))
@spacebar9615
@spacebar9615 9 жыл бұрын
very good explaining and good example thank you!
@derrickmink
@derrickmink 12 жыл бұрын
you are such a great teacher, please do more videos
@Beastofcookies
@Beastofcookies 12 жыл бұрын
TEACH ME MASTER! No but seriously thanks. Your video was the first explanation I looked at and it made perfect sense. :)
@anthonydifede4510
@anthonydifede4510 8 жыл бұрын
Great video, easy to follow. Helped me in discrete math.
@felipegassen4070
@felipegassen4070 10 жыл бұрын
Great explanation!! Thanks for your help Barry!
@Lnmul
@Lnmul 11 жыл бұрын
Much easier to understand than how my professor taught it. Thanks!
@GoodNewsForStrangers
@GoodNewsForStrangers 7 жыл бұрын
You're awesome Mr Brown!
@rebecCATz
@rebecCATz 9 жыл бұрын
Thanks for the helpful explanations! Your videos are great!
@theamjolnir9641
@theamjolnir9641 5 жыл бұрын
Beautifully explained, thank you!
@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
7 жыл бұрын
Great! Thanks for the clear explanation.
@kornklown420
@kornklown420 5 жыл бұрын
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!
@AnanyaKirti
@AnanyaKirti 10 жыл бұрын
really nice explanation.
@mehdibenguerrah5445
@mehdibenguerrah5445 9 жыл бұрын
Thank you ! Very good explanation
@alexstapf
@alexstapf 12 жыл бұрын
Great explanation! NOW I understood it. Thank you.
@AbdullaFaraz
@AbdullaFaraz 10 жыл бұрын
that was really easy to understand. thanks so much
@omercak2746
@omercak2746 6 жыл бұрын
Just awesome! Thank you
@MuchKnowledge
@MuchKnowledge 10 жыл бұрын
Great video, thanks!
@nicchang1234
@nicchang1234 8 жыл бұрын
The video is great. Thank you so much
@wellingtonsouzamarques222
@wellingtonsouzamarques222 11 жыл бұрын
Great class!!
@4751ludo
@4751ludo 6 жыл бұрын
Thank you really well explained
@TehFingergunz
@TehFingergunz 8 жыл бұрын
great video, thank you!
@AzRAELGoDlIkE
@AzRAELGoDlIkE 8 жыл бұрын
Thank you ! This video explains it perfectly!
@ssmage
@ssmage 7 жыл бұрын
Great video!
@ramazangul1789
@ramazangul1789 10 жыл бұрын
Thank you million times
@yasmin_jsmn
@yasmin_jsmn 9 жыл бұрын
very simple explanation ,, keep going
@jamesvega7258
@jamesvega7258 9 жыл бұрын
HI. Thanks for the guide man. It was very useful
@mariusc6882
@mariusc6882 9 жыл бұрын
Thank you! Very helpful!
@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.
@vijaygaonkar7020
@vijaygaonkar7020 11 жыл бұрын
I agree with Beastofcookies and Derrick Mink, please do more videos. Thanks a lot!
@nnzhdnv
@nnzhdnv 13 жыл бұрын
wow thanks, you explained this very very well! got it the first time round :)
@Vigi
@Vigi 9 жыл бұрын
Good video! :)
@archiemorley1601
@archiemorley1601 8 жыл бұрын
you are a boss, helped me out xx
@rianzamanx
@rianzamanx 10 жыл бұрын
Thank you very much...
@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.
@jms2829
@jms2829 9 жыл бұрын
Very helpful. Thanks heaps
@LuaneCarolineAquinoCavalcanti
@LuaneCarolineAquinoCavalcanti 9 жыл бұрын
thanks a lot, great video btw
@arvindk2568
@arvindk2568 8 жыл бұрын
Great video. Thx a lot
@willclegg1
@willclegg1 13 жыл бұрын
Could have definitely done with you as my uni lecturer this year!
@AnkitSharma-tj4ub
@AnkitSharma-tj4ub 11 жыл бұрын
Thanks a lot! A really helpful video :)
@LeonardoRinaldiYautja
@LeonardoRinaldiYautja 11 жыл бұрын
Thank you very much, that helped me a lot!
@BananaCold
@BananaCold 8 жыл бұрын
This is god damn clear! Really appreciate this great video!
@SurbhiShah16
@SurbhiShah16 13 жыл бұрын
amazing video!!! thanks a lot!
@cameraGHOST
@cameraGHOST 10 жыл бұрын
Thank you so much!
@otuyakbayev
@otuyakbayev 12 жыл бұрын
really helpful video! thank you a lot! appreciate this!
@PMD90
@PMD90 12 жыл бұрын
it helps me so much thank you
@nickold4499
@nickold4499 9 жыл бұрын
Thank you!
@sleekygee1
@sleekygee1 10 жыл бұрын
great tutorials ;)
@tahaabdullah4278
@tahaabdullah4278 6 жыл бұрын
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.
@atlas6030
@atlas6030 4 жыл бұрын
I thought this was Khan Academy! But anyways thank you :)
@henry14835
@henry14835 12 жыл бұрын
thanks, your video is very nice
@rubalrai1
@rubalrai1 8 жыл бұрын
great video..👍
@samarth_blak
@samarth_blak 11 жыл бұрын
Its better dan my lecturer's lecture... That person took 1 hour to explain this..!!!!
@tahamagdy4932
@tahamagdy4932 7 жыл бұрын
Thank you dear
@felfaj
@felfaj 11 жыл бұрын
Thank you very useful
@kshitizadhikari3855
@kshitizadhikari3855 9 жыл бұрын
awesome vid thnks !! :)
@MWARIS1
@MWARIS1 13 жыл бұрын
Thank you sooo much you explained really well, Thank you :)
@riffstofly
@riffstofly 8 жыл бұрын
This is great. thanks
@aleksandrakapa
@aleksandrakapa 5 жыл бұрын
excellent!!!
@rogisolorzano6691
@rogisolorzano6691 6 жыл бұрын
well done
@rohitmanocha4167
@rohitmanocha4167 9 жыл бұрын
thanks a lot SIR!!!
@RatusMax
@RatusMax 10 жыл бұрын
Lol had to write a code for this, but i didn't understand WHERE those weight numbers came from until i watched this. Thanks
@masbro1901
@masbro1901 Жыл бұрын
thank you sir
@dinosaur5009
@dinosaur5009 9 жыл бұрын
THANK YOU!
@HollyVanHart
@HollyVanHart 5 жыл бұрын
💖 Thanks for this! ✨ 😻 😍
@ayush11iitkgp
@ayush11iitkgp 12 жыл бұрын
thank you Sir...really helpfull..!! :)
@Graskian
@Graskian 10 жыл бұрын
Amazing
@darinebouzar3575
@darinebouzar3575 8 жыл бұрын
very much clear, even a stupid will can understand, thx so much professor
@TheRoxas13th
@TheRoxas13th 11 жыл бұрын
Nice! But i still confuse what this minimum spanning tree used for.
@paulmaurin1149
@paulmaurin1149 12 жыл бұрын
thank you
@bankarsatyajeet
@bankarsatyajeet 11 жыл бұрын
thanks a lot sir...........
@SolarMar
@SolarMar 7 жыл бұрын
Thank you!!!!!!
@NoCodeine
@NoCodeine 7 жыл бұрын
cheers barry mate
@cpandit803
@cpandit803 10 жыл бұрын
Super thanks :)
@SameedUsmani47
@SameedUsmani47 7 жыл бұрын
awesome vedio
@TheKillx0ne
@TheKillx0ne 8 жыл бұрын
legend. thanks a lot :)
@denebgarza
@denebgarza 10 жыл бұрын
You sound like Salman Khan.
7 жыл бұрын
almost
@jasminejia8540
@jasminejia8540 5 жыл бұрын
agree!
@mickyor1107
@mickyor1107 10 жыл бұрын
thanks :D time to code for me xD this really helped me a lot :)
@AhmedThaking
@AhmedThaking 10 жыл бұрын
@benja303 I was thinking the same thing. But it is not Sal from Khans Academy
@alicetra0109
@alicetra0109 11 жыл бұрын
Bro thank you so much
3.5 Prims and Kruskals Algorithms - Greedy Method
20:12
Abdul Bari
Рет қаралды 2,8 МЛН
Prim's Minimum Spanning Tree Algorithm | Graph Theory
14:53
WilliamFiset
Рет қаралды 120 М.
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,2 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 41 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Prim's Minimal Spanning Tree
9:50
Barry Brown
Рет қаралды 1,2 М.
Kruskal's Algorithm: Minimum Spanning Tree (MST)
6:01
EducateYourself
Рет қаралды 292 М.
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,3 МЛН
Prim's Algorithm
7:18
Lalitha Natraj
Рет қаралды 581 М.
How Do You Calculate a Minimum Spanning Tree?
11:12
Spanning Tree
Рет қаралды 55 М.
Prims Algorithm | Minimum Spanning Tree
15:21
take U forward
Рет қаралды 133 М.
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
Dijkstra's Algorithm vs Prim's Algorithm
20:36
Back To Back SWE
Рет қаралды 69 М.
PRIM'S ALGORITHM || FINDING MINIMUM COST SPANNING TREE || GREEDY METHOD || DAA
39:21
Sundeep Saradhi Kanthety
Рет қаралды 2,3 М.
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,2 МЛН