K-Nearest Neighbor algorithm is a classification algorithm that can be used to classify a data with good result. one of them is to classify the titanic dataset. The quality of the classification result of the k - Nearest Neighbor is very dependent on the distance between object and value of k specified, so the selection of method for distance measurement determines the result of classification.…