Applications of BFS and DFS

  Рет қаралды 44,144

Design and Analysis of Algorithms

Design and Analysis of Algorithms

Күн бұрын

Пікірлер: 11
@anuragbose2622
@anuragbose2622 Жыл бұрын
Thank you very much for these applications. It helped me solve many questions .
@nitinat3590
@nitinat3590 3 жыл бұрын
Brilliant Stuff! Thanks a lot for sharing.
@ananyakashyap4759
@ananyakashyap4759 4 жыл бұрын
Very Informative. Thanks
@VinayRachapalli
@VinayRachapalli 3 жыл бұрын
is minimum no.of edges to be removed to make a graph acyclic is no.of back edges??
@MultiAbhishek1997
@MultiAbhishek1997 6 жыл бұрын
@14:00 he says a cross edge cant go from lower vertex to higher vertex but in the diagram he has drawn the edge from 4 to 8 . Can any one explain how ?
@abhishekpundir575
@abhishekpundir575 6 жыл бұрын
I think what he means is that cross edge can't go from a lower to higher vertex based upon their starting and finishing time , like we can't have cross edge from vertex 2 to 4 because if we would have such an edge then we would discover 4 using 2 rather than going back to 1 and then going to 4.
@sudheerays9559
@sudheerays9559 5 жыл бұрын
by higher vertex he means ancestor and by lower vertex he means descendant, 8 is not ancestor of 4 ....
@CrackingTheGames
@CrackingTheGames 3 жыл бұрын
Think of a cross edge as an edge connecting siblings in the tree
@ritwik121
@ritwik121 3 жыл бұрын
kzbin.info/www/bejne/iHWkYqF9qKqJgrs -> here is the updated video by the same professor.... he explained ur confussion clearly in the updated video. He was basically saying - A edge from node 'u' to node 'v' can be marked as a cross edge if both the vertices dont share a ancestor descendant relationship and also node 'v' 's starting time should be more than node 'u' 's finishing time.
@curious_banda
@curious_banda Жыл бұрын
He says higher number, not vertex. By number, he means DFS number. Since DFS number are chronological, thus if Y has higher DFS number than X, Y was encountered later than X. Thus, only a cross edge Y->X can exist. If an edge X->Y exists, Y will be explored while exploring X, and thus would become a child.
Applications of BFS and DFS | Graph Traversals
15:28
Knowledge Center
Рет қаралды 14 М.
Common subwords and subsequences
27:19
Design and Analysis of Algorithms
Рет қаралды 16 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 2,6 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 30 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 134 МЛН
Quicksort
17:06
Design and Analysis of Algorithms
Рет қаралды 39 М.
Merge sort
13:46
Design and Analysis of Algorithms
Рет қаралды 46 М.
Graph Search Visualization in Python (BFS and DFS)
19:12
NeuralNine
Рет қаралды 23 М.
Negative edge weights: Bellman-Ford algorithm
16:42
Design and Analysis of Algorithms
Рет қаралды 29 М.
Chapter 1 | The Beauty of Graph Theory
45:23
CC ACADEMY
Рет қаралды 87 М.
Representing graphs
13:47
Design and Analysis of Algorithms
Рет қаралды 37 М.
Introduction to Graph Theory: A Computer Science Perspective
16:26
System Design Interview - Distributed Cache
34:34
System Design Interview
Рет қаралды 370 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 2,6 МЛН