After the nearest rows are fixed, the class is assigned by a strict majority vote. Odd k keeps the displayed rule deterministic.
Majority vote
The k nearest labels are A, A, and A. The majority vote assigns class A to the query.
vote=A
Why k is odd
This surface requires odd k. With k=3, a strict majority exists for the displayed nearest labels.
k=3 is odd
Summary
The assigned class is A because 3 nearest labels vote A. A changed authored vote is rejected.
assigned class=A