rent algorithms