{"blog_title":"caligue\u2019s blog","description":"\u5168\u70b9\u5bfe\u6700\u77ed\u7d4c\u8def\u554f\u984c(All-Pairs Shortest Paths Problem)\u306b\u304a\u3044\u3066\u3001Floyd-Warshall\u6cd5\u306a\u3069\u3067\u6700\u77ed\u7d4c\u8def\u306e\u8ddd\u96e2\u884c\u5217\u304c\u6c42\u3081\u3089\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u305d\u306e\u6700\u77ed\u8ddd\u96e2\u884c\u5217\u304b\u3089\u5bfe\u5fdc\u3059\u308b\u7d4c\u8def\u884c\u5217\u3092\u69cb\u7bc9\u3059\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306fO(n^3)\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u5358\u7d14\u306a\u5b9f\u88c5\u3067\u306fFloyd-Warshall\u6cd5\u3068\u540c\u7a0b\u5ea6\u306e\u8a08\u7b97\u51e6\u7406\u6642\u9593\u304c\u304b\u304b\u308b\u3002\u4ee5\u4e0b\u306fC\u306b\u3088\u308b\u5b9f\u88c5\u4f8b\u3002 void construct_aps_path(const int n, const int **A, const int **D, int **P) { for (int i = 0; i < n; i++)\u2026","blog_url":"https://caligue.hatenadiary.org/","type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/caligue/","image_url":null,"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcaligue.hatenadiary.org%2Fentry%2F20110303%2F1299107118\" title=\"\u6700\u77ed\u7d4c\u8def\u306e\u8ddd\u96e2\u884c\u5217\u304b\u3089\u7d4c\u8def\u884c\u5217\u3092\u69cb\u7bc9\u3059\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 - caligue\u2019s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2011-03-03 08:05:18","url":"https://caligue.hatenadiary.org/entry/20110303/1299107118","height":"190","author_name":"caligue","categories":["algorithm"],"title":"\u6700\u77ed\u7d4c\u8def\u306e\u8ddd\u96e2\u884c\u5217\u304b\u3089\u7d4c\u8def\u884c\u5217\u3092\u69cb\u7bc9\u3059\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"}