next up previous
Next: PostOrder Up: CSE 2320: Algorithms and Previous: InOrder

PreOrder

   PreOrder(x)
      if x <> NIL
      then print(key(x))
           PreOrder(left(x))
           PreOrder(right(x))

Traversals



Copyright © 1998 The University of Texas at Arlington