Genetic drift example (2 of 4)
Now imagine a small population of all small-beaked individuals (all bb genotypes). They have a high fitness (they are at a local peak), but not as high as a population of big-beaked individuals. Through gene flow some B alleles are introduced to the population. If selection alone were acting, it would weed these alleles out of the population since they would show up in Bb individuals with lower fitness. Under selection alone, the population could never reach the higher BB fitness peak.
Genetic drift example (3 of 4)
However, since the population is small, drift can be a powerful force. Just by chance, the frequencies of the B alleles increase in the population over several generations (and the population moves into a valley in the adaptive landscape). If the B alleles become frequent enough, the population will begin to have BB individuals with high fitness. As this happens, selection begins to increase the frequency of B (the population moves out of the valley and selection pushes it towards the global fitness peak). Eventually, through the action of genetic drift combined with selection, the population moves from one local peak, through a valley of low fitness, to the global fitness peak.
Genetic drift example (4 of 4)
In the real world, many, many loci affect the fitness of a population and an adaptive landscape may have multiple peaks and valleys. This graph shows a complex landscape involving just two loci.