Solutions
Pricing
Log in
Teams
Get started
Log in
Get started
Min Spanning Tree
АА
by
Аида Адамова
·
1 view
·
Updated Mar 4, 2022
Share
Embed
Create your own
Chapters
00:00
Chapter 1
00:08
Chapter 2
00:28
Chapter 3
00:32
Chapter 4
00:41
Chapter 5
00:56
Chapter 6
00:58
Chapter 7
01:25
Chapter 8
01:26
Chapter 9
01:30
Chapter 10
01:31
Chapter 11
01:39
Chapter 12
01:40
Chapter 13
01:42
Chapter 14
01:43
Chapter 15
01:44
Chapter 16
01:57
Chapter 17
02:08
Chapter 18
02:09
Chapter 19
02:20
Chapter 20
02:21
Chapter 21
02:39
Chapter 22
02:40
Chapter 23
02:42
Chapter 24
02:48
Chapter 25
02:55
Chapter 26
02:56
Chapter 27
03:12
Chapter 28
03:13
Chapter 29
03:32
Chapter 30
03:33
Chapter 31
03:48
Chapter 32
03:49
Chapter 33
04:05
Chapter 34
04:06
Chapter 35
04:08
Chapter 36
04:18
Chapter 37
04:36
Chapter 38
04:48
Chapter 39
04:50
Chapter 40
04:51
Chapter 41
04:53
Chapter 42
04:53
Chapter 43
05:02
Chapter 44
05:03
Chapter 45
Audio Transcript
Auto-generated
00:00 - 00:06
um Hello everyone today. I am going to tell you about the minimum spanning tree.
00:07 - 00:09
So let's move to its meaning first.
00:10 - 00:14
So what is the spanning tree itself in general?
00:14 - 00:18
A spanning tree is a subset of graph tree which has
00:18 - 00:23
all the virtues is covered with minimum possible number of ages
00:23 - 00:27
and the spanning tree does not have cycles and it cannot be disconnected.
00:30 - 00:32
So what is the minimum spanning tree?
00:34 - 00:36
Let's understand this through a comparison here.
00:36 - 00:40
You can see the underrated graph, the spanning tree and the minimum spanning tree.
00:42 - 00:46
Um The cost of the spanning tree is the sum of ways
00:47 - 00:49
of all the ages in the tree.
00:50 - 00:52
These are the weights.
00:53 - 00:57
There can and there can be many spanish trees,
00:59 - 01:03
minimum spanning tree is a spanning tree where the
01:03 - 01:06
cost is minimum among all the spanning trees.
01:07 - 01:09
Like this is a spanning tree
01:10 - 01:12
and this is all spanning tree.
01:12 - 01:14
But if we um
01:15 - 01:16
add those
01:17 - 01:17
wait
01:19 - 01:20
um
01:20 - 01:22
the count will
01:22 - 01:23
lower their.
01:24 - 01:26
So this is the minimum spanning tree.
01:28 - 01:31
Um there also can be many many many minimum spanning trees.
01:33 - 01:37
You had two famous algorithms for finding the means penetrate
01:37 - 01:40
its close calls and screams algorithm.
01:42 - 01:43
Let's
01:44 - 01:45
start with cruz coke
01:46 - 01:46
algorithm.
01:47 - 01:51
So how does it work? Let's find out by the example.
01:51 - 01:53
There there is the example.
01:54 - 01:56
And
01:56 - 01:58
let's start with the first step.
01:59 - 02:05
First of all, we are finding the age with the least weight and highlighted
02:06 - 02:07
because this one
02:07 - 02:09
is the least one.
02:09 - 02:15
Next step is to finding the next age with the lowest weight and highlighted.
02:15 - 02:16
So
02:16 - 02:17
too is next
02:18 - 02:19
low step,
02:19 - 02:21
lowest weight
02:21 - 02:23
and the first step.
02:23 - 02:25
The third step.
02:25 - 02:28
The last step we continue selecting the lowest ages
02:28 - 02:30
until all notes are in the same tree.
02:31 - 02:32
But
02:33 - 02:35
we remember that
02:36 - 02:37
we cannot have
02:37 - 02:38
the cycle
02:41 - 02:43
next spring's algorithm.
02:44 - 02:47
How does it work? Let's find out by
02:47 - 02:49
the this example.
02:50 - 02:53
The first step is choosing a random notes and highlighted
02:53 - 02:55
for this example. I'm doing note C
02:57 - 02:57
then
02:58 - 03:01
find all the all of the ages that go
03:01 - 03:06
to um highlighted notes. For this example note C has three ages with weight
03:06 - 03:11
12 and three. Highlight the edge with the lowest weight,
03:11 - 03:12
it's one. Yes.
03:13 - 03:18
And next step look at all of the nodes highlighted so far
03:19 - 03:21
in this example that A and C.
03:21 - 03:21
Yes
03:22 - 03:24
and highlight the age with lost weight.
03:24 - 03:26
Not five, not four but
03:26 - 03:27
so yes.
03:28 - 03:31
And if you have more than
03:31 - 03:33
one each with the same way big around the one.
03:34 - 03:40
Next step, highlight the age with the lowest weight, choose from all of the wages,
03:40 - 03:42
all of the ages that
03:42 - 03:45
first come from all of the highlights notes and
03:45 - 03:49
second reach a note that you haven't highlighted yet.
03:50 - 03:57
And the 5/5 step is repeating steps five and six until you have
03:57 - 04:01
no more on highlighted notes and in the end we will have such
04:02 - 04:04
um a spanning tree
04:04 - 04:05
minimum spanning tree.
04:07 - 04:08
Okay,
04:08 - 04:09
and
04:10 - 04:10
the example,
04:11 - 04:15
if the connecting tree helps to find the easiest path available,
04:15 - 04:15
then
04:16 - 04:19
in my opinion it can be represented in the following life examples.
04:20 - 04:21
The first one example,
04:22 - 04:23
um
04:24 - 04:26
I have a list of places to go and I need
04:26 - 04:29
to arrange them so that the shortest distance in the end
04:29 - 04:31
I will pass.
04:31 - 04:32
So,
04:32 - 04:37
for example, this is home shop, um school and the library. Yes.
04:37 - 04:43
So having designed the places as versaces and the distance at the weight of the age,
04:43 - 04:47
I found this and learned the shortest way.
04:47 - 04:49
Yes, this is the shortest way.
04:51 - 04:57
So, and the second example is similar, but with the
04:57 - 04:58
mm hmm.
05:01 - 05:02
Home work, school home.
05:03 - 05:05
Thank you for attention.
See full transcript