Genetic algorithm, neural algorithm and Monte Carlo