You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implicit treap does not use the priority in the nodes anywhere, so it's not randomized, which results in a very unbalanced tree. We don't get the advantage of having logarithmic height, so running time is very slow.
The text was updated successfully, but these errors were encountered:
The merge operation is already size-aware (i.e. we merge the smaller subtree to the larger subtree). This "guarantees" logarithmic height in the average case.
The priority is only useful on init so we could start with a log-height tree.
Homeworks:
Prove that this implementation "works" in the average case anyway
The implicit treap does not use the priority in the nodes anywhere, so it's not randomized, which results in a very unbalanced tree. We don't get the advantage of having logarithmic height, so running time is very slow.
The text was updated successfully, but these errors were encountered: