Fundamentals of computer algorithms - Horowitz, Ellis; Sahni, Sartaj (Computer Science Press, 1978)