V2EX bfs

Bfs

Definition 定义

BFSbreadth-first search(广度优先搜索)的缩写:一种图/树遍历算法,按“离起点的层级(距离)从近到远”逐层访问节点,常用于求无权图的最短路径、分层遍历等。(也可能在不同语境中有其他含义,但最常见的是算法里的 BFS。)

Pronunciation 发音(IPA)

/bi f s/

Examples 例句

We used BFS to find the shortest path in the maze.
我们用广度优先搜索在迷宫中找到了最短路径。

In an unweighted graph, BFS explores nodes level by level and guarantees the shortest distance from the start node.
在无权图中,BFS 会按层逐步探索节点,并保证从起点到各节点的最短距离。

Etymology 词源

BFS 来自英文短语 Breadth-First Search 的首字母缩写:breadth 表示“广度/横向”,强调先把同一“层”的节点扩展完;first 表示“优先”;search 表示“搜索/遍历”。该术语在计算机科学的图算法与数据结构教学中非常常见。

Related Words 相关词

Literary Works 文献与著作中的出现

  • Introduction to Algorithms(《算法导论》, Cormen 等)图的遍历章节系统讲解 BFS
  • Algorithms(《算法》, Robert Sedgewick & Kevin Wayne)以图处理为例介绍 BFS 的实现与应用
  • The Algorithm Design Manual(《算法设计手册》, Steven S. Skiena)在图算法与问题求解中多次使用 BFS 作为基础工具
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2806 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 54ms UTC 12:28 PVG 20:28 LAX 05:28 JFK 08:28
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86