Advertisement
Guest User

Untitled

a guest
Nov 10th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Suppose that we are dealing with a non-empty binary tree T, that satisfies the first two properties of a treap. Meaning that each node stores an ordered pair (e,p) where e $\in$ $\mathcal{E}$ and p $\in$ P. Along with this, the element at a root node x is greater than the element stored in the left subtree of this root x, but less than the element stored in the right subtree of this root x. We can also assume that a node x of a binary tree $\mathcal{T}$ is used as input. Then the first two preconditions of the “Treap Restoration after Deletion” problem are satisfied.
  2.  
  3. Suppose that x has a non-null child where the priority at the left child of x is greater than the priority stored at x. Along with this, the priority stored at the left child of x is greater than or equal to the priority of the right child of x, given that it is not null and actually exists.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement