3 di = get-mahalanobis( )//Calculate the weighted Mahalanobis distance of each//data point to other data points and store to di-matrix 4 KNN (di-matrix) = Wk //Use the KNN algorithm to mark the nearest k data points in the di-matrix to get Wk, here k = 3. 5 W = (Wk +WT)...