KNN Algorithm with PROLOG and Iris Dataset Running knn algorithm using prolog and giving the shortest distances in dataset.