nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

Improve KDTree Search with Priority Queues #18

Open nickna opened 1 month ago

nickna commented 1 month ago

Description:

Enhance the KDTree nearest neighbor search by utilizing priority queues to keep track of the closest points during the search process, thereby reducing unnecessary distance calculations.

Tasks:

Resources:

Impact:

This optimization will improve the efficiency and speed of the nearest neighbor search, making Neighborly more performant for applications requiring fast and accurate search capabilities.

How to Contribute:

  1. Fork the repository and create a new branch for your changes.
  2. Implement the priority queue and integrate it with the KDTree search algorithm.
  3. Ensure all new and existing tests pass.
  4. Submit a pull request with a detailed description of the changes and performance improvements observed.

Blocked by #17