What is the computational complexity of making predictions with the KNN algorithm?
-
A
O(n)
Correct answer
-
B
O(log n)
-
C
O(n log n)
-
D
O(n^2)
14 views
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