pertemuan ke 5, Binary Search Tree, 2101678775, Rafael Kevin Liman
Binary Search Tree Binary Search Tree Operations • Binary Search Tree has the following basic operations: – find(x) : find key x in the BST – insert(x) : insert new key x into BST – remove(x) : remove key x from BST Operations: Search Because all data in 2-3 tree are stored in sorted order, searching in 2-3 tree is easy. We can extend the search algorithm for binary search tree to obtain the search algorithm in 2-3 tree. find(ptr, x) If ptr is NULL then not found If x = A then found ...