bst and hashes

Tree

  • iterate, binary search, divide and conquer

BST and Hash Table

BST operation

  1. BST inserting and searching
    • insertion: tree binary search
    • searching:
  2. insertion complexity
    • time: O(h) log(n)~n
    • sqace: O(h)
  3. speciality
    • root.right > root > root.left
    • insertion operation: has only position to insert
    • high efficient of searching

binary and divide and conquer

question

  1. BST How to realized left < right? when executing operation