Kosaraju's Algorithm for Strongly Connected Components

  Рет қаралды 17,871

Algorithms with Attitude

Algorithms with Attitude

Күн бұрын

Пікірлер: 30
@benmackenzie
@benmackenzie 3 жыл бұрын
David Scot Taylor, you are a hero.
@AlgorithmswithAttitude
@AlgorithmswithAttitude 3 жыл бұрын
Congratulations, you have written a short sentence that has never been written before.
@benmackenzie
@benmackenzie 3 жыл бұрын
Overdue!
@celstone
@celstone 4 жыл бұрын
So happy that you're back!!
@ashutoshkushwaha5326
@ashutoshkushwaha5326 3 жыл бұрын
That's an excellent explanation, specially how both the topological algorithm is used to find the SCC. One of the best videos on the internet 👌👌
@hdang1997
@hdang1997 4 жыл бұрын
2:30 A true coder can relate. Thank you for the video.
@dylanh.8029
@dylanh.8029 3 жыл бұрын
This is incredible- thank you for explaining it! Also, 2:31 LOL
@sb-jo2ch
@sb-jo2ch 3 жыл бұрын
Wow what a roller coaster ride of an algorithm! Not gonna lie I am feeling sick after watching the whole video! Thanks for uploading though. I came here because the textbook was proof heavy but now I think I really need to read the text book five more times to digest this haha.
@preetpatel292
@preetpatel292 4 жыл бұрын
I always wanted you to upload this video. This is the most intuitive explanation of why Kosaraju algorithm works and is it similar to Kahn's algorithm coupled with some key observation. God bless you.
@AlgorithmswithAttitude
@AlgorithmswithAttitude 4 жыл бұрын
I had put together most of a video for this a few years back, but at some point, a different intuition struck me. I wanted to go back to remake the two TopSort videos, this one depends on them, and it took me a while to get to them...
@yozaam
@yozaam 4 жыл бұрын
@@AlgorithmswithAttitude thanks for doing it your explanation is second to none!
@arthurkuritsin3629
@arthurkuritsin3629 4 жыл бұрын
Hi. Thanks you for putting so much effort into your videos :) I have over 15+ years of experience, working in top companies, watched and read tons of material. And your way of presenting is my favorite :) I understand that majority comes from Cormen but your presentation soooo simplier, condense and fun to watch!!!
@AlgorithmswithAttitude
@AlgorithmswithAttitude 4 жыл бұрын
Thanks. I wish I could put them out more quickly, but they take me a while to make.
@ahmadkhatib3117
@ahmadkhatib3117 2 жыл бұрын
This explanation was fantastic, the part on topological sort and DFS made Kosaraju's algorithm click for me. Thank you!
@AlgorithmswithAttitude
@AlgorithmswithAttitude 2 жыл бұрын
It took me a while to get a good intuition for dfs topsort, but that gave me a much better understanding for this one.
@constancewang7069
@constancewang7069 4 жыл бұрын
Bless your beautiful soul
@aridian6988
@aridian6988 4 жыл бұрын
very nice. love the longer videos
@davidkozak8882
@davidkozak8882 4 жыл бұрын
Thank you for a wonderful explanation! :) It really helped me develop an intuition behind this algorithm, which is what I've been missing.
@AlgorithmswithAttitude
@AlgorithmswithAttitude 4 жыл бұрын
It took me a long time to get the intuition behind DFS topsort. I could prove it worked, but didn't have the intuition. When that finally came, this one was a byproduct. I stopped a previous version of this video I was making, and waited until I had time to go back and remake that one before finishing this one.
@Anonymous_Wolfie
@Anonymous_Wolfie 3 жыл бұрын
This is such a smart algorithm
@cleanthis7850
@cleanthis7850 3 жыл бұрын
If someone is struggling to understand this watch it twice without skipping. You will learn concept for your entire life.
@ramonsanchezperez897
@ramonsanchezperez897 2 жыл бұрын
great video. Hope you are no longer so lonely.
@AlgorithmswithAttitude
@AlgorithmswithAttitude 2 жыл бұрын
I is fine.
@adityavaste8963
@adityavaste8963 Жыл бұрын
Thanks for it. I was stuck and confused on first step of Kosaraju algorithm, thinking of "why do we need to perform DFS first and find the finishing time for each node ? Just reverse the edges and now perform DFS". But, later reached here, and got to know for the "EFFICIENCY" ?
@studyonly6972
@studyonly6972 4 жыл бұрын
thnks you got a life time susbcriber please keep up the good work
@celstone
@celstone 4 жыл бұрын
Why did you choose to make a video about Kosaraju's Algorithm and not Tarjan's? Which do you prefer and why?
@AlgorithmswithAttitude
@AlgorithmswithAttitude 4 жыл бұрын
I use Cormen's book the most, so I am most familiar with this one. Also, I feel like I had a good intuition of why it works. Finally, without the intuition, I think it is really surprising that stringing together 3 simple algorithms seems to give an answer for a seemingly unrelated problem. I might make one for Tarjan's approach someday, but isn't too close to the top of my queue right now.
@yifumao1379
@yifumao1379 2 жыл бұрын
You videos are great! My question is: how do you achieve the animation effects in the presentation? I suppose you use Latex Beamer.
@AlgorithmswithAttitude
@AlgorithmswithAttitude 2 жыл бұрын
The animations are svg in javascript. I would like to make some interactive exercises with them, but it would take even more time than the videos, and I don't know exactly what demand there would be for them.
@libinprince7279
@libinprince7279 2 жыл бұрын
02:33 I(am)... is very... very lonely(jk lol) Awesome explanation
Kosaraju algorithm introduction
8:20
talkisoverrated
Рет қаралды 14 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 148 МЛН
Depth First Search Based Topological Sort
7:48
Algorithms with Attitude
Рет қаралды 5 М.
G-54. Strongly Connected Components - Kosaraju's Algorithm
22:44
take U forward
Рет қаралды 149 М.
Strongly Connected Components
12:40
EducateYourself
Рет қаралды 102 М.
Kosaraju Algorithm | Strongly connected components in a graph
24:30
Tarjan's Algorithm | Strongly Connected Components
9:59
Basics Strong
Рет қаралды 10 М.
Kahn's Algorithm for Topological Sorting
11:19
Algorithms with Attitude
Рет қаралды 6 М.
Strongly Connected Components Kosaraju's Algorithm Graph Algorithm
24:30
Tushar Roy - Coding Made Simple
Рет қаралды 228 М.
Floyd-Warshall All-Pairs Shortest Paths:  A Dynamic Programming Approach
15:17
Algorithms with Attitude
Рет қаралды 5 М.
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 907 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 148 МЛН