Abstract
In many scientific applications it is required to reconstruct a raster dataset many times, each time using a different resolution. This leads to the following problem; let \(\mathcal{G}\) be a raster of \(\sqrt{N}\) x \(\sqrt{N}\) cells. We want to compute for every integer 2 \(\leq \mu \leq \sqrt{N}\) a raster \(\mathcal{G}_\mu\) of [\(\sqrt{N}/\mu\)] x [\(\sqrt{N}/\mu\)] cells where each cell of \(\mathcal{G}_\mu\) stores the average of the values of μ x μ cells of \(\mathcal{G}\). Here we consider the case where \(\mathcal{G}\) is so large that it does not fit in the main memory of the computer.
We present a novel algorithm that solves this problem in O(scan(N)) data block transfers from/to the external memory, and in θ(N) CPU operations; here scan(N) is the number of block transfers that are needed to read the entire dataset from the external memory. Unlike previous results on this problem, our algorithm achieves this optimal performance without making any assumptions on the size of the main memory of the computer. Moreover, this algorithm is cache-oblivious; its performance does not depend on the data block size and the main memory size.
We have implemented the new algorithm and we evaluate its performance on datasets of various sizes; we show that it clearly outperforms previous approaches on this problem. In this way, we provide solid evidence that non-trivial cache-oblivious algorithms can be implemented so that they perform efficiently in practice.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aggarwal, A., Vitter, J.S.: The Input/Output complexity of sorting and related problems. Communications of the ACM 31(9), 1116–1127 (1988)
Arge, L., Haverkort, H., Tsirogiannis, C.: Fast Generation of Multiple Resolution Instances of Raster Data Sets. In: Proc. 20th ACM SIGSPATIAL Int. Conference on Advances in Geographic Information Systems (ACM GIS), pp. 52–60 (2012)
Bøcher, P.K., McCloy, K.R.: The Fundamentals of Average Local Variance - Part I: Detecting Regular Patterns. IEEE Trans. on Image Processing 15, 300–310 (2006)
Fisher, P., Wood, J., Cheng, T.: Where is Helvellyn? Fuzziness of Multiscale Landscape Morphometry. Trans. Inst. of British Geographers 29(1), 106–128 (2004)
Frigo, M., Leiserson, C.E., Prokop, H., Ramachandran, S.: Cache-Oblivious Algorithms. ACM Transactions on Algorithms 8(1), 1–22 (2012)
Karatsuba, A.A., Voronin, S.M.: The Riemann Zeta-Function. Walter de Gruyter, Berlin (1992)
Rosser, J.B., Schoenfeld, L.: Approximate Formulas for Some Functions of Prime Numbers. Illinois Journal of Mathematics 6(1), 64–94 (1962)
TPIE, the Templated Portable I/O Environment, http://www.madalgo.au.dk/tpie/
Woodcock, C.E., Strahler, A.H.: The Factor of Scale in Remote Sensing. Remote Sensing of Environment 21, 311–332 (1987)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Arge, L., Brodal, G.S., Truelsen, J., Tsirogiannis, C. (2013). An Optimal and Practical Cache-Oblivious Algorithm for Computing Multiresolution Rasters. In: Bodlaender, H.L., Italiano, G.F. (eds) Algorithms – ESA 2013. ESA 2013. Lecture Notes in Computer Science, vol 8125. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-40450-4_6
Download citation
DOI: https://doi.org/10.1007/978-3-642-40450-4_6
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-40449-8
Online ISBN: 978-3-642-40450-4
eBook Packages: Computer ScienceComputer Science (R0)