« first day (4425 days earlier)      last day (12 days later) » 

12:18 AM
1
Q: How to represent BFS and DFS between adjacency matrix and list?

MotherHorseI'm trying to figure out how to best represent BFS (Breadth First Search) and DFS (Depth First Search) on a graph, specifically between being represented as an adjacency matrix and an adjacency list. How do I determine which is a better representation? Is time and space complexity a part of it? I...

 

« first day (4425 days earlier)      last day (12 days later) »