Which of the following is an example of a deterministic algorithm?

pca
k-means
Both A and B
None of these

The correct answer is: A. PCA

PCA is a deterministic algorithm because it always produces the same output for the same input. This is because PCA is a linear transformation,

6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
and linear transformations are always deterministic.

K-means is not a deterministic algorithm because it can produce different outputs for the same input, depending on the initial cluster centers. This is because k-means is an iterative algorithm, and the initial cluster centers can affect the final clustering results.

Both A and B is not the correct answer because PCA is a deterministic algorithm, but k-means is not.

None of these is not the correct answer because PCA is an example of a deterministic algorithm.