Homework #9

    From Foundations of Computer Science, by Aho & Ullman