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
|
||||
process range minimum queries in $O(1)$ time
|
||||
after an $O(n \log n)$ time preprocessing\footnote{There are also
|
||||
sophisticated techniques \cite{fis06} where the preprocessing time
|
||||
is only $O(n)$, but such algorithms are not needed in
|
||||
competitive programming.}.
|
||||
after an $O(n \log n)$ time preprocessing using \index{sparse table}
|
||||
a data structure called a \emph{sparse table}\footnote{The
|
||||
sparse table structure was introduced in \cite{ben00}.
|
||||
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
|
||||
be processed using similar techniques,
|
||||
so it suffices to focus on minimum queries.
|
||||
|
|
Loading…
Reference in New Issue