Simple traversal of a subdivision without extra storage
Simple traversal of a subdivision without extra storage
复制标题
简单遍历细分,无需额外存储
DOI:
10.1145/237218.237408
复制
发表时间:
1996
期刊:
影响因子:
--
通讯作者:
M. Overmars
中科院分区:
文献类型:
--
作者:
M. D. Berg;M. V. Kreveld;R. V. Oostrum;M. Overmars
In this paper we show how to traverse a subdivision and to report all cells, edges and vertices, without making use of mark bits in the structure or a stack. We do this by performing a depth-first search on the subdivision, using local criteria for deciding what is the next cell to visit. Our method is extremely simple and provably correct. The algorithm has applications in the field of geographic information systems (GIS), where traversing subdivisions is a common operation, but modifying the database is unwanted or impossible. We show how to adapt our algorithm to answer related queries, such as windowing queries and reporting connected subsets of cells that have a common attribute. Finally, we show how to extend our algorithm such that it can handle convex threedimensional subdivisions.