Traversal algorithm:
- While N the current node is not empty Do:
- If N's direct descendance has been modified:
- Find the nearest frozen ancestor, call it FA
- Apply the Frozen Node Algorithm to FA
- Let the new current node be FA's successor
in preorder traversal
- Else let the new current node be N's successor
in preorder traversal
|
|