1. Home
  2. Data Science
  3. K-Nearest Neighbors (KNN)
  4. What is the computational complexity of making predictions…

Added 1 May 2024

What is the computational complexity of making predictions with the KNN algorithm?

  1. O(n) Correct answer
  2. O(log n)
  3. O(n log n)
  4. O(n^2)

Correct answer

A. O(n)

14 views

MCQSEXAM

Explanation

Making predictions with the KNN algorithm has a computational complexity of O(n), where n is the number of training instances.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More K-Nearest Neighbors (KNN) MCQs

Practise all K-Nearest Neighbors (KNN) MCQs

Similar MCQs