3 dimensional k-d tree in SML
3 dimensional k-d tree in SML
The following methods are provided as easy access to the tree.
All of them(except DELETE) take paramters as follows: “ADD 45 6 7 mainTree”. The code is written in a strictly pattern matching/curryied style.
Will generate a 3DBinode 10 deep to any valid Btree;
Will add a node(s) at the desired location, givng the full path
Will delete a node(s). Must use following format: "DELETE [45,6,7] mainTree"
Will print the tree.
Will search the tree to check if item exists, with the full path
To assign the output of any function, use the above format with the respective parameters
An initially generated tree, with 10 randomly generated items.