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

How to do an incremental knn search? #163

Open
zyz760543032 opened this issue Nov 30, 2022 · 5 comments
Open

How to do an incremental knn search? #163

zyz760543032 opened this issue Nov 30, 2022 · 5 comments

Comments

@zyz760543032
Copy link

zyz760543032 commented Nov 30, 2022

Incremental knn search save the priority queue in each round generated by knn search if best-first strategy is adopted, and use priority queue saved in the previous round to search knn in the current round.
I want to do an incremental knn search. Does anyone can teach me, thank you very much!

@zyz760543032
Copy link
Author

zyz760543032 commented Nov 30, 2022

This is the paper proposing incremental knn algorithm:
http://urban-computing.com/pdf/Searching20Similar20Trajectories20by20Locations.pdf

@davidmoten
Copy link
Owner

So you want to adapt this library to enable a knn search? Why? Is this a course assignment? Do you have a real use case? I'm happy to consider a PR if it makes little change to existing code.

@zyz760543032
Copy link
Author

zyz760543032 commented Dec 5, 2022

Thanks for your reply. I want to realize the algorithm proposed in a paper where the knn search is adopted.
In addition, I found your "nearest" method is not a true knn search, so could you realize a true knn search or at best an incremental knn search? thank you :)
More detail about the algorithm is presented in this paper:
http://urban-computing.com/pdf/Searching20Similar20Trajectories20by20Locations.pdf

@davidmoten
Copy link
Owner

Ok, implementing knn algorithm as described is not a priority for me at the moment but could be done. I'm happy to consider a PR from you or another member of the community, otherwise I may have a look at it medium term.

@zyz760543032
Copy link
Author

Thanks for your help!

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

No branches or pull requests

2 participants