A linear time and space algorithm for detecting path intersection in Zd - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Theoretical Computer Science Année : 2011

A linear time and space algorithm for detecting path intersection in Zd

Résumé

The Freeman chain code is a common and useful way for representing discrete paths by means of words such that each letter encodes a step in a given direction. In the discrete plane Z2Z2 such a coding is widely used for representing connected discrete sets by their contour which forms a closed and intersection free path. In this paper, we use a multidimensional radix tree like data structure for storing paths in the discretedd-dimensional space ZdZd. It allows to design a simple and efficient algorithm for detecting path intersection. Even though an extra initialization is required, the time and space complexities remain linear for any fixed dimension dd. Several problems that are solved by adapting our algorithm are also discussed.

Dates et versions

hal-00943825 , version 1 (09-02-2014)

Identifiants

Citer

Srečko Brlek, Michel Koskas, Xavier Provençal. A linear time and space algorithm for detecting path intersection in Zd. Theoretical Computer Science, 2011, 412 (36), pp.4841-4850. ⟨10.1016/j.tcs.2011.04.019⟩. ⟨hal-00943825⟩
117 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More