algorithm analysis discrete math 908838