Graph Topological Sort Using Depth-First Search

Graph Topological Sort Using Depth-First Search

Sesh Venugopal

7 лет назад

96,382 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Damilola Omonori
Damilola Omonori - 06.08.2022 19:08

How does the second example work if it contains a cycle(D,PX,C,D) ?

Ответить
S Chan
S Chan - 06.03.2022 18:56

Can you make a video on how to do topological sort with Breadth first search? All the demo videos I have seen so far uses DFS.

Ответить
Leon H
Leon H - 14.05.2021 03:49

It does not work for a lot of graphs :(

Ответить
Mariia Bilinska
Mariia Bilinska - 22.03.2021 16:31

thanks so much, it was very helpful

Ответить
Rahul Solanki
Rahul Solanki - 30.11.2020 12:26

According to Introduction to Algorithms (Thomas H. Cormen),
Topological sort :
compute finishing time and add nodes to linked list as it ends
return list
Thats it!!
O(V+E)

Ответить
Mushahid Hussain
Mushahid Hussain - 23.11.2020 20:05

Really amazing. You cleared all my misconceptions.

Ответить
Z Z
Z Z - 03.10.2020 23:37

crystal clear!

Ответить
bab lobko
bab lobko - 23.08.2020 17:30

Waiting for more and more from you Prof.

Ответить
Harsha Musunuri
Harsha Musunuri - 11.03.2020 01:10

How is second graph is a DAG ? there is a cycle no - X-C-D-P; Also while I am trying to Topologically sort that is the cycle which is not satisfying the constraints. please someone explain :)

Ответить
Anirudha Talmale
Anirudha Talmale - 27.08.2019 14:38

nice explanation

Ответить
DrPastah
DrPastah - 22.04.2019 21:50

Great vid, but one thing that botthered me.
i.e. = that is
Please don't say "i.e."

Ответить
SOLID PYTHON
SOLID PYTHON - 09.03.2019 00:09

I wish Professor Sesh Venugopal was my father sometimes. Not in a sexual way. He seems like he has so much life advice to offer, and I want him to give me advice on how to pass data structures, go through college, and land a good ass internship. I want him to tell me how to make friends, how to deal with stress, how to be a good person. Sesh is more nurturing than my own father, and I want more people to realize this without them calling me a gold-digger or calling me kinky or weird.

Ответить
Dipen Patel
Dipen Patel - 28.07.2018 15:52

Thanks for making the video. It's high quality and easy to understand.

Ответить
Sid Reign
Sid Reign - 06.02.2018 01:48

isnt topological order the reverse of the pop order of a depth first search algorithm??

Ответить