G-44. Minimum Spanning Tree - Theory
HTML-код
- Опубликовано: 6 фев 2025
- GfG-Problem Link: NA
C++/Java/Codes and Notes Link: takeuforward.o...
DP Series: • Striver's Dynamic Prog...
SDE Sheet: takeuforward.o...
Check out our Website for curated resources:
Our Second Channel: / @striver_79
In case you are thinking to buy courses, please check below:
Code "takeuforward" for 15% off at GFG: practice.geeks...
Code "takeuforward" for 20% off on sys-design: get.interviewr...?_aff=takeuforward
Crypto, I use the Wazirx app: wazirx.com/inv...
Take 750 rs free Amazon Stock from me: indmoney.oneli...
Earn 100 rs by making a Grow Account for investing: app.groww.in/v...
Linkedin/Instagram/Telegram: linktr.ee/take...
---------------------------------------------------------------------------------------------------------------------------
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
Understood
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 :)
Same here ❤
U are more appreciating yourself rather than striver🤣
**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!!! 😊
This is the best and the most concise explanation of MST. Loved it ❤
The way you teach makes me feel every topic is easier✨Thank you striver bhaiyya for making DSA easier for us!
Understood! From lecture - 1 to 43 ✅
Knse year m ho
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 -|
Thank You So Much for this wonderful video.........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
Never thought i would understand a topic like graph like no other , thankyou!
tumhari inglish acchi hai habibi ..and content bhi:)
superb explanation 🤩. You are putting in a lot of effort to provide great content.
Understood! So awesome explanation as always, thank you very much!!
Thank you sir 😁
Understood sir!
Understood ++ thanks Raj
"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
sure I will do it
An MST does not contain any cycles. If a cycle exists, you can always remove one of its edges to reduce the weight.
Understood 👍🏻👍🏻
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.
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.
Aa year bro system design amaina manchi resource o
Dorikinda
Thanks Striver.
understood brother❣
Now finally I am first Viewer 🤩
Congratulation bro 🏅
May God help you
Thanks Bhai 🤍
Understood 🙌💯
Thank you bhaiya
Understood!!! Thanks
UNDERSTOOD
AWESOME!!
Understood❤
understood bhaiya
can you please make a video on code of Total number of Spanning Trees in a Graph
Understood👍👍☑️☑️
understood thanks
Understood!
understood🔥🔥
Done, Thanks :)
thanks
Understood ☺️
understood!
Understood.
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??
Thankyou sir
6:43 got the mst with same sum but different design Here my design is
2
/ | \
6 1 3
/ \
5 4
Understood bhaiya 🙏❤️
there is one point which is missed in defination of spanning tree, spanning tree shoud not contain any cycle .
can't we make MST of directed weighted graph?
generally we don't. I don't see any use of it
understood
Dekh rhe ho Binod Striver Bhaiya ki Mehnat
Understood:)
Understand
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
Understood
understood :)
yes
got it.
watching at 1.5X ❌ watching at 2.5X ✅
one night before exam 🙂
Nice
GOD💙
nice
from node 5 to 6 , 5-1-2-6 , here the total sum is 13,why can't it be the minimum spanning tree.
u have to visit all the nodes at least once
#understood
there will always be no cycle in mst
Aap kitne time sote ho
Understood Sir! :)
Thank you! _/\_ ^^
✅✅✅
US
Umderstood
undeestood
"Understood"
Op
us
Understood ☺
Understood:)
understood
Understood
understood
Understood
understood
Understood
Understood
understood
Understood
understood
understood
Understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood
understood