Bird migration is driven primarily by availability of food and involves seasonal movements between breeding and wintering grounds. While some birds migrate long distances, others undertake shorter altitudinal migrations. Migration patterns include leap-frog migration where higher latitude populations winter at lower latitudes bypassing resident populations, as well as chain migration where populations shift ranges gradually. The timing and routes of migration are often genetically programmed but can also be learned behaviors that take advantage of geographic features and weather patterns to aid efficient travel.