Generatic Algorithm