A student asks how link-cut trees support flow operations like adding or subtracting flow along a path. The answer: augment the BSTs sitting inside the aux trees 43:39, 44:16, 44:39.
The warm-up problem
nkey-value pairs; supportsum(k)= sum of all values whose key is at mostk, plusinsert,delete,predecessor, etc.45:13,46:07.- Technique: store a subtree sum at every BST node; walking down the tree, combine those sums to answer the query
46:07.