Abstract
We study the rectilinear path problem in the presence of disjoint axis parallel rectangular obstacles in the in-place and read-only setup. The input to the problem is a set \(\cal R\) of n axis-parallel rectangular obstacles in \(I\!\!R^2\). We need to preprocess the members in \(\cal R\) such that the following query can be answered efficiently.
Path-Query(p,q): Given a pair of points p and q, report an axis-parallel path from p to q avoiding the obstacles in \(\cal R\).
In the read-only setup, we consider a restricted version of the Path-Query(p,q) problem, where the objective is to check the existence of an xy-monotone path between the given pair of points p and q avoiding the obstacles, and report it if such a path exists. Given O(s) extra space, the problem can be solved in \(O(\frac{n^2}{s}+n\log s+ M_s\log n)\) time, where M s is the time complexity for computing the median of n elements in read-only setup using O(s) extra space.
In the in-place setup, we preprocess the input rectangles in a data structure such that for any pair of query points p and q, the problem Path-Query(p,q) can be solved efficiently. The time complexities for the preprocessing and query are O(nlogn) and O(n 3/4 + χ) respectively, where χ is the number of links (bends) in the path. The extra space requirement for both preprocessing and query answering are O(1). We also show that among a set of unit square obstacles, there always exists a path of O(logn) links between a pair of query points. Here, we use a different in-place data structure with same preprocessing time complexity to answer the query in O(logn) time.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Asano, T., Buchin, K., Buchin, M., Korman, M., Mulzer, W., Rote, G., Schulz, A.: Memory-constrained algorithms for simple polygons. Comput. Geom. 46(8), 959–969 (2013)
Asano, T., Doerr, B.: Memory-constrained algorithms for shortest path problem. In: Proc. CCCG (2011)
Asano, T., Mulzer, W., Rote, G., Wang, Y.: Constant-work-space algorithms for geometric problems. JoCG 2(1), 46–68 (2011)
Barba, L., Korman, M., Langerman, S., Sadakane, K., Silveira, R.I.: Space-time trade-offs for stack-based algorithms. In: STACS (2013)
Bint, G., Maheshwari, A., Smid, M.H.M.: xy-Monotone path existence queries in a rectilinear environment. In: Proc. CCCG, pp. 35-40 (2012)
Bose, P., Maheshwari, A., Morin, P., Morrison, J., Smid, M.H.M., Vahrenhold, J.: Space efficient geometric divide-and-conquer algorithms. Comput. Geom. 37(3), 209–227 (2007)
Brönnimann, H., Chan, T.M., Chen, E.Y.: Towards in-place geometric algorithms and data structures. In: Proc. Symp. on Comput. Geom., pp. 239-246 (2004)
Chan, T.M.: Comparison-based time-space lower bounds for selection. ACM Transactions on Algorithms 6(2) (2010)
Chan, T.M., Ian Munro, J., Raman, V.: Faster, space-efficient selection algorithms in read-only memory for integers. In: Cai, L., Cheng, S.-W., Lam, T.-W. (eds.) ISAAC 2013. LNCS, vol. 8283, pp. 405–412. Springer, Heidelberg (2013)
De, M., Maheshwari, A., Nandy, S.C., Smid, M.H.M.: An in-place min-max priority search tree. Comput. Geom. 46(3), 310–327 (2013)
Elmasry, A., Juhl, D.D., Katajainen, J., Satti, S.R.: Selection from read-only memory with limited workspace. In: Du, D.-Z., Zhang, G. (eds.) COCOON 2013. LNCS, vol. 7936, pp. 147–157. Springer, Heidelberg (2013)
Frederickson, G.: Upper bounds for time-space tradeoffs in sorting and selection. Journal of Computer and System Sciences 34(1), 19–26 (1987)
Goldreich, O.: Computational Complexity: A Computational Perspective, p. 182. Cambridge University Press (2008)
Munro, J.I., Paterson, M.: Selection and sorting with limited storage. Theoretical Computer Science 12, 315–323 (1980)
Munro, J.I., Raman, V.: Selection from read-only memory and sorting with minimum data movement. Theor. Comput. Sci. 165(2), 311–323 (1996)
McCreight, E.M.: Priority search trees. SIAM J. Comput. 14, 257–276 (1985)
de Rezende, P.J., Lee, D.T., Wu, Y.F.: Rectilinear shortest paths in the presence of rectangular barriers. Discrete Computational Geometry 4, 41–53 (1989)
Raman, V., Ramnath, S.: Improved upper bounds for time-space tradeoffs for selection with limited storage. In: Arnborg, S. (ed.) SWAT 1998. LNCS, vol. 1432, pp. 131–142. Springer, Heidelberg (1998)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this paper
Cite this paper
Bhattacharya, B.K., De, M., Maheswari, A., Nandy, S.C., Roy, S. (2015). Rectilinear Path Problems in Restricted Memory Setup. In: Ganguly, S., Krishnamurti, R. (eds) Algorithms and Discrete Applied Mathematics. CALDAM 2015. Lecture Notes in Computer Science, vol 8959. Springer, Cham. https://doi.org/10.1007/978-3-319-14974-5_7
Download citation
DOI: https://doi.org/10.1007/978-3-319-14974-5_7
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-14973-8
Online ISBN: 978-3-319-14974-5
eBook Packages: Computer ScienceComputer Science (R0)