BERLIN — When our ancestors hunted for food, choosing between exploring new territory or following someone who already found a successful spot could mean the difference between feast and famine.