concept definition in category algorithms

appears as: definition, definition, The definition, Definitions, definitions, The definition
Algorithms and Data Structures in Action

This is an excerpt from Manning's book Algorithms and Data Structures in Action.

  • The algorithm: for every level the element we are pushing down goes through, we need to find its highest-priority child, in order to find where the element could land without violating any property.
  • #1 Method classifyPoints takes the list of points in the dataset and the current list of centroids. It returns the list of the centroids (technically, their indices) associated with each point in the dataset.

    Figure 12.8 Running time comparison between classifyPoints (left) and k_means (right) implementations using brute-force search and k-d tree’s nearest neighbor. The running times are shown as functions of k, the number of centroids, for fixed values of n, the size of the dataset.
    The charts are plotted for n==1500, but they show the same trend for all tested values of n > 1000. Comparing the two plots it’s also evident how the classifyPoints method accounts for most of the running time of this k-means implementation.