Generates algorithms