Explorar o código

Fix DSATUR psuedocode: 'v' should be 'u'

Ryan Newton %!s(int64=7) %!d(string=hai) anos
pai
achega
566e0d8f44
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -2405,7 +2405,7 @@ Output: an assignment |$\mathrm{color}[v]$| for each node |$v \in G$|
 while |$W \neq \emptyset$| do
     pick a node |$u$| from |$W$| with the highest saturation,
         breaking ties randomly
-    find the lowest color |$c$| that is not in |$\{ \mathrm{color}[v] \;:\; v \in \mathrm{adjacent}(v)\}$|
+    find the lowest color |$c$| that is not in |$\{ \mathrm{color}[v] \;:\; v \in \mathrm{adjacent}(u)\}$|
     |$\mathrm{color}[u] \gets c$|
     |$W \gets W - \{u\}$|
 \end{lstlisting}