[comp.lang.pascal] Binary Search Tree balancing scheme wanted...

HCM100@psuvm.psu.edu (Hans C. Masing) (04/26/91)

Hi all-

     I make it to c.l.p about once every eight months, and I'm due for an
aniversary posting.  I'm looking for a procedure that will balance out a
binary search tree (BST from here on out).  Preferablyone that will work
with large BST's and balance them rather quickly.  Also, if available, a
procedure that will check a BST to see if it NEEDS balancing.

     I think that I have a working procedure that I wrote to determine if
a BST needs to be balanced (rather simple recursive algorithm), but I would
like to see how others handled it.

     Please send to my e-mail address.  I will be happy to post the most
efficient procedures.  :-)

     Thanks a maxint...

     Hans C. Masing


    /_/ _            /| /|  _      '         | HCM100 @ PSUVM.psu.edu
  _/ /_(_|_/|/_/)_  / |/ |_(_|_/)_/_/|/_(_)  | Hans C. Masing
                                      (__/