Text this: Spatial Optimization and Resource Allocation in a Cellular Automata Framework