Example of k-NN and genetic algorithm applied to pattern recognition.