Small fix
This commit is contained in:
parent
1948b232ae
commit
2784ffa5ee
|
@ -689,9 +689,9 @@ using a depth-first search:
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
\end{center}
|
\end{center}
|
||||||
|
|
||||||
|
However, we use a bit different variant of
|
||||||
However, we use a bit different technique where
|
the tree traversal array where
|
||||||
we add each node to the tree traversal array \emph{always}
|
we add each node to the array \emph{always}
|
||||||
when the depth-first search visits the node,
|
when the depth-first search visits the node,
|
||||||
and not only at the first visit.
|
and not only at the first visit.
|
||||||
Hence, a node that has $k$ children appears $k+1$ times
|
Hence, a node that has $k$ children appears $k+1$ times
|
||||||
|
|
Loading…
Reference in New Issue