10 7 Computing Strong Components The Algorithm 29 min

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

Stanford Algorithms

Stanford Algorithms

Күн бұрын

Пікірлер: 7
@victor.ezekiel
@victor.ezekiel 2 жыл бұрын
Magical. The SCCs really just presented themselves.
@viharivemuri7202
@viharivemuri7202 Жыл бұрын
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?
@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 Жыл бұрын
"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   1   Graph Search   Overview 23 min
23:20
Stanford Algorithms
Рет қаралды 15 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 48 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 27 МЛН
11   1   Dijkstra 's Shortest Path Algorithm 21 min
20:46
Stanford Algorithms
Рет қаралды 17 М.
10   6   Topological Sort 22 min
21:54
Stanford Algorithms
Рет қаралды 19 М.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
11   4   Dijkstra 's Algorithm  Implementation and Running Time 26 min
26:28
Stanford Algorithms
Рет қаралды 13 М.
Wolfram Physics Project: A Discussion with Jim Gates
2:43:04
Wolfram
Рет қаралды 57 М.
13   4   Red Black Trees 21 min
21:19
Stanford Algorithms
Рет қаралды 9 М.
10   9   Structure of the Web Optional 19 min
18:51
Stanford Algorithms
Рет қаралды 8 М.
Learn Particle Swarm Optimization (PSO) in 20 minutes
19:08
Ali Mirjalili
Рет қаралды 312 М.
10   2   Breadth First Search BFS  The Basics 14 min
14:13
Stanford Algorithms
Рет қаралды 13 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН