Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastpair for points in disjoint sets? #39

Open
jGaboardi opened this issue Jun 12, 2024 · 1 comment
Open

fastpair for points in disjoint sets? #39

jGaboardi opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels

Comments

@jGaboardi
Copy link
Collaborator

I curious about the possibility of utilizing the fastpair data structure for querying nearest neighbors in disjoint sets à la cross $k$-nearest, for example. Would that even be possible with fastpair?

@carsonfarmer
Copy link
Owner

Well I think probably yes, and no. Yes, because you can certainly do this... however, to do it efficiently, you need to essentially add any new points to the data structure before doing the query. In fact, my implementation with _get_neighbor is unfortunately, not very safe, as it mutates the structure in place. That should probably be fixed before attempting to do cross-set queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants