Imports
Chapter 17 - Amortized Analysis
Chapter 17 develops reusable finite-prefix arithmetic for amortized analysis
and instantiates it on compact stack, counter, and dynamic-table examples. The
current first pass contains the aggregate, accounting, and potential-method
framework theorems, a MULTIPOP stack cost bound, an executable
binary-counter one-step potential proof plus a multi-step executable trace
bound, and size-level dynamic-table insertion/deletion capacity and transition
wrappers with capacity-direction and actual-cost lower/upper-bound facts plus an
explicit nonnegative potential fact, actual-cost and capacity-choice case
specifications, direct post-state field equations and allocation-size case
wrappers, direct post-state stored-count and capacity corollaries including
positive insertion/deletion count/capacity wrappers, and direct
resize-branch capacity wrappers plus premise-light deletion-cost branch wrappers,
post-transition potential nonnegativity, and concrete amortized-cost unfolding
wrappers, including exact zero/positive deletion cost specifications.
Sections
-
17.1-17.3 Amortized analysis framework:
provedfor finite-prefix aggregate, accounting, and potential telescoping facts. Main results:CLRS.Chapter17.aggregate_bound_of_prefix_bound,CLRS.Chapter17.accounting_totalCost_eq_totalCharge_sub_delta,CLRS.Chapter17.accounting_totalCost_le_totalCharge,CLRS.Chapter17.potential_totalCost_eq_totalAmortized_sub_delta, andCLRS.Chapter17.potential_totalCost_le_totalAmortized. -
17.2 Stack and counter examples:
partial. Main results:CLRS.Chapter17.multiPop_totalCost_le,CLRS.Chapter17.binaryCounter_increment_potential_le_two,CLRS.Chapter17.binaryCounter_trace_potential_le,CLRS.Chapter17.binaryCounter_trace_totalFlips_le, andCLRS.Chapter17.binaryCounter_totalFlips_le. -
17.4 Dynamic tables:
partial. Main results:CLRS.Chapter17.dynamicPotential_nonneg,CLRS.Chapter17.dynamicTableInsert_potential_nonneg,CLRS.Chapter17.dynamicTableDelete_potential_nonneg,CLRS.Chapter17.dynamicTableInsertCost_pos,CLRS.Chapter17.dynamicTableInsertCost_le_num_succ,CLRS.Chapter17.dynamicTableInsertCost_of_fits,CLRS.Chapter17.dynamicTableInsertCost_of_expand,CLRS.Chapter17.dynamicTableInsertSize_of_fits,CLRS.Chapter17.dynamicTableInsertSize_of_expand,CLRS.Chapter17.dynamicTableInsertSize_fits,CLRS.Chapter17.dynamicTableInsertSize_ge_size,CLRS.Chapter17.dynamicTableInsertSize_ge_double_of_expand,CLRS.Chapter17.dynamicTableInsert_valid,CLRS.Chapter17.dynamicTableInsert_num,CLRS.Chapter17.dynamicTableInsert_size,CLRS.Chapter17.dynamicTableInsert_size_of_fits,CLRS.Chapter17.dynamicTableInsert_size_of_expand,CLRS.Chapter17.dynamicTableInsert_num_pos,CLRS.Chapter17.dynamicTableInsert_num_gt,CLRS.Chapter17.dynamicTableInsert_num_ge,CLRS.Chapter17.dynamicTableInsert_capacity_fits,CLRS.Chapter17.dynamicTableInsert_capacity_pos,CLRS.Chapter17.dynamicTableInsert_capacity_ge_size,CLRS.Chapter17.dynamicTableInsert_capacity_ge_double_of_expand,CLRS.Chapter17.dynamicTableInsert_amortizedCost_eq,CLRS.Chapter17.dynamicTableInsert_amortizedBound,CLRS.Chapter17.dynamicTableDeleteCost_pos_of_nonempty,CLRS.Chapter17.dynamicTableDeleteCost_pos_iff_nonempty,CLRS.Chapter17.dynamicTableDeleteCost_zero_iff_empty,CLRS.Chapter17.dynamicTableDeleteCost_le_num,CLRS.Chapter17.dynamicTableDeleteCost_empty,CLRS.Chapter17.dynamicTableDeleteCost_of_contract,CLRS.Chapter17.dynamicTableDeleteCost_of_no_contract,CLRS.Chapter17.dynamicTableDeleteCost_eq_num_of_contract,CLRS.Chapter17.dynamicTableDeleteCost_eq_one_of_no_contract,CLRS.Chapter17.dynamicTableDeleteSize_of_contract,CLRS.Chapter17.dynamicTableDeleteSize_of_no_contract,CLRS.Chapter17.dynamicTableDeleteSize_fits,CLRS.Chapter17.dynamicTableDeleteSize_le_size,CLRS.Chapter17.dynamicTableDeleteSize_le_half_of_contract,CLRS.Chapter17.dynamicTableDelete_valid,CLRS.Chapter17.dynamicTableDelete_num,CLRS.Chapter17.dynamicTableDelete_size,CLRS.Chapter17.dynamicTableDelete_size_of_contract,CLRS.Chapter17.dynamicTableDelete_size_of_no_contract,CLRS.Chapter17.dynamicTableDelete_num_le,CLRS.Chapter17.dynamicTableDelete_num_empty,CLRS.Chapter17.dynamicTableDelete_num_pos_of_one_lt,CLRS.Chapter17.dynamicTableDelete_num_lt_of_nonempty,CLRS.Chapter17.dynamicTableDelete_capacity_fits,CLRS.Chapter17.dynamicTableDelete_capacity_pos_of_one_lt,CLRS.Chapter17.dynamicTableDelete_capacity_le_size,CLRS.Chapter17.dynamicTableDelete_capacity_le_half_of_contract,CLRS.Chapter17.dynamicTableDelete_amortizedCost_eq,CLRS.Chapter17.dynamicTableDelete_amortizedBound, andCLRS.Chapter17.dynamicTable_amortizedBound.
Current Gaps
Allocator semantics, mutable-array copying, and RAM constants remain strengthening targets.
namespace CLRSnamespace Chapter17end Chapter17end CLRS