Representing Trees

There are a few ways to represent a tree T with n nodes.

One particularly flexible way is in terms of three arrays. For tex2html_wrap_inline158 :

How can we test if node i is a leaf?


next up previous
Next: HEAPS Up: DYNAMIC PROBLEMS Previous: Ordered Trees