浏览代码

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

Ryan Newton 7 年之前
父节点
当前提交
566e0d8f44
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}