G-44. Minimum Spanning Tree - Theory

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

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

  • @takeUforward
    @takeUforward  2 года назад +27

    Let's continue the habit of commenting “understood” if you got the entire video. Please give it a like too, you don't 😞
    Do follow me on Instagram: striver_79

  • @vaidanshkukreja8970
    @vaidanshkukreja8970 2 года назад +78

    **IMPORTANT** POINTS FOR MST:
    1-> If each edge has a distinct weight then there will be only one & unique MST.
    2-> A complete undirected graph can have n^(n-2) number of Spanning Trees. For example : Consider a triangle which have 3 vertices and 3 edges so n=3 || 3^(3-2) => 3. Hence , it would have 3 spanning trees.
    3-> From a Complete graph by removing max(e-n+1) edges, we can construct a Spanning Tree.
    Hope it helps!!! 😊

  • @aaaaz424
    @aaaaz424 Год назад +57

    Striver, I dont usually have the habit of commenting on videos, but when I do, it only happens when I appreciate the content a lot. Thanks for this amazing contribution to all the novice programmers for whom graph 'WAS' a tough data structure :)

  • @debajyatibanerjee5480
    @debajyatibanerjee5480 2 года назад +19

    Understood! From lecture - 1 to 43 ✅

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

    This is the best and the most concise explanation of MST. Loved it ❤

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

    The way you teach makes me feel every topic is easier✨Thank you striver bhaiyya for making DSA easier for us!

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

    Thank You So Much for this wonderful video.........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @AryanSingh-eq2jv
    @AryanSingh-eq2jv 3 месяца назад +6

    you missed a bit
    1) n nodes -| -| -|
    2) n-1 edges | | |
    3) all connected | ===> tree | ====> spanning tree | ====> minimum spanning tree
    4) no cycles -| | |
    | |
    5) subset of a graph -| |
    |
    6) takes the minimum cost -|

  • @janhvisingh-ry8wp
    @janhvisingh-ry8wp 7 месяцев назад

    Never thought i would understand a topic like graph like no other , thankyou!

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

    Understood! So awesome explanation as always, thank you very much!!

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

    tumhari inglish acchi hai habibi ..and content bhi:)

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

    superb explanation 🤩. You are putting in a lot of effort to provide great content.

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

    Thank you sir 😁

  • @gurmehakkaur7339
    @gurmehakkaur7339 Месяц назад

    Understood 👍🏻👍🏻

  • @Ekam873
    @Ekam873 Месяц назад +1

    An MST does not contain any cycles. If a cycle exists, you can always remove one of its edges to reduce the weight.

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

    "Find the city with the smallest number of neighbors in a threshold distance"
    Could you please cover this question as it was mentioned in your sheet,just after floydd warshall algo

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

    Understood ++ thanks Raj

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

    Hi Striver, Great Work, You are putting perfectionism and great dedication in your videos,
    Can you make some videos on high level SYSTEM DESIGN ? Can you make a plan of creating System Design Sheet, your DSA sheet is helpful.

    • @abc-ym4zs
      @abc-ym4zs Год назад +1

      Aa year bro system design amaina manchi resource o
      Dorikinda

  • @TON-108
    @TON-108 3 месяца назад

    Thanks Bhai 🤍

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

    Thanks Striver.

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

    understood brother❣

  • @gautamsaxena4647
    @gautamsaxena4647 7 месяцев назад

    understood bhaiya

  • @AshutoshSingh-se8vf
    @AshutoshSingh-se8vf 2 года назад +2

    Now finally I am first Viewer 🤩

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

      Congratulation bro 🏅
      May God help you

  • @Learnprogramming-q7f
    @Learnprogramming-q7f 6 месяцев назад

    Thank you bhaiya

  • @anmoljain1276
    @anmoljain1276 7 месяцев назад

    Number of spanning tree in a complete graph is n^n-2 and if graph is not complete then it can be find by using krichoff law.

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

    Understood👍👍☑️☑️

  • @ajaybind6736
    @ajaybind6736 9 месяцев назад

    understood thanks

  • @DreamLife-05
    @DreamLife-05 2 года назад

    Understood 🙌💯

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

    understood🔥🔥

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

    thanks

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

    Understood❤

  • @paullater6230
    @paullater6230 9 месяцев назад

    Understood!!! Thanks

  • @TarunKumar-cn6in
    @TarunKumar-cn6in 2 года назад

    Understood ☺️

  • @devmahad
    @devmahad 8 месяцев назад

    Done, Thanks :)

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

    Understood.

  • @yashshukla1637
    @yashshukla1637 5 дней назад

    AWESOME!!

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

    Understood!

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

    can you please make a video on code of Total number of Spanning Trees in a Graph

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

    understood!

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

    can't we make MST of directed weighted graph?

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

      generally we don't. I don't see any use of it

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

    UNDERSTOOD

  • @AshutoshSingh-se8vf
    @AshutoshSingh-se8vf 2 года назад +10

    Dekh rhe ho Binod Striver Bhaiya ki Mehnat

  • @jyothiyadav2595
    @jyothiyadav2595 9 месяцев назад

    Understand

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

    understood

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

    Thankyou sir

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

    yes

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

    Understood

  • @singhalgarvit
    @singhalgarvit 10 месяцев назад

    watching at 1.5X ❌ watching at 2.5X ✅
    one night before exam 🙂

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

    Understood:)

  • @AmanGupta-ib5ss
    @AmanGupta-ib5ss 2 года назад

    understood :)

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

    got it.

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

    Nice

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

    nice

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

    #understood

  • @MJ-ou9ff
    @MJ-ou9ff 2 года назад

    i will be starting with cp so can you tell if there's anything like making notes in this like as in things i learn for cp
    Sorry,i know it's a stupid question but i will be joining clg so:p

  • @amritarya5035
    @amritarya5035 28 дней назад

    The example you have given does not follow the rule of MST cuz number of edges is not equal to n-1..... Here no. of edges is n+1... Why??

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

    GOD💙

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

    US

  • @punyashloknath1990
    @punyashloknath1990 Месяц назад

    there is one point which is missed in defination of spanning tree, spanning tree shoud not contain any cycle .

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

    6:43 got the mst with same sum but different design Here my design is
    2
    / | \
    6 1 3
    / \
    5 4
    Understood bhaiya 🙏❤️

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

    Understood Sir! :)
    Thank you! _/\_ ^^

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

    Aap kitne time sote ho

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

    undeestood

  • @Ekam873
    @Ekam873 Месяц назад +1

    there will always be no cycle in mst

  • @meghanagsgs3575
    @meghanagsgs3575 11 месяцев назад

    from node 5 to 6 , 5-1-2-6 , here the total sum is 13,why can't it be the minimum spanning tree.

    • @pqr.priyanshu
      @pqr.priyanshu 10 месяцев назад +2

      u have to visit all the nodes at least once

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

    "Understood"

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

    Umderstood

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

    ✅✅✅

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

    us

  • @PankajSingh-pb4vs
    @PankajSingh-pb4vs 4 месяца назад

    Op

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

    Understood ☺

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

    understood

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

    Understood:)

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

    Understood

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

    understood

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

    Understood

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

    understood

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

    Understood

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

    understood

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

    Understood

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

    Understood

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

    understood

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

    understood

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

    Understood

  • @1tav0
    @1tav0 Год назад

    understood

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

    understood

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

    understood

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

    understood

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

    understood

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

    understood

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

    understood

  • @YATHARTHBHARDWAJ-y8m
    @YATHARTHBHARDWAJ-y8m Год назад

    understood

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

    understood

  • @HarshMohta
    @HarshMohta 8 месяцев назад

    understood

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

    understood

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

    understood

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

    understood

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

    understood

  • @adi-w4j
    @adi-w4j 2 месяца назад

    understood

  • @towhidulislam2136
    @towhidulislam2136 Месяц назад

    understood