Dice Question Streamline Icon: https://streamlinehq.com

Dynamic Tree Product queries: optimality

Establish whether a linear-time preprocessing algorithm that supports dynamic Tree Product operations on a tree over an associative semigroup—specifically, updating the value at a vertex, linking two trees by adding an edge, and cutting a tree by deleting an edge—while answering path product queries between any two vertices in O(log n) time per operation is optimal.

Information Square Streamline Icon: https://streamlinehq.com

Background

For the static Tree Product problem, the paper gives preprocessing schemes with optimal trade-offs and efficient parallelizations. The dynamic version considers updates to vertex values as well as structural changes via link and cut operations.

Using ideas from known dynamic tree data structures, the authors note that linear preprocessing can support all dynamic operations and O(log n)-time queries, but they explicitly state that it is unknown whether this bound is optimal.

References

Using the ideas of and we can design a linear preprocessing algorithm for this case which will also enable us to perform each dynamic operation and to answer Tree Product queries in $\bigo{\log n}$ time. Again, we do not know whether this is best possible.

Optimal Preprocessing for Answering On-Line Product Queries (2406.06321 - Alon et al., 10 Jun 2024) in Section 4 (Open Problems)