feat: 增加曲率算法

This commit is contained in:
2026-04-07 17:49:29 +08:00
parent 98b52ea99b
commit 52a21a3cc8
2 changed files with 78 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
## 图论常见算法
### Dijkstra算法
用于求解单个源最短路问题:
1. 初始化:将所有顶点的距离设为正无穷,源顶点设为0;
2. 迭代:从源顶点出发,遍历所有边,更新顶点的距离;
3. 检验:检查是否存在负权重环,如果有则返回错误;
4. 返回:返回所有顶点的距离。
### Bellman-Ford算法
### Bellman-Ford算法