Week 3
This week focused on the practical implementation of graph algorithms, specifically Depth-First Search (DFS) and the Traveling Salesman Problem (TSP) using exhaustive search . Applying these concepts through programming has highlighted both the elegance of recursive structures and the significant computational challenges associated with NP-hard problems. Key Concepts & Implementations - DFS & Systematic Traversal : Implementing DFS for directed graphs reinforced the importance of using a "mark array" to track visitation sequences . A crucial takeaway was ensuring the algorithm follows a numerical ascending order for adjacent vertices to maintain consistency in the output . - TSP & Exhaustive Search : Tackling the Traveling Salesman Problem required using permutations of vertices to find the optimal Hamiltonian cycle . While effective for a small number of vertices (under 15), this approach clearly demonstrates how q...