HW4_solutions. Georgia Institute Of Technology CS 6515
CS 6515 GA HW 4. Due: 2/11/2019 Name: 1 Problem 1 [DPV] Problem 3.15 (Computopia) Part (a): Solution: We will represent the city in this problem as a directed graph G = (V; E). The vertices in V represent the intersections in the city, and the directed edges in E represent the streets of the city. Then, the problem is to determine whether a path from u to v exists for all u; v 2 V , and to do so in linear time. We can solve this problem using the SCC algorithm. If the entire graph G is itself a single strongly connected component, then the mayor's claim is true. The SCC algorithm takes linear time, as required.
Document information
- Uploaded on
- October 3, 2022
- Number of pages
- 2
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers