incremental_error_algorithm