Тёмный

Strongly Connected Components Kosaraju's Algorithm Graph Algorithm 

Tushar Roy - Coding Made Simple
Подписаться 245 тыс.
Просмотров 226 тыс.
50% 1

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

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 244   
@clyt9636
@clyt9636 8 лет назад
wonderfully explained the intuition. most videos on RU-vid give the algorithm without justifying the steps.
@maybejorn6619
@maybejorn6619 8 лет назад
I second that :)
@al-b
@al-b 7 лет назад
I agree. The intuition explanation was so helpful to my understanding of this algorithm, as well as to my understanding of graph behavior in general. Thank you!
@tusharroy2525
@tusharroy2525 7 лет назад
Welcome
@gxtube
@gxtube 5 лет назад
very good explanation of the intuition on why the first step is topological sort. and then DFS on the reversed graph based on the order of the topological sort.
@tumte4305
@tumte4305 4 года назад
Yeah , you have been my goto person during this lockdown. Basically, whenever I get to know of some algorithm during CP which I need to learn, I head to your channel to see whether you had explained it or not. Just one thing : the plural of child is children and not childrens :)
@newworldorder25
@newworldorder25 7 лет назад
Very nice explanation of the intuition. "By intuition that we discover and by logic that we prove" - Henri Poincaré
@praveenchaudhary235
@praveenchaudhary235 6 лет назад
Great job. Whenever I search any algo on RU-vid I search for your videos first. You explain everything simply and quickly.
@sandip_kanzariya8476
@sandip_kanzariya8476 Год назад
Why this algorithm is work ? Make difference between you and other instructor ✨✨✨✨ Nice !!! Superb
@nfstephe5160
@nfstephe5160 4 года назад
Wow, clear and straightforward explanation, wish I could give two likes!
@pranavambhore9215
@pranavambhore9215 4 года назад
Nice one. In nutshell, we are topologically sorting the underlying DAG of reverse graph (with connected components as vertices), so that one strongly connected component cannot be traced from another strongly connected component.
@jiakai7254
@jiakai7254 Год назад
that's a really elegant explanation! I wish the Algorithm Design Manual explained it like that
@gourharisharma9373
@gourharisharma9373 3 года назад
I always wondered why a stack was used when a visited array could do the task. I searched a lot to find the reason and finally understood after landing here. Thank You for your service to the Community.
@timothygao9442
@timothygao9442 4 года назад
You should keep making videos man... They are honestly some of the best videos on youtube for algorithms and data structures.
@EmilyXieX
@EmilyXieX 8 лет назад
This is beautifully explained. I was struggling to find an intuitive explanation for why this algorithm works until I found this video. Thank you!
@tirthjayswal9895
@tirthjayswal9895 4 года назад
Every time when I want to revise SCC I see this Video. Best Explanation
@benchmarks1016
@benchmarks1016 2 года назад
Dropping a comment bcoz I watched several videos but logically yrs makes the most sense and Im finally getting it right without contemplating which path to take
@nitinjain1325
@nitinjain1325 6 лет назад
adbhut avishwaniya .. itna accha explanation .. bahut kam hi dekhne milta hai ... great tushar bhai ! !
@Chesstreamer
@Chesstreamer 4 года назад
wonderful expalnation and the best part was now u are implememting the concept via code in your video. Earlier your videos gave insight but lack of code was a issue for me at least.Kudos to u ,keep going
@Lamelija
@Lamelija 3 года назад
Thank you! I've watched like 6 different videos and non of them helped do my homework, because none of them actually did a proper step by step explanation. But yours did! So thank you, I can finally do my homework and upload it.
@rajatkoujalagi9203
@rajatkoujalagi9203 8 лет назад
Thanks for the video. Might be helpful to mention that the first pass of populating the stack is similar to topological sort.
@elvindu743
@elvindu743 9 лет назад
Nice video Tushar! I recognized you at the first sight of this video. It is very clear explanation and really helps me understand the intuition. Thx!
@msylvest55
@msylvest55 9 лет назад
Tushar you are the man...helping many students in my algo class handle biz
@29ibrahimsayed95
@29ibrahimsayed95 2 года назад
You are really good at teaching Tushar Thanks alot
@GabrielSantosNicolau
@GabrielSantosNicolau 3 года назад
Wow! Extremelly clear explanation. Thanks a lot
@harishsurya3975
@harishsurya3975 7 лет назад
I was stuck at this topic for an hour or so. Thank you for explaining with an example. Not only it was so easy to understand, no i believe that i can teach it somebody else too.
@rishabhsharma8234
@rishabhsharma8234 4 года назад
Amazing explanation of that guaranteed exploration part of vertices that makes the concept crystal clear.Thanks
@KunalKumar-ex9gm
@KunalKumar-ex9gm 5 лет назад
Bhai bohot kadak padhaye Hain aap !!! Thank bro 🥰
@rajkamal2120
@rajkamal2120 8 лет назад
Very well explained Tushar. Especially the "intuition" part.
@mj2068
@mj2068 8 месяцев назад
fantastic video, i like the meticulous style of your explanation.
@garimasingh7031
@garimasingh7031 4 года назад
very very nice explanation and the justification is what was needed..thanku
@sumitkumar-ld5vh
@sumitkumar-ld5vh 4 года назад
That was a great explanation and the idea behind why the algorithm works is best 👌👍👍
@astroash
@astroash 3 года назад
Good work Tushar! I just discovered you're from MNIT. Pleasant surprise!
@anirudhatalmale5575
@anirudhatalmale5575 4 года назад
The explanation of the proof why this algorithm works is super awesome.
@pranjalbansal8459
@pranjalbansal8459 4 года назад
Intution Explanation is really awesome. Thanks
@devgupta1217
@devgupta1217 Год назад
Best ever explanation on you tube till date
@effy1219
@effy1219 7 лет назад
excellent !!!!!!!!!!!!!!!!!!!!!!!!!!!!! amazing to have you in youtube!!!!
@gallucciluca94
@gallucciluca94 5 лет назад
Perfect explanation step by step. Good job 👍
@saurabhjha8733
@saurabhjha8733 2 года назад
explained the khode very beautifully ...
@yashjain1011
@yashjain1011 2 года назад
Thank you so much for making this video. Finally understood the algo intuition
@zengjun7
@zengjun7 8 лет назад
clear illustration. all your videos are so awesome. thank you for your effort
@rajiiiv123
@rajiiiv123 8 лет назад
At some point, the learning stops and the pain begins.
@chandrashekhar9470
@chandrashekhar9470 4 года назад
Thanks for such a detailed Explanation. Please upload some more videos on ML and AI , It will be quite helpful for all of us..Thanks
@nomadshubham3907
@nomadshubham3907 2 года назад
Extremely well explained intuition ...Better than Strive rand other Faang utubers
@dmurty1
@dmurty1 8 лет назад
Oh man. You are something. Thanks for such simple explanation as usual.
@dmurty1
@dmurty1 8 лет назад
+Tushar Roy hey Tushar. I am preparing for interviews and ran into a question. This might be helpful for others too. Let's say someone asks me to write code related to strongly connected components or topological sort. Is it enough to write those two to four functions that deal with the actual implementation or should I write some prep code as a starting point. Unlike binary/tertiary trees, graph representation is not unique. Say you may be representing a weighted DAG using lists and I may be using arrays (being lazy!!!). Moreover I never faced any graph related problems in a limited number of interviews I attended and so this confusion. Please comment based on your actual interview experience. Thanks..
@ShisuiElric50
@ShisuiElric50 5 лет назад
Bro omg thank you, I implemented the entire in python from Wikipedia, but it was missing some details. You outlined everything I needed, now onto Johnson's alg
@aravindbalakrishnan5534
@aravindbalakrishnan5534 8 лет назад
nicely done. well prepared, clear, and easy to follow. kudos
@rajatmishra9993
@rajatmishra9993 9 лет назад
Awesome work......Lot of thanks to you for posting this. Please post videos on Treaps and LCA.
@sarwarmehedi
@sarwarmehedi 6 лет назад
Wonderfully explained. A lot to learn from you. Keep up the good works.
@Ran-ek2ki
@Ran-ek2ki 8 лет назад
Thanks a lot Tushar - u really save me lots of hours trying to figure out written stuff =]
@NIKHILSRIVASTAVABCS
@NIKHILSRIVASTAVABCS 7 лет назад
He makes it look so simple! Hats-off to him :)
@omprakashsharma9767
@omprakashsharma9767 4 года назад
Thanks tushar, I was actually looking why this algorithm works. This helps me a lot. This seems simplictic than tarzan
@pavanbhavirisetty6458
@pavanbhavirisetty6458 7 лет назад
nice explanation especially why the algorithm works
@Sparklegoat11
@Sparklegoat11 8 лет назад
Nice Video, very simple easily instruction of a complex problem
@shreyjain51
@shreyjain51 5 лет назад
Kosaraju was an Indian. Hit like if you didn't know this before. Proud Indian
@janaSdj
@janaSdj 3 месяца назад
Is it?
@maneeshkumarpatel9874
@maneeshkumarpatel9874 5 лет назад
thank you so much sir... Really awesome explanation.
@debabhishek
@debabhishek 8 лет назад
great explanation. like all other videos.. what I liked in this video specially the way you explained why this algorithm works.. when I dry run is over.. I was thinking.. lets think how it will work and why it will work.. and this explanation was just there after that..
@mdmorsalin5023
@mdmorsalin5023 3 года назад
very understandable explanation. Thank you sir.
@bhupalchiranjeevi5049
@bhupalchiranjeevi5049 8 лет назад
very nice explanation ... Really helpful tushar
@shivambajaj568
@shivambajaj568 4 года назад
Amazing explanation of the intution behind the algorithm.
@sheetalshireen
@sheetalshireen 9 лет назад
Hats off to you.. Thanks for such a nice explanation..
@anon_bean1982
@anon_bean1982 8 лет назад
Very clear explanation Tushar!
@supreethbaliga7353
@supreethbaliga7353 5 лет назад
The explanation was very well explained. Thank you so much!!
@hoaiphamuc9063
@hoaiphamuc9063 7 лет назад
Very good explaination, thank you Roy
@albertagram
@albertagram 9 лет назад
I've been stuck on this for months. Finally... thank you!
@solidstatedevices
@solidstatedevices 4 года назад
Your lecture is reason why free RU-vid will render highly expensive Universities completely useless very soon.
@hdang1997
@hdang1997 4 года назад
Tushar, I'm not going to lie. Most of the times, I loathe your videos, especially the ones on dynamic programming, where all you do is draw the 2d array(tabulation) and show us what to do, instead of showing us the way of recursion and memoization. But the intuiton you provided in this video was really helpful. Thank you. Cheers!
@tmeloliveira
@tmeloliveira 6 лет назад
Great work! Thanks for putting up this awesome video! It really helped my studies.
@BullsEye2.0
@BullsEye2.0 7 лет назад
Dude, you are awesome, You finished all my doubts that came into my mind sequentially while watching this video. Hats off _/\_
@TheFrozenHeart5794
@TheFrozenHeart5794 9 лет назад
very detailed and clear explanation,thank you.
@samarthgupta4069
@samarthgupta4069 3 года назад
Thank you so much for such a nice explanation!!!!
@debrajray1585
@debrajray1585 7 лет назад
Awesome explanation Tushar! Thank you :)
@radekcrlik5060
@radekcrlik5060 9 лет назад
That was great! Crystal clear explanation, thanks
@andywang4189
@andywang4189 4 года назад
Wonderful explanation, subscribed
@timgoppelsroeder121
@timgoppelsroeder121 4 года назад
Great work great explanation
@anxiousengineer
@anxiousengineer 3 года назад
Awesome explanation, thank you!
@panchoingham
@panchoingham 7 лет назад
Fantastic explanation. Congratulations!
@yuktykhandelia5312
@yuktykhandelia5312 3 года назад
Thanks for explaining the intuition.
@Robbebeest
@Robbebeest 6 лет назад
What an amazing explanation. Thank you very much!
@poojapal2427
@poojapal2427 9 лет назад
Thank you so much Tushar.. This really going to help me a lot in my externals.. :)
@MarcosCastroSouza
@MarcosCastroSouza 9 лет назад
excellent explanation, thanks!
@nishijain7008
@nishijain7008 4 года назад
Thank you. Very nicely explained.
@kunchen6908
@kunchen6908 7 лет назад
very clear and smart explanation
5 лет назад
I finally understand why we reverse the graph!
@tanmaiysethia176
@tanmaiysethia176 4 года назад
what a wonderful explanation
@MrPriti999
@MrPriti999 5 лет назад
amazing explanation. Thank you for this video
@shashwatdalakoti1644
@shashwatdalakoti1644 2 года назад
Amazing explanation !!
@AkashSingh-el1ew
@AkashSingh-el1ew 3 года назад
Very well explained intuition, I didn't get it in the first time but after few tries got it. Basically, in the stack we will always have at least one node of parent on top of children. And after reversing, doing DFS on this stack, we take out the parent node only, but since the edges to it's children in original graph are reversed, the parent node taken out traverses locally only. Once all parent groups are visited, then we reach to child components (child in original), and by that time other nodes are already visited so this child group also visits locally and gives the strongly connected component. That's what I understood, please correct me if I'm wrong.
@fcristini
@fcristini 8 лет назад
Clearly explained, thank you so much
@ganapatibiswas5858
@ganapatibiswas5858 3 года назад
What a beautiful algorithm ....
@shreyanshjain5779
@shreyanshjain5779 4 года назад
Nice tutorial. One request, sometimes the white board gets blocked while something important is written on it. Please try to avoid it. Thanks again for such a nice tutorial.
@SagarKumar-jz1wq
@SagarKumar-jz1wq 7 лет назад
Thanks Sir, For such a great explanation.
@rapid1010
@rapid1010 5 лет назад
surprisingly a good explanation.thanks!
@rituagrawal2218
@rituagrawal2218 7 лет назад
Very well explained. Thanks
@vikrantbharduaj1963
@vikrantbharduaj1963 Год назад
Thanks for explaining intitution
@marcelosantos5220
@marcelosantos5220 5 лет назад
thanks man, your class helped me a lot
@ameyapatil1139
@ameyapatil1139 9 лет назад
Amazing work friend
@utkarsh_goel
@utkarsh_goel 4 года назад
very nice explanation.
@maxjappert
@maxjappert 4 года назад
Really well explained, thanks!
@vijaypr5763
@vijaypr5763 9 лет назад
Thanks a lot for such an excellent explanation . (y)
@theinsanify7802
@theinsanify7802 6 лет назад
absolutely perfect explanation!
@SankalpAnand
@SankalpAnand 9 лет назад
I am a fan of your videos! Could you please explain somehow "Find the median of two sorted arrays in log (Min(m,n)) time?" I've really had a hard time in understanding this solution but still couldn't understand. I look forward to you for this.
@mayankbhandari3536
@mayankbhandari3536 8 лет назад
+Sankalp Anand Shouldn't it be log(max(m,n))?
@himanshukandwal5373
@himanshukandwal5373 8 лет назад
Very well Explained ! Thank you :)
@sureshchandra7754
@sureshchandra7754 9 лет назад
Thank a lot..exactly what I was looking for :)
@zachb8012
@zachb8012 7 лет назад
Great explanation, thanks buddy!
@krithsjeenu3330
@krithsjeenu3330 8 лет назад
awesome explanation!! Thank you so much
Далее
UFC 308: Пресс-конференция
35:18
Просмотров 528 тыс.
Strongly Connected Components
12:40
Просмотров 101 тыс.
Kosaraju algorithm introduction
8:20
Просмотров 13 тыс.
Tarjans strongly connected components algorithm
37:45
The hidden beauty of the A* algorithm
19:22
Просмотров 877 тыс.
Dijkstra's Algorithm - Computerphile
10:43
Просмотров 1,3 млн
5.2 Articulation Point and Biconnected Components
8:37