Pergunta de entrevista da empresa SenseTime

The shortest path question. How to find the shortest path given loss function