The Connectivity Problem
Algorithmically Speaking - #13: Explaining the foundations of the most present real-world graph application.
Hello there, and welcome to a new edition of Algorithmically Speaking!
In the modern world, we are used to technology telling us how to travel from our current position to places we have never been. It usually lets us know several ways to get there, including the fastest or cheapest.
In todayβs discussion, I want to present the two most basic algorithms used in real-life scenarios that support a massive part of what our current delivery, location, and transportation services use. Though the mechanisms used in modern-day apps are much more sophisticated, they stand on the shoulders of these two basic but effective methods.
In order, this is our agenda for today:
π Breadth-First Search β a graph traversal that simulates how you would explore a new city.
π₯ Depth-First Search β a graph traversal that would allow you to escape from any maze.
π₯ Connected Components β a graph term to call your hometown if you knew how to get to any place from any location.
This article is part of a chapter on Fuβ¦
Keep reading with a 7-day free trial
Subscribe to Algorithmically Speaking to keep reading this post and get 7 days of free access to the full post archives.