- 博客(1)
- 收藏
- 关注
原创 bfs(广度优先)和dfs(深度优先)代码
本人csdn常客,不怎么发文章,今天第一次发,下面是我写的关于bfs和dfs的代码,需要的自取,原理我不讲,程序所用语言为c++,其中代码中深度优先被我注释掉了,需要深度优先的复制被注释的代码即可 #include #include #include #include using namespace std; struct MapPoint { string PointName; vector index; int piontindex; }; /void dfsfind(int havefind,Map
2021-08-07 17:58:47
165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人