Centralized and Distributed Path Planning for Multi-Agent Exploration