One-Dimensional Pattern Generation by Cellular Automata