摘要: 广度优先搜索 一、使用情况 1.寻找最短,最少(目前感觉这个比较多哦) 2.地毯式搜索 二、模板 void bfs(){ q.push(start); while(!q.empty()){ node temp=q.front(); q.pop(); visit(temp)=1; for(int i= 阅读全文
posted @ 2019-10-21 19:46 Meursault 阅读(155) 评论(0) 推荐(0)