[EMAIL PROTECTED] wrote:
> Im working on an AVL tree
Is this homework?
> that consists of balancing the tree everytime
> you add an object.
That's a peculiar kind of AVL tree. Normally it is *not* necessary to
balance the tree every time a node is added -- it's done only if a
constraint is brea
John Machin wrote:
> [EMAIL PROTECTED] wrote:
> > Im working on an AVL tree
>
> Is this homework?
Yes, this is homework.
>
> > that consists of balancing the tree everytime
> > you add an object.
>
> That's a peculiar kind of AVL tree. Normally it is *not* necessary to
> balance the tree every ti
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
scbauer wrote:
> 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
def __init__(s
scbauer wrote:
> John Machin wrote:
> > [EMAIL PROTECTED] wrote:
> > > Im working on an AVL tree
> >
> > Is this homework?
> Yes, this is homework.
It was a rhetorical question :-)
>
> >
> > > that consists of balancing the tree everytime
> > > you add an object.
> >
> > That's a peculiar kind of