Imagine a data set with three features $A, B, C$.
A nearest neighbor algorithm can find what array $[a,b,c]$ is most similar (in terms of a given metric, e.g. euclidean distance) to $[x,y,z]$.
What method can be used to find the most similar array, given the requirement that one of the features is changed in a given direction, e.g. $[x, y+\epsilon, z]$. The original array $[x,y,z]$ is not allowed to be returned again.
The simplest way I can think of would be to perform nearest neighbor searches with increasing $\epsilon$ until a new array is found. However, this would be computationally expensive. What is a better method?