A Learning Algorithm Algorithm 1: Learning algorithm for Dr.k-NN Input: S