k-NN's Distance Calculation Bottleneck: O(N*D*k) to O(N^2)

K-Nearest Neighbors (k-NN) for anomaly detection typically suffers from higher computational complexity, ranging from O(N*D*k) to O(N^2) in naive implementations, because it must calculate distances between each new data point and all 'N' existing training data points across 'D' dimensions to find 'k' neighbors. [2, 6, 7, 9, 14, 16, 24]

Sources

Open the full topic