I was wondering if there exist a data structure that can support the following operations(ideally in log(n)
time where n is the number of points):
- Nearest neighbor queries where the nearest neighbor to a point is defined as the function that takes the point and returns the point that gives the minimum sum of its weight plus its distance from the queried point.
- Insertion of a new point into the data structure
- Bulk Updating of the weight of all current points in the structure by a given number