10 7 Computing Strong Components The Algorithm 29 min

  Рет қаралды 15,043

Stanford Algorithms

Stanford Algorithms

Күн бұрын

Пікірлер: 7
@viharivemuri7202
@viharivemuri7202 11 ай бұрын
Dear professor, at 9:38 in the video you said, "We can construct G_rev,. an obvious optimization is to use the same Graph G but to go upwards in arcs". This is slightly confusing to me, When I represent a graph as an adjacency list, for a given vertex I only have access to vertices that are adjacent to this. How can we go upwards with this representation. When I implement SCC algorithm, I usually read the input edge list and construct both G and G_rev, is there a better way to do this?
@victor.ezekiel
@victor.ezekiel 2 жыл бұрын
Magical. The SCCs really just presented themselves.
@ThePlacehole
@ThePlacehole 4 жыл бұрын
28:50, "you don't want to sort the nodes by their finishing times, because that would take n log n time." No, it wouldn't, the values are distinct.
@adnanmohamed6517
@adnanmohamed6517 3 жыл бұрын
I don't get how "the values are distinct" is a justification for that sorting will not take O(n log n). Can you please explain?
@viharivemuri7202
@viharivemuri7202 11 ай бұрын
"Values are distinct" is not the justification, the correct justfication is the values of finish times are between 1-n. So you can just use counting sort.@@adnanmohamed6517
@sushmitanigam5787
@sushmitanigam5787 6 жыл бұрын
Why does it work
@adnanmohamed6517
@adnanmohamed6517 3 жыл бұрын
Great question! Dr. Tim discusses this in the next video. @27:44 he says: "This is, of course, merely an example. You should not just take a single example as proof that this algorithm always works. I will give you a general argument in the next video."
10   8   Computing Strong Components  The Analysis 26 min
26:03
Stanford Algorithms
Рет қаралды 8 М.
10   9   Structure of the Web Optional 19 min
18:51
Stanford Algorithms
Рет қаралды 8 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 80 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 99 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 53 МЛН
10   1   Graph Search   Overview 23 min
23:20
Stanford Algorithms
Рет қаралды 15 М.
11   4   Dijkstra 's Algorithm  Implementation and Running Time 26 min
26:28
Stanford Algorithms
Рет қаралды 13 М.
11   1   Dijkstra 's Shortest Path Algorithm 21 min
20:46
Stanford Algorithms
Рет қаралды 16 М.
10   2   Breadth First Search BFS  The Basics 14 min
14:13
Stanford Algorithms
Рет қаралды 13 М.
13   4   Red Black Trees 21 min
21:19
Stanford Algorithms
Рет қаралды 9 М.
5   1   Quicksort  Overview 12 min
12:09
Stanford Algorithms
Рет қаралды 19 М.
9   1   Graphs and Minimum Cuts 16 min
15:51
Stanford Algorithms
Рет қаралды 36 М.
16   2   Bloom Filters  Heuristic Analysis 13 min
13:27
Stanford Algorithms
Рет қаралды 8 М.
5   2   Partitioning Around a Pivot 25 min
24:56
Stanford Algorithms
Рет қаралды 17 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН