Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 636 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 636 Bytes

Treaps (Cartesian tree)

  • Tree + Heap = Treap
  • X values are keys
  • Y values are priorotoes
  • It is a way to balance BST and is called randomized binary serach tree

Operations

  • split(node, key) O(log(n))
  • merge(A, B) O(log(n))
  • insert(key) O(log(n))
  • find(key) O(log(n))
  • remove(key) O(log(n))

Links