Genetic algorithm creating markov algorithm.