Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 1.04 KB

README.md

File metadata and controls

14 lines (13 loc) · 1.04 KB

Sack' Algorihm

The Sack algorithm allows responding offline queries related to node subtree information in a tree. A concept introduced in the algorithm is that of heavy son, in which the heavier nodes inherit their information to the parent (causing the heavy part of the processing to be discarded) and the lighter ones are processed normally. Some problems that can be solved with the Sack algorithm:

Troubleshooting the above using sack: