Homework #2

    From Foundations of Computer Science, by Aho & Ullman