Dynamic Dynamic Programming (DDP): Heavy-Light Decomposition & Matrix Segment Trees on Trees
Learn Dynamic Dynamic Programming (DDP). Combine Heavy-Light Decomposition and matrix multiplication on segment trees to achieve O(log^2 N) point updates on trees.