Skip to content

Return closest outflow point to user's input location and display V2 #16

Description

@NolanChan

After implementing the naive solution ( #15 ), we should implement a faster solution in case our dataset grows larger. Here are various links that should lead us to a log(n) solution using the KD data structure, with the last link being a nearly parallel example of what we need.

http://stackoverflow.com/questions/10818546/finding-index-of-nearest-point-in-numpy-arrays-of-x-and-y-coordinates <----- Theory of the Problem
http://www.geeksforgeeks.org/k-dimensional-tree/ <----- Theory of the Data Structure
https://github.com/ubilabs/kd-tree-javascript <----- Data Structure Implementation
http://ubilabs.github.io/kd-tree-javascript/examples/map/ <----- Practical Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions