Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions latex/redblack.tex
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ \subsection{Red-Black Trees and 2-4 Trees}
at most $\log (#n#+1)$. Now, every root to leaf path in the 2-4 tree corresponds
to a path from the root of the red-black tree $T$ to an external node.
The first and last node in this path are black and at most one out of
every two internal nodes is red, so this path has at most $\log(#n#+1)$
black nodes and at most $\log(#n#+1)-1$ red nodes. Therefore, the longest path from the root to any \emph{internal} node in $T$ is at most
every two internal nodes is red, so this path has at most $\log(#n#+1)+1$
black nodes and at most $\log(#n#+1)$ red nodes. Therefore, the longest path from the root to any \emph{internal} node in $T$ is at most
\[
2\log(#n#+1) -2 \le 2\log #n# \enspace ,
\]
Expand Down