Quad Tree: Insert Function
Quad Tree: Insert Function
Insertion
Insertion: This is a recursive function used to store a point in the octree.
Search
Search: This is a boolean function used to determine weather a point exists in 3D space or not.
Complexity
Time complexity:
1. Find: O(log2N)
2. Insert: O(log2N)
3. Search: O(log2N)
Space complexity: O(k log2N)
Where k is count of points in the space and space is of dimension N x M x O, N >= M, O.