Discrete optimal next best view planning