It turns out that well-known algorithms like BFS, DFS, Dijkstra, and A-Star are essentially variations of the same algorithm.
In other words, it is possible to implement a universal data structure that can switch between these algorithms without requ...