+ 4
Best data structure to use with Growing Tree Algorithm
Iâm trying to determine what would be the best data structure to use with the âGrowing Tree Algorithmâ described here: http://weblog.jamisbuck.org/2011/1/27/maze-generation-growing-tree-algorithm The algorithm explanation describes using a dynamic list of some type, despite the algorithm name including the word âtreeâ. Iâm leaning towards List or Linked list, but Iâm not very experienced with those to know for sure. I do not know Ruby, so the sample code provided isnât helpful to me.
1 Answer
+ 1
Thank you Jay Matthews that makes sense for the recursive backtracking option. Not sure still about the Prim like option - but thatâs ok. The recursive one was what I cared about.