L-4.9: Prim's Algorithm for Minimum Cost Spanning Tree | Prims vs Kruskal

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • 👉Subscribe to our new channel: / @varunainashots
    👉Links for DAA Notes:
    🔗File-1: rb.gy/2byrg
    🧑‍🎓Contributed by: Junaid Gazi
    🔗File-2:
    🧑‍🎓Contributed by: Mannu Garg
    In computer science, Prim's algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph. This means it finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized. How Prims algorithm actually works and How it is different from Kruskal. All Explained with examples.
    ► Design and Analysis of algorithms (DAA) (Complete Playlist):
    • Design and Analysis of...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ► Operating System :
    • Operating System (Comp...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on RUclips: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmash...
    ► Follow us on Threads: www.threads.ne...
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

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

  • @milanjain6295
    @milanjain6295 3 года назад +865

    Why don’t teachers in college teach like these people!!! Great teaching btw

    • @rishabhmanglani8286
      @rishabhmanglani8286 3 года назад +11

      Exactlyy

    • @princebaweja3936
      @princebaweja3936 3 года назад +28

      @milan jain
      He teaches in my College

    • @siddharthsinghh
      @siddharthsinghh 2 года назад +8

      Pagar kam milta hai

    • @ravish7010
      @ravish7010 2 года назад +1

      BCOS everyone play different roll 😌

    • @RB-js7hq
      @RB-js7hq 2 года назад +65

      They teach but our mindset be like: RUclips se pad lenge class me baate karte h...🙂

  • @rishitbhojak7073
    @rishitbhojak7073 2 года назад +109

    Crisp and Clear Explanation! My university professor took 3 days (6 lectures ) for this topic and sir aapne to 10 minutes mein zabardast concept clear kar diya!!! TYSM SIR

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

      True

    • @dheerajnakra3904
      @dheerajnakra3904 2 года назад +4

      Dono teachings ke objectives me differnece hai..ek competiton ke lie padha rha hota hai ok ek ko algorithem develop krna and uska bigger case me use krna sikhana hota hai..student ki capability pe b depend krta hai.

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

      Where r u studying?

    • @user-nu2tw8bi7s
      @user-nu2tw8bi7s 4 месяца назад

      college wale padhate bhi hain?

    • @magician9848
      @magician9848 3 месяца назад

      Fire him and say him u r not capable saala loudi😂 bolo bhai uske paas

  • @shubhamaths
    @shubhamaths 2 года назад +159

    College teachers take 2 hours to make us understand this simple concept ...still students are not able to understand. You explained it just in 10 mins. Thank you so much ❤🧡🧡

    • @Adnan_19946
      @Adnan_19946 Год назад +6

      College masti karne jaate hai yt pe padhne aate hai isliye 😂

    • @Le_Parrikar
      @Le_Parrikar 5 месяцев назад

      @@Adnan_19946 Exactly

    • @hhjj683
      @hhjj683 5 месяцев назад +1

      You should quit engineering

    • @shubhamaths
      @shubhamaths 5 месяцев назад +2

      @@hhjj683 Thanks for the suggestion, this is my last sem. 🤣

    • @fact9270
      @fact9270 2 месяца назад

      Beczz of focus

  • @Belgium0_0
    @Belgium0_0 8 месяцев назад +86

    Kal exam ha aj video dek Raha hu..😂😂😂😂
    Update:- ma pass ho geya hu🥳

  • @divyanshusingh2243
    @divyanshusingh2243 3 года назад +6

    I visited more than 20 channel of data structure but I could not get the explanation .
    But finally I can say I m building my future from here 🙏🏻🙏🏻🙏🏻🙏🏻 thankuuuu soooo much Sir 🙏🏼🙏🏼🙏🏼🙏🏼❤️❤️❤️❤️✨✨✨✨✌️✌️✌️✌️✌️✌️✌️✌️✌️✌️✌️🙏🏻🙏🏻👍👍👍😊😊😊

  • @sitcj
    @sitcj Год назад +24

    I'm in third semester right now but im following your videos since 1st semester. Actually you're my teacher. Thank you sir

    • @zarinabegum6066
      @zarinabegum6066 2 месяца назад +1

      You are lucky to have a teacher like him in ur clg

  • @mixshots1801
    @mixshots1801 Год назад +30

    hats off to your passion to teach students in this very excellent interactive way, we are lucky to have u sir , take care of your health

  • @carljordan983
    @carljordan983 11 месяцев назад +25

    Strongly recommended for those who have doubt in this topic 😊

  • @PiyushK6337
    @PiyushK6337 3 года назад +48

    Watching the whole playlist, and making my notes. It helped me in internal and will surely help me in externals 🔥🔥

  • @chinmayaSeema
    @chinmayaSeema Год назад +7

    After watching many of your DSA videos , I find all the DSA teachings, where complex things is being explained like simple mathematics of addtion; is uncomparable to any of the Top lectures of Top Univeristies of the world.
    You have made students life easy.

  • @biophilic23
    @biophilic23 3 года назад +10

    Thank you so much Sir! I love you ❤
    You are life saver

  • @khanzadigurya5175
    @khanzadigurya5175 2 года назад +9

    I am very happy because tomorrow is my paper and because of this video I have clear all my doubts
    Thank you Sir❤

  • @parinitanema
    @parinitanema 3 года назад +13

    I always had confusions in this topic, but you explained very well. Thank you so much sir.. :)

  • @tonypepper
    @tonypepper 2 года назад +6

    Sir , it's like God gave u a purpose. Purpose to help those in need of studies. Thank you sir. For putting in this kind of effort. Lemme tell u something sir. One day , something big and good will happen to you and would change your life.. 😌❤️. Plz keep posting videos..

  • @subhashishbehera7415
    @subhashishbehera7415 3 года назад +10

    Thanks to this virus i am unable to understand properly in the class but then i discovered your channel and now iam able to understand all the important concept thanks to u 🙂😀

  • @shubhambisht1300
    @shubhambisht1300 2 года назад +8

    To The Point! And Precise!
    I would like to say Sir you nailed the explanation,
    I would like to express my gratitude😊

  • @ankitprajapathiit
    @ankitprajapathiit Год назад +2

    sir! aapne bahut ache way se full DSA ko cover kiya hai. love ur work sir. bahut ache se topic sab clear ho gya hai mera. THANK YOU SO MUCH SIR.

  • @1bitmultiverse
    @1bitmultiverse 2 года назад +26

    Everyone wants a teacher like him but noone is willing to be a teacher like him #DoubleStandards 😂😂

  • @ajcreations8554
    @ajcreations8554 2 года назад +2

    मैने आपकी केवल दो वीडियो देखी और मे आपका big fan हो गया हु .......

  • @preethivishwakarma4222
    @preethivishwakarma4222 3 года назад +14

    Such a wonderful unambigious explanation sir. Appreciate the hardwork 👍👍Plz keep making such videos. Thank you

  • @chhayasevale7326
    @chhayasevale7326 8 месяцев назад +1

    Thanks sir. Still helpful after 3 years. May god bless you and your family. You have helped many students!

  • @fishkibits9679
    @fishkibits9679 5 месяцев назад +1

    0:53 p
    2:42 appoach
    2:50 step 1 start from any veryex
    3:14 step2 usse connected vertex 3:28 minimum wt/cost wala option ( joh connection hai) choose Karo

  • @sanketsingh5555
    @sanketsingh5555 2 года назад +8

    I want teacher like you in my clg literally you're amazing sir 🙏🏻❤️

  • @namansingh4684
    @namansingh4684 Год назад +3

    thank you very much for these videos bhaiya, these are truly a lifesaver. All of my college friends watch and love your videos. Your way of teaching makes concepts very easy and interesting.

  • @Krushil2112
    @Krushil2112 Год назад +3

    " Subscribers bahot jaruri he " is my best part

  • @-07-RoushanAara
    @-07-RoushanAara Месяц назад +1

    I can confidently watch ur videos even before 20 mins of exam 🙌 never doubting ur explanation ❤️

  • @aayushchauhan5528
    @aayushchauhan5528 2 года назад +3

    sir aap jasa koi nhi
    aap bhut aacha btate hoo

  • @AyeshaKhan-de5le
    @AyeshaKhan-de5le 3 года назад +6

    Love ur way of teaching💜Lots of love from Pakistan 🇵🇰🇵🇰🇵🇰🇵🇰🇵🇰🇵🇰🇵🇰

  • @aayushchauhan5528
    @aayushchauhan5528 2 года назад +2

    i love your teaching method

  • @uzumakisha256
    @uzumakisha256 8 месяцев назад +4

    00:06 Prim's algorithm is used to find the minimum cost spanning tree.
    01:45 Prim's algorithm for minimum cost spanning tree
    03:12 Choose the minimum cost edge connected to each vertex
    04:36 The minimum cost spanning tree is being calculated using Prim's Algorithm.
    05:46 Prims algorithm always constructs a connected minimum cost spanning tree
    07:00 To create a minimum cost spanning tree, cycles should be avoided
    07:59 Using Prim's algorithm, the minimum cost spanning tree is formed by connecting nodes with the least weights.
    08:57 Prims Algorithm works by finding the minimum cost spanning tree
    Crafted by Merlin AI.

  • @himanshusharma2960
    @himanshusharma2960 3 года назад +5

    Sir ap pure din kaam kr k thak jate hoge...
    Rat ko BGMI khelo mere sath 😁😁😁😁
    Jokes apart, you are doing a fabulous work sir, whenever i open youtube, i always open your channel, feels privileged. Thanks a lot sir.❤️❤️❤️❤️

  • @aliather2723
    @aliather2723 Год назад +3

    Thank you sir you are awesome teacher! You don't know what have you done for us. Thank so much!

  • @asitgaikwad9294
    @asitgaikwad9294 9 месяцев назад +1

    saved my KT....thankful😉

  • @codding32world50
    @codding32world50 3 года назад +11

    I am not first
    I am not Last
    But whenever I see Gate Smashers notification I click fast😃

  • @nallagondachandrika9605
    @nallagondachandrika9605 2 года назад +1

    Tq bro your videos are very helpful to me ur the best in teaching in a very simple way

  • @SaadKhan-gz6ef
    @SaadKhan-gz6ef 2 года назад +2

    Sir U are really amazing. Your teaching style is Best.

  • @powerspan
    @powerspan 3 года назад +18

    Because of your sql classes im able to crack interview and got offer letter from tcs company thanks for everything 🙏🏻✌🏻

    • @GateSmashers
      @GateSmashers  3 года назад +9

      Excellent

    • @gannonaydin8204
      @gannonaydin8204 3 года назад +1

      i know I'm kinda randomly asking but does anybody know a good website to watch newly released movies online?

    • @gideonmarcus2847
      @gideonmarcus2847 3 года назад +1

      @Gannon Aydin I watch on Flixzone. You can find it on google :)

    • @charlescolby45
      @charlescolby45 3 года назад +1

      @Gideon Marcus Yea, I've been watching on FlixZone for months myself :D

    • @gannonaydin8204
      @gannonaydin8204 3 года назад +1

      @Gideon Marcus Thanks, signed up and it seems like a nice service =) Appreciate it!

  • @anuradhajoshi8688
    @anuradhajoshi8688 3 года назад +5

    Thank you so much for an easy explanation!

  • @ramankumar41
    @ramankumar41 2 года назад +2

    best explanation on this topic. !!!

  • @MuhammadZubair-gy4ql
    @MuhammadZubair-gy4ql 3 года назад +4

    thank you for explaining this concept beautifully

  • @jainamchheda
    @jainamchheda 2 года назад +1

    HAVE DSA UNIV EXAM ON THE NEXT DAY OF BOXING DAY AND TILL TODAY I MUST HAVE WATCHED MORE THAN 1O VIDEOS OF YOUR'S. THANKS A LOT SIR THEY ARE HELPING A LOT FOR MY EXAM PREPS!!!!🙇‍♂️🙇‍♂️🙇‍♂️🔥🔥🔥💙💙

  • @b_13_abhishekpatil17
    @b_13_abhishekpatil17 3 года назад +2

    Literally op content ❤

  • @ayushiyadav1
    @ayushiyadav1 4 месяца назад +2

    hehee College faculties mark attendence here...😂😂 Honestly sir my ADA, Software, OS, COA... all faculties watch your videos, makes notes and try to deliver content in class still fail to match your level..you're truly a gem. Savior for both students and faculties ♥😇😅

  • @FarhanKhan-io3vt
    @FarhanKhan-io3vt 3 года назад +3

    ur so underrated sir i love your videos...

  • @Yeh_Hai_Abhi
    @Yeh_Hai_Abhi 3 месяца назад +2

    Best teacher 🫡

  • @epicextreme3963
    @epicextreme3963 3 года назад +2

    you have saved my internal exams tody there is my internal exam ia am watch your videos and scoring good marks thank you bro and i HAVE A REQUEST give the lectures on machine learning

  • @its_ZASH
    @its_ZASH 3 года назад +2

    this video make me to like this .......thanks sir for this

  • @pravithacp7120
    @pravithacp7120 3 года назад +2

    Thank you so much.... 🙏from kerala

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

    Thank you so much sir
    I will undersand very very well sir

  • @vaibhavdixit6005
    @vaibhavdixit6005 3 года назад +3

    Extremely helpful videos
    Please make more and more videos

  • @theflash34529
    @theflash34529 8 месяцев назад +1

    Superb sir I am watching this video before my exam

  • @divyanshverma9284
    @divyanshverma9284 2 года назад +2

    Sir, you are great sir, thanks for the help.
    Aapki wajah se 5th sem pass ho pa raha hai aur dua rahi to gate bhi pass ho jaega.
    Jai Shree Ram 🙏🏻.

  • @diptimayeeroypitam6653
    @diptimayeeroypitam6653 2 года назад +1

    Awesome sir ❤️

  • @user-ek8mr9oj1n
    @user-ek8mr9oj1n 2 месяца назад

    Thank you so much sir... Kal mera paper tha aur bohat acha ho gaya... Thanks from Pakistan

  • @sweetirai3383
    @sweetirai3383 8 месяцев назад +1

    Thank you sir you have explained very well❤

  • @aakashrao8052
    @aakashrao8052 3 года назад +2

    Love your explanation😍

  • @amankumarpandey2001
    @amankumarpandey2001 2 года назад +1

    Your teaching style and skills are best

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

    सरस्वति नमस्तुभ्यं वरदे कामरूपिणि ।
    विद्यारम्भं करिष्यामि सिद्धिर्भवतु मे सदा ॥ 🙏🙏🚩🚩🛕🛕🕉️🕉️😊😊🌞🌞🪔🪔💐💐🦚🦚⛳⛳💕💕📚📚📚📚🌷🌷🌹🌹📙📙📙📙🇮🇳🇮🇳👏💯👏💯🌸🌸🌿🌿⛳⛳🚩🚩

  • @prasadmutnale773
    @prasadmutnale773 3 года назад +2

    Explanation is Ultimate 🔥🔥🔥 really helpful

  • @Hafizhammasmalik
    @Hafizhammasmalik 2 месяца назад

    Hats off for such a great teacher,really like his method of teaching,may ALLAH bless him🌟🌟🌟

  • @amishachaudhary5688
    @amishachaudhary5688 2 года назад +1

    Thank you so much sir 🙏🙏

  • @mohmmadmd9535
    @mohmmadmd9535 18 дней назад +1

    Your teaching skills mind blowing sir ❤
    panga ho gya 😂

  • @jaihindjaibharat1182
    @jaihindjaibharat1182 6 месяцев назад +1

    Great explanation bhai itna toh mere teacher ko bhi nhi pta hoga prim algo ke bare me 😅

  • @ssss-jd9cl
    @ssss-jd9cl 3 года назад +2

    Please make video on time complexity analysis of algorithms

  • @diyapatel4449
    @diyapatel4449 2 года назад +1

    amazing sirrrrrrrrrr!!! love all your vidoes. helpe me a lot during exams

  • @fullformkiduniya4353
    @fullformkiduniya4353 2 года назад +1

    Great teaching😊

  • @rameshsabar9744
    @rameshsabar9744 Год назад +1

    Mind blowing explanation.

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

    jeundaaa reh Ustad..........
    saddi ty OR kadha diti hai.............
    Moula Khush rakhyy........
    Ummahhhhhhhhhhhhhhhhhhhhhhhhhh..........
    OR ki to bhens ki ankh ab to ...........................

  • @GamingParadise32
    @GamingParadise32 Год назад +3

    Thx brother u helped me in exams alot thx for the help u are giving to us Allah salamat rakhe hamesha apko

  • @himaniparekh380
    @himaniparekh380 2 года назад +1

    Panga ho gaya is another level 🤣🤣
    Very very helpful ❤

  • @meesamilyas7705
    @meesamilyas7705 6 месяцев назад

    To much easy way of learning in this channal great work for the students thank you soo much

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

    Kya padhate hai sir aap maja aa jata hai pura dimak me baith jata hai और और मेरे कॉलेज के टीचर भी आपके नोट्स से पढ़ाते है ।
    Thanks Varun sir .

  • @relax8147
    @relax8147 3 года назад +1

    Well done sir

  • @Gamingworld14874
    @Gamingworld14874 4 месяца назад +1

    Well Explanation

  • @laibahassan4281
    @laibahassan4281 Год назад +1

    prso paper hai mera or mujhe ap ki vedios mili sir thank uuuuu so muchhhh from pakistan :)

  • @rakeshmahato8005
    @rakeshmahato8005 2 года назад +1

    Thank you sir 🙏

  • @Solojyoti
    @Solojyoti 3 года назад +1

    Thank you very much very clear explanation 🙏🙏🙏💐💐

  • @nirbhaymaurya2931
    @nirbhaymaurya2931 Год назад +1

    Great teacher in CSE

  • @Farazchristian
    @Farazchristian 6 месяцев назад +1

    You are a great teacher ❤

  • @poojachauhan2709
    @poojachauhan2709 3 года назад +1

    Excellent👍

  • @navjotsingh-ee9wm
    @navjotsingh-ee9wm Год назад

    Sir bohot bohot thank you. Itna achha aaj Tak nahin samajh aaya tha ye topic. 😊❤

  • @queriousmaryum74
    @queriousmaryum74 2 года назад +1

    Sir ap ky liya no words

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

    Thankyou sir ❤️

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

    THANK YOU SO MUCH SIR. it helps a lot

  • @rishikabhati4383
    @rishikabhati4383 2 года назад +1

    Dil Se Thank You Sir Ji :)

  • @sriragunathvenkatramakrish2405
    @sriragunathvenkatramakrish2405 4 месяца назад

    Was very helpful in understanding the concept !

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

    mashAllah amazing content buht inteluctual hn aap

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

    Tha k you so much teachers like you is a the need of the hour in our country

  • @Farazchristian
    @Farazchristian 6 месяцев назад +1

    God be with you always

  • @heybuddy_JAI_SHREE_RAM
    @heybuddy_JAI_SHREE_RAM Год назад +3

    SIR OP intro subscriber bhut zroori h😂😁

  • @letsdoyoga7
    @letsdoyoga7 3 месяца назад

    This is the best expiration of this algo in 9 min

  • @mousumikhatun3008
    @mousumikhatun3008 3 года назад +2

    Hlw sir... Very helpful vdo

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

    Sir Ji you are the best!

  • @omchoudhary9817
    @omchoudhary9817 3 года назад +1

    Superb explanation sir.... subscribed your channel ..

  • @indraneelroy1587
    @indraneelroy1587 3 года назад +1

    great ++

  • @Nirmala1824
    @Nirmala1824 2 года назад +1

    I love you sir 😘 itni asan bana dene k liye ☺

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

    thank you sir... kal exam hai ..isilye binge watch kr raha lectures discrete maths ke ... bohot acche se explain kre hain aapne... thank you so much sir

  • @ankitjain6571
    @ankitjain6571 3 года назад +3

    thank you sir and GATE SMASHERS for such great videos it helps alot

  • @shahedii8434
    @shahedii8434 2 года назад +1

    WoW...Awesome 🧡🧡

  • @lexmem56
    @lexmem56 7 месяцев назад +1

    Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku Thanku v Thanku sir