What is a Heap?
A binary tree where each node U has a priority
In a Heap which node is the root?
The node with the minimum priority
What is a treap?
A binary tree where each node has a value and a priority
How are priority values assigned in a treap?
They are unique and assigned at random
Similar to a heap which node is the root?
The node with the smallest priority
What is the runtime of find, add and remove?
O(logn)
What is the expected length of a search path for a treap?
At most, 1.38log2n+2