Augmenting Data Structures

Bin Zhang

April 8, 2021

1. Dynamic order statistics

Via adding a new attribute size in a red-black tree, we can determine any order statistic in \(O(n)\) time. The size refer to the number of nodes of the subtree whose root is the node. It is called order-statistic tree.

2. How to augment a data structure