Evolution has equipped all creatures with a regular pattern of sleeping and waking. The study of sleep is an important art of the evolutionary theory. Sleeping patterns must be taken into consideration in the designing of robots. The sleeping pattern of a living creature is determined by the food it eats.