Mixing OR and AI for efficient path computation