What is the concatenation complexity of balanced ropes?
问题 I've looked at different papers and here is the information that I've gathered: SGI implementation and C cords neither guarantee O(1) time concatenation for long ropes nor ~log N depth for shorter ones. Different sources contradict each other. Wikipedia claims O(1) concatenation. This page says that concatenation is O(1) only when one operand is small and O(log N) otherwise. So, what is the time complexity of concatenation? When exactly rebalancing is performed to ensure this concatenation