Fix error in rmq values
This commit is contained in:
parent
74a0559250
commit
8de82088dc
|
@ -434,7 +434,7 @@ the union of the ranges $[1,4]$ and $[3,6]$:
|
|||
\node at (7.5,1.4) {$7$};
|
||||
\end{tikzpicture}
|
||||
\end{center}
|
||||
Since $\textrm{rmq}(1,4)=2$ and $\textrm{rmq}(3,6)=0$,
|
||||
Since $\textrm{rmq}(1,4)=3$ and $\textrm{rmq}(3,6)=1$,
|
||||
we can conclude that $\textrm{rmq}(1,6)=1$.
|
||||
|
||||
\section{Binary indexed trees}
|
||||
|
|
Loading…
Reference in New Issue