The Generational Algorithm