logo

Crowdly

The following algorithm M is a polynomial-time algorithm. M = “On input ⟨G, s, ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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:

  1. Place a mark on node s.

  2. Repeat the following until no additional nodes are marked:

  3. 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.

  4. If t is marked, accept. Otherwise, reject.”

100%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на online.upr.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!