A while ago, I have written up on Graphs and gave a few examples about their application for real world problems. I absolutely love graphs as they are so powerful to model the data for several key computer science problems. In this post, I want to talk about one of the most common graph algorithms, Depth-first search (DFS) and how and where it could be useful.
What is Depth-First Search (DFS)?
DFS is a specific algorithm for traversing and searching a graph data structure. Depending on the type...
Published on July 28, 2018 05:32