Amortization

A Simple Example: Clearable Stack

You’ve Already Seen Amortization

Amortization Methods

Clearable Stack using the Accounting Method

Another Example: Java Vectors

Analysis of Java Vectors

Remember Union/Find

log*(n)

Rank Groups and
the Rank of a Node

Rank Properties

Amortization Scheme for Union/Find

Do We Have Enough Credits?

How Many Credits are Paid in Total from All the Nodes?

Total Node-Credits Paid