会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
kalice
博客园
首页
新随笔
联系
订阅
管理
2020年3月26日
Dijkstra算法
摘要: Dijkstra算法用于求最短路径,有两种实现方式。矩阵和容器。 #include<iostream> #include<vector> using namespace std; const int maxv = 1000, inf = 10000000; //邻接矩阵版 int n, G[maxv
阅读全文
posted @ 2020-03-26 16:59 kalice
阅读(270)
评论(0)
推荐(0)
公告