Question abount implementation

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
data

Research direction

Start with the README’s description of how distinct and coincident points are represented, then inspect the quadtree implementation to understand when leaves subdivide. The issue asks whether subdivision could use a configurable point-count threshold; done would require deciding whether to support that design and describing its effects on memory and insertion time.

Written by the indexing model from the issue text.

Description

As said in the README:

(...) Each distinct point exists in a unique leaf node; coincident points are represented by a linked list. (...)

So this is a quadtree that ALWAYS subdivide when adding a new point, except if this is a point(datum) exactly the same as another that already exists?

I'm very curious about this design choice of not allowing to have custom criteria on when should subdivide leaf nodes (ex: above 10 points), it's just that I have this intuition that it would alleviate so much memory and time entering so many nodes

Dominant language
JavaScript
Stars
238
Forks
54
Avg merge
1d 13h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from d3/d3-quadtree

All issues in d3/d3-quadtree

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.