Update algorithm complexity