Chapter 5: Q3E (page 161)
Design a linear-time algorithm for the following task.
Input: A connected, undirected graph.
Question:Is there an edge you can remove fromwhile still leavingconnected?
Can you reduce the running time of your algorithm to?
Short Answer
The linear-time algorithm to find an edge in a graph removing which the graph remains connected can be implemented by finding if the graph contains a cycle. And the running time of the algorithm can be reduced toby keeping the track of the visited vertices in the graph.