Re: AVL Balancing

2006-11-22 Thread scbauer
This is one of the errors that im getting Traceback (most recent call last): File "", line 1, in t.insert(5) File "/Users/stevenbauer/Desktop/AVL.py", line 68, in insert stack.append(current) NameError: global name 'stack' is not defined -- http://mail.python.org/mailman/listinfo/py

Re: AVL Balancing

2006-11-22 Thread scbauer
e advice accordingly), we could help > you. Basically what im trying to do is use a stack to keep track of the items in the AVL tree so that rotations will go smoothly. Having problems with the stack getting initialized and actually storing the data there. So that i can reference the elements stack[-3].left = stack[-2].right and so on for balancing. thanks scbauer -- http://mail.python.org/mailman/listinfo/python-list