simulate the algorithms, especially behavior of population