In this work we study a fair variant of the near neighbor problem. Namely, given a set of points and a parameter , the goal is to preprocess the points, such that given a query point , any point in the -neighborhood of the query, i.e., , have the same probability of being reported as the near neighbor. We show that LSH based algorithms can be made fair, without a significant loss in efficiency. Specifically, we show an algorithm that reports a point in the -neighborhood of a query with almost uniform probability. The query time is proportional to , and its space is , where and are the query time and space of an LSH algorithm for -approximate near neighbor, and is a function of the local density around . Our approach works more generally for sampling uniformly from a sub-collection of sets of a given collection and can be used in a few other applications. Finally, we run experiments to show performance of our approach on real data.
View on arXiv