Text this: Algorithms for some design automation problems /