Generalist and specialist foraging strategies