Home
Sign Up
Sign In
V2EX
›
问与答
graph 遍历什么时候用 bfs,什么时候用 dfs?
czheo
·
Jan 5, 2015
via iPhone · 4555 views
This topic created in 4352 days ago, the information mentioned may be changed or developed.
bfs
Graph
dfs
3 replies
•
2015-01-05 10:15:33 +08:00
jedihy
Jan 5, 2015
1
那要看你怎么用这个图啊
messyidea
Jan 5, 2015 via Android
2
看什么用途。通常寻路用dfs,找最短路径用bfs,bfs空间复杂度高,dfs小,特定情况还可以限制dfs的深度来迭代加深搜索
lu18887
Jan 5, 2015
3
@
messyidea
赞同
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1887 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms ·
UTC 04:59
·
PVG 12:59
·
LAX 20:59
·
JFK 23:59
♥ Do have faith in what you're doing.
❯