def __init__(self):
     BST.__init__(self)
Example #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)
Example #4
0
    def __init__(self, wait_time=300000, simple=False):
        BST.__init__(self)

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