Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя Abdelrahman_Elhawary

Автор Abdelrahman_Elhawary, 5 лет назад, По-английски

In a directed Graph of N nodes and M edges what is the maximum number of Shortest paths from any node U to another node V ?

And the same for undirected Graph ?

My question came from this problem 1321D - Система навигации where i needed to calculate the number of paths from any node to node t and didn't know whether long long will fit the maximum number of paths or not

Полный текст и комментарии »

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится