incremental_algorithm