Home / Docs / Nearest-neighbor search fundamentals / What is nearest-neighbor search? / How does the k-nearest neighbors algorithm work, step by step? How does the k-nearest neighbors algorithm work, step by step? Created: Sep 23, 20261 min read MD PDF Content coming soon. ← PreviousIs k-nearest neighbors a supervised or unsupervised algorithm?Next →How do you choose the value of k in k-nearest neighbors?