Тёмный

Proof of Kruskal's Minimum Spanning Tree Algorithm 

Easy Theory
Подписаться 27 тыс.
Просмотров 7 тыс.
0% 0

Here we do a different video than usual, about algorithms! We show that Kruskal's Minimum Spanning Tree Algorithm is correct. (A tree is a graph without cycles, and spanning means every vertex is included. Minimum means of total minimum weight.) The idea is to think of each vertex as an "island", and that we are always maintaining islands (via merging), and islands always contain a tree.
Patreon: / easytheory
Twitch: / easytheory
Mixer: mixer.com/easy...
Discord: / discord
Facebook: / easytheory
Twitter: / easytheory
Teespring: teespring.com/...
If you like this content, please consider subscribing to my channel: / @easytheory
▶ADDITIONAL QUESTIONS◀
1. What if we select edges from maximum weight going downwards? What is the resulting tree?
2. What is the run-time of this algorithm?
▶SEND ME THEORY QUESTIONS◀
ryan.e.dougherty@icloud.com
▶ABOUT ME◀
I am a professor of Computer Science, and am passionate about CS theory. I have taught over 12 courses at Arizona State University, as well as Colgate University, including several sections of undergraduate theory.
▶ABOUT THIS CHANNEL◀
The theory of computation is perhaps the fundamental theory of computer science. It sets out to define, mathematically, what exactly computation is, what is feasible to solve using a computer, and also what is not possible to solve using a computer. The main objective is to define a computer mathematically, without the reliance on real-world computers, hardware or software, or the plethora of programming languages we have in use today. The notion of a Turing machine serves this purpose and defines what we believe is the crux of all computable functions.
This channel is also about weaker forms of computation, concentrating on two classes: regular languages and context-free languages. These two models help understand what we can do with restricted means of computation, and offer a rich theory using which you can hone your mathematical skills in reasoning with simple machines and the languages they define.
However, they are not simply there as a weak form of computation--the most attractive aspect of them is that problems formulated on them are tractable, i.e. we can build efficient algorithms to reason with objects such as finite automata, context-free grammars and pushdown automata. For example, we can model a piece of hardware (a circuit) as a finite-state system and solve whether the circuit satisfies a property (like whether it performs addition of 16-bit registers correctly). We can model the syntax of a programming language using a grammar, and build algorithms that check if a string parses according to this grammar.
On the other hand, most problems that ask properties about Turing machines
are undecidable. This RU-vid channel will help you see and prove that several tasks involving Turing machines are unsolvable---i.e., no computer, no software, can solve it. For example, you will see that there is no software that can check whether a
C program will halt on a particular input. To prove something is possible is, of course, challenging. But to show something is impossible is rare in computer
science, and very humbling.

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@EasyTheory
@EasyTheory 4 года назад
Next video! Office Hours #2: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MwJAHgq7e_Y.html
@ayresmacruby9822
@ayresmacruby9822 3 года назад
Much appreciate your expert explanation!
@EasyTheory
@EasyTheory 3 года назад
I appreciate you more!
@ashishtiwary7947
@ashishtiwary7947 Год назад
you are a great teacher who simplifies very difficult things thank you bro
@wonderstruck.
@wonderstruck. 3 года назад
Thank you! Super clear explanation
@EasyTheory
@EasyTheory 3 года назад
You're welcome!
@vtvtify
@vtvtify 4 года назад
What an absolute gem!
@EasyTheory
@EasyTheory 4 года назад
Thanks!
@thejozo24
@thejozo24 3 года назад
I love you! Saving me day before the exam!
@EasyTheory
@EasyTheory 3 года назад
No, I love YOU!
@goldiea6481
@goldiea6481 3 года назад
Really appreciate the way you teach!
@EasyTheory
@EasyTheory 3 года назад
Thanks very much! :)
@tahaalnufaili8838
@tahaalnufaili8838 3 года назад
Very nice video, I wished that you used an example where the next min edge is not adjacent to the previous min edge though.
@benzeltser9851
@benzeltser9851 2 года назад
Thank you friend
@dorinmitrut1241
@dorinmitrut1241 11 месяцев назад
The question is, if you have several arcs of minimum value at a given moment, how do you show that whatever choice you make you will reach the same final value of the tree (the minimum)?
@manasbansal7946
@manasbansal7946 2 года назад
If we have two weight functions like: w1(e) = w2(e)^2, then how do we prove that Kruskal's algorithm will return the same MST under both weight functions?
@EasyTheory
@EasyTheory 2 года назад
It won't always. Consider a graph (sufficiently large) that has one edge with weight -100 (which is in some cycle), and all other edges with weight 1. In this graph, any MST will include the -100 edge. If G' is the graph under your transformation, this same edge will never be selected in any MST. If instead every edge weight was nonnegative, then you'd be correct.
@ebaadace
@ebaadace 3 года назад
amazing.
@EasyTheory
@EasyTheory 3 года назад
Thanks!
@dannyisrael
@dannyisrael 3 года назад
nice!
@EasyTheory
@EasyTheory 3 года назад
Thanks!
@tongzhu6714
@tongzhu6714 Год назад
This is not a prove of minimality.
@BossKing1243
@BossKing1243 Год назад
Yes it is lmao
Далее
12. Greedy Algorithms: Minimum Spanning Tree
1:22:10
Просмотров 224 тыс.
Что думаете?
00:54
Просмотров 369 тыс.
Самый БОЛЬШОЙ iPhone в МИРЕ!
00:52
Просмотров 549 тыс.
3.5 Prims and Kruskals Algorithms - Greedy Method
20:12
Dijkstra's Algorithm vs Prim's Algorithm
20:36
Просмотров 69 тыс.
The Number Illusion You Won't Believe
16:36
Просмотров 2,5 млн
Minimum spanning tree theorem proofs
22:24
Просмотров 3,1 тыс.
Kruskal Algorithm Proof Correctness
12:47
Просмотров 8 тыс.
CS 5720 L20 03 Prim Correctness
21:36
Просмотров 1,3 тыс.
The Boundary of Computation
12:59
Просмотров 1 млн
How Dijkstra's Algorithm Works
8:31
Просмотров 1,3 млн
Что думаете?
00:54
Просмотров 369 тыс.