diff options
author | Marcin Chrzanowski <mc370754@students.mimuw.edu.pl> | 2021-12-16 17:20:34 +0100 |
---|---|---|
committer | Marcin Chrzanowski <mc370754@students.mimuw.edu.pl> | 2021-12-16 17:20:34 +0100 |
commit | d8c3873255e71f3919a66e934135577c4d0f625d (patch) | |
tree | fd504528ff62df7c5245370ab3bb137b3dd9129c | |
parent | b235764fdf024b3de3b8a7a10eca56914da1967b (diff) |
Proof
-rw-r--r-- | mgr.tex | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -626,11 +626,11 @@ array $\indextable$. \end{enumerate} \end{observation} -The pre-order labels in $\prefixtable$ are ordered according to a post-order. In -a post-order, the root of a subtree is visited directly after all its -descendants. Since $y$ is a descendant of $x$, all values between its position -in $\prefixtable$ and $x$'s position there will also be descendants of $x$, -giving item \ref{obs-descendants}. +Proof: The pre-order labels in $\prefixtable$ are ordered according to a +post-order. In a post-order, the root of a subtree is visited directly after all +its descendants. Since $y$ is a descendant of $x$, all values between its +position in $\prefixtable$ and $x$'s position there will also be descendants of +$x$, giving item \ref{obs-descendants}. The values in $\prefixtable$ are pre-order numbers. In a pre-order, for a given node $z$, the only nodes that will have lower pre-order numbers are $z$'s |