© 1990 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Short Note
A Note on the Expected Behaviour of Binary Tree Traversals
Department of Computer Science, Lund University, Lund, Sweden
Brinck and Foo1,2 have analysed tree traversal algorithms using threads and stack. In this note we show that, contrary to the results in the two referred papers, a preorder traversal is performed faster with a stack than with threads, in terms of pointer assignments. Moreover, the preorder-stack traversal is faster than any of the other standard traversals analysed in Refs 1 and 2.
Received April 1989.