algorithm analysis part ii 629699