Mention the name 'sparse table' [closes #29]
This commit is contained in:
parent
8c564bd46b
commit
e5c50e115e
|
@ -244,10 +244,12 @@ to the position of $X$.
|
||||||
|
|
||||||
Next we will see how we can
|
Next we will see how we can
|
||||||
process range minimum queries in $O(1)$ time
|
process range minimum queries in $O(1)$ time
|
||||||
after an $O(n \log n)$ time preprocessing\footnote{There are also
|
after an $O(n \log n)$ time preprocessing using \index{sparse table}
|
||||||
sophisticated techniques \cite{fis06} where the preprocessing time
|
a data structure called a \emph{sparse table}\footnote{The
|
||||||
is only $O(n)$, but such algorithms are not needed in
|
sparse table structure was introduced in \cite{ben00}.
|
||||||
competitive programming.}.
|
There are also more sophisticated techniques \cite{fis06} where
|
||||||
|
the preprocessing time of the array is only $O(n)$, but such algorithms
|
||||||
|
are not needed in competitive programming.}.
|
||||||
Note that minimum and maximum queries can always
|
Note that minimum and maximum queries can always
|
||||||
be processed using similar techniques,
|
be processed using similar techniques,
|
||||||
so it suffices to focus on minimum queries.
|
so it suffices to focus on minimum queries.
|
||||||
|
|
Loading…
Reference in New Issue