Each element adds breakpoints (sometimes ). Total breakpoints: . Each heap operation (insert, pop) is .
Each element does operations. Total time: . Space: for the heaps. Compare to naive: where range is the value domain. Slope Trick ignores the range. The observation: each element adds at most two breakpoints. Total breakpoints stay throughout.