2dKDTREE
Steps:
:load KDTree.scala
First Tree: 2) :load init_firstKd.scala
OR
Second Tree: 2) :load init_secondKd.scala
Results:
:load testKD.scala // DFS, BFS , Enter [x,y]
Other Commands:
tree.insert( X , Y ) // add a point x,y
tree.search( X , Y ) // returns Node
tree.findkNN(X , Y , K)// Κ = Number of Nearest Neighbours
tree.remove( X , Y) //remove a Node