✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The following algorithm M is a polynomial-time algorithm.
M = “On input ⟨G, s, t⟩, where G is a directed graph with nodes s and t:
Place a mark on node s.
Repeat the following until no additional nodes are marked:
Scan all the edges of G. If an edge (a, b) is found going from
a marked node a to an unmarked node b, mark node b.
If t is marked, accept. Otherwise, reject.”
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!