Ejemplo n.º 1
0
 def __init__(self):
     BST.__init__(self)
Ejemplo n.º 2
0
 def __init__(self):
     BST.__init__(self)
     self._utils = TreapUtils()
 def __init__(self, key_list=[]):
     """Create a new AVL Tree, set its attributes, and insert all the keys in
        the key_list into the AVL."""
     BST.__init__(self, key_list)
Ejemplo n.º 4
0
    def __init__(self, wait_time=300000, simple=False):
        BST.__init__(self)

        self.wait_time = wait_time
        self.simple = simple
Ejemplo n.º 5
0
 def __init__(self):
     self._level = 0  # 1 at leaves, depth at head, 0 for empty tree
     BST.__init__(self)
Ejemplo n.º 6
0
 def __init__(self, node_class=AVLNode):
     BST.__init__(self, node_class)
Ejemplo n.º 7
0
 def __init__(self):
     self.parent = None
     self.color = BLACK
     BST.__init__(self)
Ejemplo n.º 8
0
 def __init__(self, li=None):
     BST.__init__(self, li)
Ejemplo n.º 9
0
 def __init__(self):
     self._level = 0  # 1 at leaves, depth at head, 0 for empty tree
     BST.__init__(self)