Question Why we don't use post-order traversal if we want to accumulate children's mass? I think we would like to use order {left,right,root} so we can add mass at the root phase?
This comment was marked helpful 0 times.
kayvonf
@DanceWithDragon. Good catch. The slide was edited to say depth-first (post-order) traversal.
Question Why we don't use post-order traversal if we want to accumulate children's mass? I think we would like to use order {left,right,root} so we can add mass at the root phase?
This comment was marked helpful 0 times.
@DanceWithDragon. Good catch. The slide was edited to say depth-first (post-order) traversal.
This comment was marked helpful 0 times.