Ask your own question, for FREE!
Meta-math 9 Online
OpenStudy (unklerhaukus):

Which algorithm can be used to find a Minimal Spanning Tree of any certain graph? and how can we prove that this algorithm will always find the Minimal Spanning Tree, for all graphs?

OpenStudy (zzr0ck3r):

minimal or minimum?

OpenStudy (zzr0ck3r):

if you mean minimum then there are a few. google Kruskal and Primm algarithms and if you need help with either let me know. They are pretty easy and fun!

OpenStudy (zzr0ck3r):

I can walk you through either proof as well. They are pretty standard in any intro GT book.

OpenStudy (zzr0ck3r):

Greedy algorithms are usually easy points on a test, so I would learn them both ;)

OpenStudy (unklerhaukus):

Yes, Kruskal's and Prim's algorithms find the/a MST, But why do they always work?, and why do they give the same (or equivalent solutions)?

OpenStudy (unklerhaukus):

proof by contradiction if the smallest edge is not included in the mst, then including the smallest edge would create a multiple edge loop of — it would not be an mst, unless we remove some edges in the loop. if we remove edge that is not the smallest the, the mst would be even smaller, a contradiction

OpenStudy (unklerhaukus):

So the mst always includes the smallest edges.

OpenStudy (unklerhaukus):

|dw:1431776315538:dw|

OpenStudy (unklerhaukus):

|dw:1431776997628:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!