Skip to content

Is need traverse the farther side when the length of PriorityQueue not filled with k items #2

@luxuan

Description

@luxuan

The code https://github.com/gvd/kdtree/blob/master/kdtree.h#L200-L202,
Here is my code, just like the #L191:
if (result.size() >= k && (dx * dx) >= result.top().first) {
return;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions