Algorithm find (k, v) if T.isExternal (v) return Position(null) if k < key(v) return find(k, T.leftChild(v)) else if k = key(v) return Position(v) else { k > key(v) } return find(k, T.rightChild(v)) |
|
|
|
|
|
|
|
|
AVL
tree - visualisation