Postingan

Menampilkan postingan dari Maret, 2018

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           ...

Pertemuan ke 4, 2-3 Tree and B Tree, 2101678775, Rafael Kevin Liman

2-3 Tree and B Tree Sub Topics 2-3 Tree and B Tree -         2-3 Tree Concept -         Properties -         2-3 Tree Operation: Search, Insertion and Deletion -         B - Tree Concept -         Properties -         B Tree Operation: Search, Insertion and Delet ion 2-3 Tree Concept •         2-3 Tree is a tree data structure where every node with children has either two children and one data or three children and two data. •         2-3 Tree is NOT a binary tree.   2-3 Tree Properties ·         Every internal node is a 2-node or a 3-node. ·         All leaves are at the same level. ·  ...