The Design And Analysis Of Computer Algorithms - Aho, Alfred N (Addison-wesley Publishing Company, 1974)