design analysis efficent alg 2896