Bentley
Member
I was reading about Kruskal's maze algorithm (http://weblog.jamisbuck.org/2011/1/3/maze-generation-kruskal-s-algorithm), and after many mistakes, I understand how it works, but I don't know a good way to merge sets. The author of that link uses a tree data structure. So he can merge entire sets by just "adding one tree as a subtree of another". I don't know how to do that in GML, so I was thinking of work-arounds. Does anyone have any ideas for merging sets?
Thanks for reading.
Thanks for reading.
Last edited: