Their fast and accurate decisions, like deciding which flowers to visit for nectar, could aid robots and self-driving vehicles.