Skip to content

Latest commit

 

History

History

21

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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