Optimal learning of deployment and search strategies for robotic teams