Kruskal's Algorithm - step by step guide

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии •

  • @ultravidz
    @ultravidz 10 лет назад +119

    Even without speech, this tutorial was more effective than any other. Keep it up!

    • @yusufshakeel
      @yusufshakeel  10 лет назад +9

      AlphaOmega thanks for watching :-)

    • @vivekmathur4709
      @vivekmathur4709 9 лет назад

      AlphaOmega all that fake accents and then music....ahh nice explanation yousuf ... bravo

  • @giaphatha88
    @giaphatha88 9 лет назад

    man this is way too good, i fathom this algorithm rght away. This is 100x times better than my teacher's instructions, seriously. 2 weeks ago he taught me and my class this algorithm and he was like standing in front of the board 30 minutes talking and no one seemed to understand. It's great that i've found this. Thanks.

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Gia Phat Ha thanks for watching
      here is my algorithm playlist. you may find it helpful.
      ruclips.net/p/PLG6ePePp5vvYVEjRanyndt7ZSqTzillom
      thanks again for watching my video and commenting!

  • @yusufshakeel
    @yusufshakeel  8 лет назад +33

    thank you guys for helping this video cross 100,000 views.
    thanks for your comments, appreciation, suggestions, love and support.
    and thank you guys for subscribing and helping my channel cross 10,000 subscribers!
    stay happy and keep smiling :-)
    #thankyou
    #yusufshakeel

  • @urwashanza6721
    @urwashanza6721 6 лет назад

    always saves my life and exams.
    Very helpful tutorials.
    Allah will give you jannah Insha Allah

  • @AyushVerma08
    @AyushVerma08 6 лет назад +1

    This is one of the best channel for computer Science students. Thanks alot mate.:-)

    • @yusufshakeel
      @yusufshakeel  6 лет назад

      hope you will find my website helpful too :-)
      www.dyclassroom.com

  • @Father_Of_Sudeera_Muthusinghe
    @Father_Of_Sudeera_Muthusinghe 2 года назад

    Thanks for the video. I can not believe that you successfully taught me Kruskal's algo without telling even a word

  • @mounicasirichandana1881
    @mounicasirichandana1881 8 лет назад

    really sir i simply love these videos even though our professors open their voice and said we cant understand anything but without voice just by the view we are understanding very well thank you sir

  • @anubhavxkumar
    @anubhavxkumar 8 лет назад +1

    At first, I thought that this video will not be effective as the video contains no sound but instant change of mind after watching ur video. Great video. Keep it going

  • @babydawa4197
    @babydawa4197 8 лет назад +1

    some teachers cant even make one understand with speech but yusuf sir is extremely blessed with an extraordinary talent of simplying albert einstein theory into a piece of cake for us..thank u sir ..really so impressed

  • @mihir2014
    @mihir2014 6 лет назад

    One of the simplest and efficient way to teach algorithm -- Thanks a lot, will prefer to learn any algorithm from your channel..

  • @YankeeMaharjan
    @YankeeMaharjan 9 лет назад +24

    I have test in 2hrs. Thanks alot.

  • @khawarahmed7492
    @khawarahmed7492 6 лет назад

    My go to Algo revision Channel. Bless you, Yusuf!

  • @dark.prnx.
    @dark.prnx. 8 лет назад

    One of the best teachers i know
    Thanks Yusuf

  • @abhigyanraha5620
    @abhigyanraha5620 6 лет назад

    great video sir. Even without any speech on the video, this is much more informative ! Thanks a lot!

  • @ravenrey7856
    @ravenrey7856 9 лет назад

    LOL, I was absent when our professor explained this, never thought it was this easy. THANKS, plus your video makes it much easier..

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Ravenrey Kaamiño thanks for watching :-)

  • @rahuldani6414
    @rahuldani6414 8 лет назад +69

    for a moment I was struggling to connect my earphones properly... lol

  • @sourabhgaikwad1743
    @sourabhgaikwad1743 8 лет назад +3

    I had confusion between prims and kruskals algorithm but the concepts of both the algorithms are clear to me now . Thanks to you for making such videos..... Thanks you So Much......!!!!!!!!!!

  • @jashunadkat6548
    @jashunadkat6548 8 лет назад +1

    Yusuf you have done an excellent job brother !! It seems i dont need to attend college now !! you have made it very very simple !! thank you so much :)

    • @yusufshakeel
      @yusufshakeel  8 лет назад +3

      welcome and please do attend college :-)

  • @jehadnasser6765
    @jehadnasser6765 10 лет назад

    رائع يا صديقي، أفضل بكثير من غير الناطقين بالانجليزية الذين يحاولون الشرح بالانجليزية لأجل الجوجل اديسنس فتخرج الدروس مزرية بسبب اللهجة السيئة، شكرا لك

  • @TamilarasuMK
    @TamilarasuMK 7 лет назад

    Thank you sir.. You taught me 8 marks..
    Prim's algo - 8 marks
    Total 16 marks ... superrr

  • @surajtanztank1557
    @surajtanztank1557 7 лет назад

    Thank you so much! You have no idea how easy this and all your videos have made it. Best wishes

  • @shashirajak9997
    @shashirajak9997 8 лет назад

    Even though this video does not have audio but still it is awesome . every thing has been cleared easily. simplicity at its best......

  • @suchitradevi3506
    @suchitradevi3506 7 лет назад +1

    This is the best video ever seen.... Was really helpful.. Thanks a lot sir... God bless you always... Keep sharing your knowledge... Knowledge sharing costs nothing.... God bless 👍

  • @burningblazed
    @burningblazed 9 лет назад +1

    Your videos are quite simple and easy to understand... Thanks

  • @a3row_nkc
    @a3row_nkc 7 лет назад +1

    This one is sooooo simple but easy to understand... thanks a lot....

  • @toshikalata8761
    @toshikalata8761 7 лет назад +1

    thanks, Yusuf Shakeel, perfect video.......Silent but your knowledge makes this video Louder.

  • @dzulishak229
    @dzulishak229 6 лет назад +1

    great video..thumbs up for you sir

  • @aminelaifi1473
    @aminelaifi1473 10 лет назад +1

    By far the best tutorial on youtube. Thank you unknown friend

    • @yusufshakeel
      @yusufshakeel  10 лет назад

      Amine Laifi thanks for watching :-)

  • @chadwad12
    @chadwad12 9 лет назад +7

    really good video. Goes to show a proper video doesn't need any speech to be effective. Just give clear, step-by-step instructions, show an example while giving the instructions, and you have a great video explaining things. Great job, way to keep it simple but effective

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      Chad Smith thanks for watching and appreciating my work :-)

  • @anamikaahmed4887
    @anamikaahmed4887 8 лет назад +1

    You should have faar more subscribers.You are under rated I feel.
    These are the best of videos.Thank you soo much.The best youtube channel for learning algorithm I feel :)

  • @MdBilalRaza
    @MdBilalRaza 9 лет назад

    Great job brother! Please continue creating such clean and effective Step by Step guides! May Allah bless you!

  • @aviddaviddavidd
    @aviddaviddavidd 9 лет назад

    Thank you, it is very hard to find good youtube videos about these kinds of subjects! This was very useful to me!

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +iamarobotbeepbeep thanks for the appreciation

  • @rajatnaskar200
    @rajatnaskar200 6 лет назад

    This is helpful. I need to give a presentation on the topic in morning. Thanx a lot

  • @purushothamv5883
    @purushothamv5883 7 лет назад +1

    You are awesome without any vocie u explained it in a simple way Thank You😀

  • @akshaychavan3597
    @akshaychavan3597 6 лет назад

    Thanks bro!!! Good explanation, I got it in the first attempt, that's the reason I didn't needed to rewind the video!!!😄

  • @sabblk9
    @sabblk9 6 лет назад +1

    Oh man thank you so much i was having an exam in this couple of minutes before and i watched this video u saved me

  • @milhankhan8830
    @milhankhan8830 8 лет назад

    hats off yusuf Shakeel . very well explained . keep the good work going

  • @musicalsouls7646
    @musicalsouls7646 9 лет назад

    sir you are .......................................................... ""LIKE A PRO ".keep going :)

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +K!RAN BANGAR thanks for watching my video!

  • @ManpreetKaur14
    @ManpreetKaur14 9 лет назад

    Excellent!!....Best!!! ...made me understand this concept in first time...

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Manpreet Kaur thanks for commenting :-)

  • @Capriowolf
    @Capriowolf 6 лет назад +1

    thanks sir..12 marks have been covered..cheers

  • @RishiRajput
    @RishiRajput 9 лет назад +14

    best tutorial I've seen

  • @vijaynayak4206
    @vijaynayak4206 8 лет назад

    sir...
    thanks a lot... u have saved my time....
    keep doing tutorials...ur tutorials r very helpfull...!!

    • @yusufshakeel
      @yusufshakeel  8 лет назад

      +vijay nayak thanks for watching :-)
      here is the algorithm playlist goo.gl/Z89n9o
      hope you will find it interesting.

    • @vijaynayak4206
      @vijaynayak4206 8 лет назад

      thank you sir...
      playlist is very useful.
      u have saved me...!!

  • @flyfloc8606
    @flyfloc8606 9 лет назад +1

    Big like man! I finally understood this algoritm! Great tutorial!

  • @snehadas5627
    @snehadas5627 9 лет назад +2

    Thanks so much, this helped a lot! Even without audio, you aced it!! Thanks again!

  • @rsanath
    @rsanath 8 лет назад +1

    the best of the best of the best tutorial without a second sound .
    thanks KS for this amazing video 😀👍👍

  • @pulkitsharma5792
    @pulkitsharma5792 8 лет назад +1

    thank u sir for ur tutorials.These r life saver for students like me

  • @shivaprasadbk2027
    @shivaprasadbk2027 8 лет назад

    Very cleanly done. Quick, simple and great explanation. Thanks! :)

  • @asmitghimire9134
    @asmitghimire9134 8 лет назад

    like the style of your tutorials.. simple and clear.. subscribed bro!

    • @yusufshakeel
      @yusufshakeel  8 лет назад

      thanks for watching and subscribing :-)

  • @mohammedirfan7270
    @mohammedirfan7270 6 лет назад +1

    Wow really great without audio we can easily learn by this video

  • @lankalakmali549
    @lankalakmali549 8 лет назад +1

    This video is really good! Simple but really understanding! Thank you so much!

  • @ashadanwar
    @ashadanwar 7 лет назад +1

    Thanks alot bro, learnt kruskal and prism from u. JazakAllah

  • @gazisalahuddin6799
    @gazisalahuddin6799 9 лет назад +10

    Another MST can be formed by choosing edge AC instead of AB and thus the MST becomes AC,BC,CD...If I am right then please add this information to this tutorial. Liked it very much...Thank you.

    • @Lisekplhehe
      @Lisekplhehe 7 лет назад +2

      Yeah, but it's a logical coclusion coming out of the fact that the order in which ac and ab are insterted into the table is not important, becouse they have the same weight.

  • @m1rchegfn
    @m1rchegfn 9 лет назад +2

    It's even a bit better without the speech because you may pause whenever you need to, and still can see what it's trying to say. Keep up with the good work

  • @anonymous-do5bs
    @anonymous-do5bs 7 лет назад +1

    the best. thank you very much mr Yusuf. you have gained a subscriber.

  • @gauravtiwari5517
    @gauravtiwari5517 9 лет назад

    You should also add that for distinct edge weights, only a unique MST is possible. Since your example contained non-distinct edge weights two MSTs were possible.

  • @sachinmirle3342
    @sachinmirle3342 7 лет назад +1

    really u are awesome ...
    i want to hear your voice atleast once

  • @itssania3680
    @itssania3680 6 лет назад

    Understandable Video but at the end we also have to find cost of Minimum Spanning tree by adding the weight of nodes. Like in this video the Minimum Spanning tree cost is => 2+1+3=6. :-)

  • @azzi4894
    @azzi4894 7 лет назад

    DAMN DUDE, THANK YOU. SO EFFECTIVE, NO BS!

  • @egwmonoegw
    @egwmonoegw 8 лет назад

    The best in many that I have seen... Well Done ;)

  • @priyadharshiniv6472
    @priyadharshiniv6472 6 лет назад +1

    Tomorrow my SEM exam Very clear thks a lot

  • @gouthamkumar102
    @gouthamkumar102 8 лет назад +1

    xlnt smpl straight forward. very useful for final review for exams

  • @ashishvaishnav7005
    @ashishvaishnav7005 8 лет назад +1

    Keep it up +Yusuf bhai...👏👏👏

  • @vjk321
    @vjk321 7 лет назад +1

    Very nice explanation. Thank you.

  • @omah9453
    @omah9453 8 лет назад +1

    simple and straight foward....thankx man

  • @fedupalways8958
    @fedupalways8958 8 лет назад +1

    Outstanding sir
    jazakaALLAH

  • @snehadange4518
    @snehadange4518 8 лет назад

    thnq so much..i don't know kruskal algorithm..u r video help me to slove promblem pn this algorithm

  • @AtijavDua
    @AtijavDua 8 лет назад

    What happens if I select AC rather than AB as they have the same weight? Is it still a minimum spanning tree or is that solution always unique?

    • @asfandalikhan6269
      @asfandalikhan6269 8 лет назад

      +Atijav Dua It's still a MST, alternate solutions can exist.

    • @mrzennopayne1
      @mrzennopayne1 8 лет назад

      +Atijav Dua Multiple MST's can exist. But as mentioned in the video we cannot choose AC as it will result in a closed circuit. If you are asking if we have a choice between AB and AC, it seems that we should go through every single edge and the questions will come up in such a way that there will conveniently one edge will be removed.

  • @SpicyBirbee
    @SpicyBirbee 9 лет назад

    Excellent video and diagrams! Thank you for sharing!

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Emily Huang thanks for watching :-)

  • @zongzheli1283
    @zongzheli1283 7 лет назад

    Thank you! I have the test tomorrow.

  • @jakubknitter2679
    @jakubknitter2679 3 года назад

    Is it allowed to take edge AC, after the first one (BC)?

  • @md.talalwasim
    @md.talalwasim 9 лет назад +1

    It's really awesome tutorial.thanks buddy.

  • @gulrezeqbal3048
    @gulrezeqbal3048 7 лет назад +1

    Incredible tutorial brother !!

  • @arunpundeer9362
    @arunpundeer9362 7 лет назад

    Thanx for this video it is a easy way to understand this algorithm

  • @RohanSi167
    @RohanSi167 7 лет назад

    Will both algorithms would work for directed graphs ? If Yes, the how?
    Thanks.

  • @natarajana.v4262
    @natarajana.v4262 7 лет назад +1

    The best explanation !! Thanks a lot.

  • @jagadishburagadda4655
    @jagadishburagadda4655 5 лет назад

    If the parallel edges have same weight then which edge we had to remove

  • @Juhirathore24
    @Juhirathore24 8 лет назад +1

    Thank you so much.. It helped me a lot :) :) This is the best tutorial !

  • @chriss-ok5ig
    @chriss-ok5ig 7 лет назад +1

    very helpful :) thank you for your positive videos :) have a nice day too

  • @techpirate3234
    @techpirate3234 9 лет назад

    1 hour of learnig = 10 min of learning
    thanks

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Abdul WWaheed thanks for watching

  • @yashhjaggi1785
    @yashhjaggi1785 7 лет назад

    Nice and clean explanation.

  • @mariusc6882
    @mariusc6882 9 лет назад +1

    Thank you for this tutorial, it was nicely done! :)

  • @alexandrusuciu2431
    @alexandrusuciu2431 8 лет назад

    well done and this was very good explained

  • @Sensibleguyy
    @Sensibleguyy 8 лет назад

    very nicely explained! make more tutorials like these

    • @yusufshakeel
      @yusufshakeel  8 лет назад +2

      there is the playlist goo.gl/Z89n9o
      hope you find it helpful. and thanks for watching :-)

  • @pranavpawar7792
    @pranavpawar7792 9 лет назад +2

    Really awesome explanation thanks......

  • @joelanilraj
    @joelanilraj 8 лет назад

    What if we select AC before AB? I still see a spanning tree without a circuit being formed.Thank you

    • @shazadkhanfu
      @shazadkhanfu 8 лет назад

      it will not matter since you will get the same weight

  • @anirbanchowdhury722
    @anirbanchowdhury722 9 лет назад +2

    shukriya yusuf bhai u made it lot easy to understand even a dumb can follow

    • @yusufshakeel
      @yusufshakeel  9 лет назад +1

      +anirban chowdhury thanks for watching :-)

  • @IRELANDGRIMES
    @IRELANDGRIMES 9 лет назад +2

    Excellent tutorial!

  • @pratikkumar3825
    @pratikkumar3825 9 лет назад +1

    yr videos r vry hlpful...plz make a whole course vid for data structure and c if possible.

    • @yusufshakeel
      @yusufshakeel  9 лет назад

      +Pratik Gupta i am working on those topics, videos will be released next year. kindly subscribe to catch the latest updates. thanks again for watching my videos and commenting :-)

  • @ayeshamirza7687
    @ayeshamirza7687 5 лет назад

    yousaf shakeel great job. God bless u

  • @HarshitaEzil
    @HarshitaEzil 8 лет назад

    Awesome tutorial!
    One question though, is it required to calculate? "Weight of MST" as :
    Weight of MST=2+1+3=6
    Or should we just represent the MST obtained at the end of the above tutorial?

  • @sagarshah275
    @sagarshah275 9 лет назад +2

    Very nice video...thanks!

  • @aronrabo2678
    @aronrabo2678 7 лет назад

    For example, I have 7 verteces, are you saying that the MST should only have 6 ?

  • @youaretheboss1656
    @youaretheboss1656 7 лет назад

    Thanks Yusuf bhai...... thanks a tonne!

  • @just-wild-life
    @just-wild-life 7 лет назад

    Hi, Can AC, BC and CD also be an MST???

  • @HimanshuSharma-jr1jj
    @HimanshuSharma-jr1jj 6 лет назад

    Sir, when you choose BC, DC and BD it form a cycle therefore I find that the MST contains a cycle which is against the property of a MST.

  • @shendryrosero1524
    @shendryrosero1524 9 лет назад +3

    awsome , there is no words, thanks a lot

  • @adityajoshi8288
    @adityajoshi8288 9 лет назад +1

    Good tutorial....I have a question. The other MST can be created using AC before AB. So new MST will be AC - 2, BC - 1, CD - 3. This new one even seems better than the one explained in this tutorial. See the comparison here:
    Lets Call AC, BC & CD as Tree 1. And AB, BC & CD as Tree 2.
    For Tree 1: Spanning from A to B = 3
    Spanning from A to C = 2
    Spanning from A to D = 5
    For Tree 2: Spanning from A to B = 2
    Spanning from A to C = 3
    Spanning from A to D = 6
    Can anyone help?

    • @varun135cool
      @varun135cool 9 лет назад

      +Aditya Joshi I didn't understand your examples tree 1 ( spanning from A to B =3) and tree 2 ( spanning from A to D =6) but i got the same doubt in taking AC or AB. In note he explained that if we have two or more edges with same weight then we can write any order in the edge table....

    • @hiteshvaidya3331
      @hiteshvaidya3331 8 лет назад

      While forming MST, it is okay to select any edge in case their weights are same. Of course you would obtain a different MST according to your choice of edge, but it's completely alright. There may exist more than 1 MST for a connected graph.
      So in your case, both the trees are right.

  • @mdmahbubalam2049
    @mdmahbubalam2049 7 лет назад

    You are a real genius bro.... without speaking you teach like a boss.... keep it up... But where i will get the c++ code,,, In DYclassroom i found some algorithm code of your lecture,,,, but i searched there but i can't find this algorithm code... very impatient to solve this in code.. please help...

  • @sameerkulkarni1077
    @sameerkulkarni1077 4 года назад

    thank u sir for giving us this video really helpful !!!!!

  • @muhammadsohail5638
    @muhammadsohail5638 7 лет назад +1

    nice sir g ......very helpul for me .....