
算法
fenyaner
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
城市最短路径问题(图的深度遍历)
/* * 城市地图--- 图的深度优先搜索 * 计算从1号城市到5城市之间的最短路径 * 深度优先搜索 */ #include<iostream> using namespace std; int min = 999999; int book[101], n, e[101][101]; void dfs(int cur, int dis) { //cur表示当前城市编号,dis表...原创 2018-12-12 16:23:28 · 8301 阅读 · 4 评论 -
单链表的基本操作
// ListDemo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 #include "pch.h" #include <iostream> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<malloc.h> #define...原创 2018-12-12 13:23:17 · 640 阅读 · 0 评论