Posts


Sum Tree

A sum tree is a binary heap where each node's value is the sum of its children's. This structure enables efficient, priority-based data sampling, with O(logN) time complexity for both sampling and updates. The article provides examples, a proof, and a Python implementation.


Email: chuyang dot liu at outlook dot com