Parallel algorithms for tree traversals |
| |
Authors: | N.C. Kalra P.C.P. Bhatt |
| |
Affiliation: | Department of Computer Science and Engineering, Indian Institute of Technology Delhi, New Delhi 110016, India |
| |
Abstract: | Three commonly used traversal methods for binary trees (forsets) are pre-order, in-order and post-order. It is well known that sequential algorithms for these traversals takes order O(N) time where N is the total number of nodes. This paper establishes a one-to-one correspondence between the set of nodes that possess right sibling and the set of leaf nodes for any forest. For the case of pre-order traversal, this result is shown to provide an alternate characterization that leads to a simple and elegant parallel algorithm of time complexity O(log N) with or without read-conflicts on an N processor SIMD shared memory model, where N is the total number of nodes in a forest. |
| |
Keywords: | Binary tree forest tree traversal parallel algorithms read-conflict |
本文献已被 ScienceDirect 等数据库收录! |
|