✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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.”
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!