Hardware acceleration

The KNN algorithm is inherently parallel because to calculate the distance between two data points you don't need to know anything about other data points. This makes it a perfect candidate for GPU acceleration. DTW, as we've mentioned, can also be optimized for parallel execution.