Analyze the time and space complexity of Depth-First Search (DFS). Understand how graph representations affect the efficiency of DFS algorithms.