1 1 vote Given a directed graph $G$ and an initial vertex $s$, we would like to $explore$ the graph from $s$, that is, starting from $s$ see all vertices along a path.For example, the graph on the left side below cannot be explored from $s$ since there does not exist a path along which we can visit all vertices starting from $s$ while the graph on the right side can be explored from $s$ by following the path $s \rightarrow u \rightarrow s \rightarrow t$.Which of the following is TRUE?There exists a polynomial time algorithm to explore the graph from $s$.There exist s an exponential time algorithm to explore the graph from $s$ but there does not exist any polynomial time algorithm.There exists an algorithm to explore the graph from $s$ but it is not known if it runs in exponential time.The decidability of the problem is open.The halting problem of Turing machine can be reduced to checking if a graph can be explored from $s$. Algorithms tifr2025 algorithms graph-theory graph-traversal + – Shubham Sharma 2 351 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes The Halting problem can be reduced…” — Whenever you see this, be suspicious.This usually hints at undecidable problems, but reachability in graphs is decidable in PReachability in directed graphs → solved by DFS or BFS in O(V+E) So the answer must be:Checking ReachabilityAlways solvable in polynomial time There exists a polynomial time algorithm to explore the graph from s Gopi_Tirumala answered Aug 8, 2025 Gopi_Tirumala comment Share Follow 0 reply Please log in or register to add a comment.