Mention the name 'sparse table' [closes #29]

This commit is contained in:
Antti H S Laaksonen 2017-04-17 10:53:02 +03:00
parent 8c564bd46b
commit e5c50e115e
1 changed files with 6 additions and 4 deletions

View File

@ -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.