


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Review: Running Time of Kruskal’s Algorithm
Review: Disjoint Set Union Analysis
1
2
n-
n
2
Review: Amortized Analysis of Disjoint Sets
Amortized Analysis: Accounting Method
Accounting Method Example: Dynamic Tables
Analysis Of Dynamic Tables
Insert(1) 1 1 1
Analysis Of Dynamic Tables
Insert(1) 1 1 1 Insert(2) 2 1 + 1 2
Analysis Of Dynamic Tables
Insert(1) 1 1 1 Insert(2) 2 1 + 1 2 Insert(3) 4 1 + 2 3 Insert(4) 4 1 4
Analysis Of Dynamic Tables
Insert(1) 1 1 1 Insert(2) 2 1 + 1 2 Insert(3) 4 1 + 2 3 Insert(4) 4 1 4 Insert(5) 8 1 + 4 5
Analysis Of Dynamic Tables
Insert(1) 1 1 1 Insert(2) 2 1 + 1 2 Insert(3) 4 1 + 2 3 Insert(4) 4 1 4 Insert(5) 8 1 + 4 5 Insert(6) 8 1 6 Insert(7) 8 1 7
Analysis Of Dynamic Tables
Insert(1) 1 1 1 Insert(2) 2 1 + 1 2 Insert(3) 4 1 + 2 3 Insert(4) 4 1 4 Insert(5) 8 1 + 4 5 Insert(6) 8 1 6 Insert(7) 8 1 7 Insert(8) 8 1 8
n j j n i i
lg 1 0
= =
Accounting Analysis