Closed Hodsonj closed 4 years ago
In my mind, the tree maybe is just a dummy example since in disjoint sets, there is no direction between elements. So although existing some arrows, arrows just indicate the source end and target end are connected.
From a theoretical point of view, the arrows don't mean anything but they mean something for this quiz because it represents which becomes the parent and the child.
Does the arrow direction mean anything? I've researched other disjoint-set tree visualizations and a lot of them have the arrows going the other way to the "root"?