Prim's Algorithm - step by step guide

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

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

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

    No unnecessary voice overs, no dryness, no commentary. You, Sir, are doing God's work. Thank You.

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

    Thank you very much for making this video. A lot of websites have wrong explanation of this Algorithm. I came to your video after wasting my time over there .Now I have your channel for all my remaining doubts.

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

    You proved this phrase " silence is better than noise", your videos are helping me a lot,Thank you!

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

    if you really wanna thank this guy, watch the complete pre vid ad and click every ad pop up. this will support his efforts beautifully

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

      The Autumn Bench Studio thanks for watching and appreciating my work :-)

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

    It will be very simple and easy to learn if people will start teaching like this. Awesome way of teaching . Thanks a lot

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

    Dear Yusuf,
    Thank you from the bottom of my heart for making such great videos. I had my exam today and bumped into your channel last night. Checked 5 of your videos and that helped me a lot today. You have made my day. Thank you once again!

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

    You don't speak but the presentation is far way better than speaking. Awesome presentation. First ever video seen on youtube that explains concepts without speaking and that too step by step. Thank you.

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

    Yusuf, you are a saviour. your videos have helped me on numerous occasions. Thanks.

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

    thanks mate, i was studying for my data structure exam and feeling so depressed, but i now feel better after i saw "stay happy and keep smiling". Thanks for your encouraging ^^

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

    Another fabulous and easy solution to tough algorithm!!!!!! You are true genius Yusuf!!!!!!!!

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

      +Ganesh Bedekar thanks for watching :-)

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

    why not our colleges have best teacher like u ...marvellous explanation.
    thank u so much for this beautiful content

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

    It's really nice! Mathematics Dircrete is my most difficult subject. But.. only watch this video, it look so easy. Thanks u very much. You saved my life in university

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

    JazakAllah Sir
    Allah aap ko dil ka sakoon ata kare or asaanya paida kare(Ameen)

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

    thank you guys for helping this video reach 100K views. you guys are awesome.
    check out my other videos that i am uploading on sundays at 10am.
    see you in the next video.
    stay happy and keep smiling :-)

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

      You can give a little code template for this algorithm, please.

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

      why do you prefer to write explanations rather than talking? Such a silence made me feel a bit bored.

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

      Yusuf Shakeel nys bro

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

      Yusuf Shakeel the tutorial was very helpful.

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

      If you have lots of edges - would it not make drawing a table much more complex.

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

    Man, you are great! :) Before I start to read I just watch you video and create some picture in my mind. Then it helps to understand algorithm during reading materials, thank you so much!

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

      +Turxan Badalov thanks for the appreciation. each morning i check comments and the love and appreciation i receive encourages me to make more interesting videos.
      thanks again for watching and commenting :-)

  • @tombmax2008
    @tombmax2008 8 лет назад +10

    You didn't say a word and explain everything which is very understandable. I learn it :) Thank you very much :)

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

    was a very nice video sir.No complexities. Straight to the point.........well appreciable..

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

    Thanks man, you make these concepts so easy to understand, I always come to your channel when I'm studying for Uni tests

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

      +Matheus Seabra thanks. please share it with your friends if my videos are helpful :-)

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

    i watch your tutorial first time than i think there is no voice than how it is understandable but when i complete this tutorial its Ausome bro very nice

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

    Assalamu Alaikum (varah..) sir...your explanation was Excellent that is used to presented my seminar clearly.. continue this process to other maths papers thank you

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

    Thanks mate. My confusions are now all gone thanks to your video .. :D

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

    Thank uuu soooooo much its sooo helpful nd ur way to explain without voice its amazing

  • @SingwithSree
    @SingwithSree Год назад

    Very simple, clear and easy to understand. Thank You.

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

    Apke videos bahut acche hain...thnx for all the videos ...👍👍👍👍👍

  • @Shubham-dm8ws
    @Shubham-dm8ws 7 лет назад

    simple and clear tutorial ,that's what i was looking for. Good Work buddy!!

  • @amanryzus
    @amanryzus 7 лет назад +14

    hi I definitely liked the simplicity of your teaching
    keep up the good work !! :D

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

    Seriously, it helped me in end time and gave me a strong insight. Thanks !

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

    Excellent video, this really help me understand my class

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

    thank you sir i took from your channel. thanks a lot. your teaching way is quite impressive. while without audio............

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

    Brilliant video! Demystified Prim's Algorithm so much. Immense thanks!!!

  • @superrandomvideos976
    @superrandomvideos976 7 лет назад +3

    thanks to you tomorrow is my final exam now your video is helping me much .....

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

    Great tutorial. Helped a lot with my homework.

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

      +Myles Chatman thanks for commenting :-)

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

    This was one topic I avoided! Never knew it was so simple! Thank you Yusuf! Helped a lot at the last time! *sob* :')

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

    consider a 5*5 matrix , if we got 2 same values in when finding smallest value in 1st two rows , or 3 values when considered 1st three rows . then what edge is to be marked first??
    note: 2 values or 3 values as the smallest value has been selected to b4 vertices

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

    Awesome work!!! Yeah there is no sound in your videos, but by the way its good to understand well in the silence, keep adding more...

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

      +deepak dodeja thanks for watching :-)

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

    Hey Yusuf. Really good and very easily understandable videos.
    Waiting for the other videos on algorithm.

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

    Thank you for the video, helped a lot.
    Just an advice that you should've spoken throughout the video.

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

    amazing ...itss soo easy .. nice style of teaching....

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

    Thanks for the helpful tutorial! It was right to the point and easy to understand. I love the positive comments as well! :)

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

    it's better than my teacher's explaination. thx man

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

      +Eliyahou Zagabe thanks for watching :-)

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

    Thank a lot for this video!! I missed a class on this lesson and this video really helps!!

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

    how you make such video..which software ?

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

    does one always go from row to row to find the smallest unmarked value, or do you advance to the row that had the same marked value? Assume the smallest value in row A had been at column C, then AC and CA would have been marked. Would you go to row B next, or advance straight to row C? This logic seems to coincide with your example because once an edge was marked with vertex D, you stopped, instead of repeating the procedure to find smallest unmarked value in row D. Please clarify.

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

    Nice video!!! I was having trouble finding decent content of this subject. Thank you!

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

    Excellent teaching skill you have had ,Thank you,Buddy.

  • @aditghosh4522
    @aditghosh4522 10 лет назад +5

    Thanks a lot :) you've saved my grade

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

      adit ghosh thanks for watching :-)

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

    Yusuf bhai ur videos are simply awsome . :')

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

    dude!..your tutorials are pretty awesome!!.

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

    dude let me worship you............these are the easiest explanations I've seen.

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

      +aditya patnaik no you don't have to worship me. i am just making videos...
      thanks for the comment and thanks for watching :-)
      hope you find my other videos helpful
      goo.gl/Z89n9o

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

    Dear Yusuf ,
    can you share us the PPt slides that you are using?

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

    Amazing.... explanation thanks for sharing your knowledge🙂

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

    and what if there is smallest edge making circuit , will we reject that edge and also mark that in table. please guide!

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

    why we are taking infinity from A to D ?

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

    Thank you a lot. Best tutorial on this algorithm

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

      Rahma Sallam thanks for watching :-)

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

    your tutorials are awesome....helps a lot thanks

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

    Clear and concise explanation, thank you :)

  • @ShinAkuma
    @ShinAkuma 9 лет назад +12

    you saved my 10 marks in the exam I'm to attend in 4 hours.

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

    thanks again sir. and sir i want to DAA other lecture also like greedy algo, pseudo code, NP hard, multistage graph etc. can you provide us ?

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

    Baya please rply my question the edge weight values are taken random or any special case.

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

    Very Precised and Useful. Helped a lot! Thankyou :)

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

      +Sakshi Boolchandani thanks for watching and commenting :-)

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

    Why there is no sound in your vids?

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

      Massoud Massoudi thanks for watchingi will add sound in my future videos.

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

    Excellent Yusuf.. keep it up with good work and stay blessed :)

  • @LocalAI123
    @LocalAI123 9 лет назад +8

    IF there are two same numbers in A-row,what should I do? Sorry about my poor English....

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

      +dy l you just choose any of them, doesn't matter. There can be more than 1 MST in a graph.
      Total weight should be the same in the end.

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

      Exactly you can choose any of the one doesn't matter...

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

    hey Yusuf,One single question and please reply asap.
    When you say that, "now find the smallest value in row-A, row-B and row-C while visiting the third row i:e Row-C" what actually does this means?? Do I have to get the value smaller in all these row(A,B,C)?? Even when'm visiting the third row and the smaller is present in the first row, then i have to choose the value of first row? And if this is so then what will be the next visiting row? Row-C or Row-D ?
    Please reply asap as my paper is ahead..and i came to ask this question when i was trying some big (9*9 table) tree to find MST using Prims Algo.
    thank you.

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

      Pratik Lalan He said unmarked
      from first two rows 4 and 5 were marked

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

      So Bruce Wayne, you mean to say that, If I've a table of 9*9 and m visting 7th row, then I do have to find the smallest of all the previously visited row having unmarked value? Is this what you mean?

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

      Pratik Lalan there will be 6 values which will be marked
      Apart from those choose smallest among all the rows

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

      @Bruce Wayne, Thanks man. I really appreciate your concern towards me. Soon I will be solving that problem again and will be back here if get any problem further..

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

    may be the best explaination for prims algol... nicee

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

    Thanks Yusuf, it was quite straightforward. :)

  • @purnimavermagraphics
    @purnimavermagraphics 5 лет назад +1

    Very simple and easy tutorial
    Thanks a lot 😉👍

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

    hey buddy, do u have videos of graphs ?

  • @fabe-ev3xp
    @fabe-ev3xp 7 лет назад

    Good work buddy you taught well
    Well done !

  • @Gauravkumar-ro9ke
    @Gauravkumar-ro9ke 8 лет назад

    you make it so easy to understand.
    thanks.

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

    Thanks. It is clear and easy to follow,

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

    Can you do a tutorial of a circular linked representation of the polynomials? Thank you in advance

  • @batuamparh
    @batuamparh 8 лет назад +23

    this doesnt work at all times. not with more complex trees

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

      can you provide examples to justify please?

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

      @@sayak obviously can't provide an example here. But i tried using this method on a graph with 7 nodes and it didn't work. A cycle formed which should not happen.

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

      @@rct3vids99 ok thanks if u can post a link to that question I could see it

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

      This a greedy algorithm that chooses simplicity over accuracy. It tends to be inaccurate sometimes.

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

      @@sayak please check a graph at site geeks for geeks.For that it doesn't work may be i'm wrong but check it

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

    what if two rows have same value which one to select?

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

    question: when checking A row , smallest number was 5. when checking A row and B row, smallest number was 4 and when checking A row, B row, and C row, smallest number was 5?? how? if we have to check for common smallest number, then while checking A row and B row, minimum number should have been 5

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

      +Anubhav Koul Smallest unmarked (non-ticked) edge

  • @st-yi4oi
    @st-yi4oi 8 лет назад

    Simple & powerful! excellent job!

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

    very very very good presentation bosss👍👍👍👍👍👍☺☺☺👌👌👌👌

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

    in the case of A -- > D
    my prof worked like A --> B --> D and gave it a number instead of denoting infinity, my prim's algorithm is wrong according to your explanation.
    can you explain that?
    he says A is connected to D via B.

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

      Hello Fawad N,
      Well yes, A is definitely connected with D via vertex B, and it is also connected via C, but the algorithm in this video says that we need to consider only those vertices that are directly connected by an edge. And in the graph (show in the video) we can see that there is no edge that connects A and D directly, that's why I inserted infinity in the table.
      And yes, Prim's algorithm is for minimum spanning tree which tells us that the final result will have the least(minimum) weight.
      Now if we consider A-->B-->D then the weight of the two edges combined will be 16 (please refer video for detail) which is higher than the correct weight and will automatically get discarded in the final stage. Similarly, if we consider A-->C-->D then the weight is 15, again not the least and will get rejected.

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

      (Y)

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

    bhai jan ap kis city sa hen

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

    Short and Simple!! Nice Video.

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

    happy new year
    stay happy and keep smiling :-)
    #happynewyear #stayhappyandkeepsmiling #yusufshakeel

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

      Yusuf Shakeel please sir in the end write a small algo too.

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

      thks for the tutorial .simple and easy !

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

    By which slideshow or software do you use to create this??

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

    sir.... can you explain some on tree in graph theory

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

    Really good video.
    Would be a lot better if there was an audio with it.

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

      +Rishabh Soni thanks for watching :-)

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

    you are amazing ... thanks a lot .. I hope from god to keep you from any dangerous

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

      +‫حسن اسماعيل‬‎ thanks for watching :-)

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

    Damn, thanks a ton man! For this and for Kruskal's algorithm too!

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

    thank you very much for this great teaching

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

    Please make a tutorial video on AVL trees !

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

    I think this is very best for lern prim's algorith.......

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

    thanks again, there is no words, is awesome

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

    Mr.Shakeel, please give us one on Kruscals algorithm.

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

      hope this helps
      ruclips.net/video/5XkK88VEILk/видео.html

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

    Really Nice Video..Keep Rolling Out

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

    It will be really helpful if you provide a link for the code.

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

      www.dyclassroom.com/graph/prim-algorithm-finding-minimum-spanning-tree

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

    thank you it's explain amazing briefly but useful

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

    Very useful.Helped a lot .........Thank you!!

  • @debarghya.sarkar
    @debarghya.sarkar 8 лет назад

    WHAT HAPPENS WHEN THE IT FORM A CIRCUIT ?

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

      +Debarghya Sarkar The algorithm can't form a circuit because you only follow edges to vertices that haven't been added already. You can't reach the same vertex twice either directly or indirectly.

    • @debarghya.sarkar
      @debarghya.sarkar 8 лет назад

      kreativitetNO thanks a lot .i understood.

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

    Thank you very nice explanation!.

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

    Super ra thammudu complete verey

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

    Thanks yusuf, helped a lot❤

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

    The concept would be more clear to grasp if the edge A-C has weight 4.
    Anyways, thanks for a quick revision of the topic :)