Skip to content
幅優先探索

File:Animated_BFS.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ325904· pop 41· linked from 174 articles

幅優先探索

Sign in to save

Also known as BFS, breadth first search

algorithm for searching the nodes of a graph in order by their hop count from a starting node

Key facts

Class
Search algorithm
Data structure
Graph
Worst case performance
O ( | V | + | E | ) {\displaystyle O(|V|+|E|)}
Worst case space complexity
O ( | V | ) {\displaystyle O(|V|)}
Optimal
Yes (always finds shortest paths)

via Wikipedia infobox

Wikidata facts

Subclass of
graph traversal
Image
Breadth-first-tree.svg
Show 7 more facts
time of discovery or invention
1945-00-00
Commons category
Breadth-first search
uses
FIFO
discoverer or inventor
Konrad Zuse
short name
BFS
Sources (6)

via Wikidata · CC0

Article · 日本語

幅優先探索(はばゆうせんたんさく、英: breadth first search)はグラフ理論(Graph theory)において木構造(tree structure)やグラフ(graph)の探索に用いられるアルゴリズム。アルゴリズムは根ノードで始まり隣接した全てのノードを探索する。それからこれらの最も近いノードのそれぞれに対して同様のことを繰り返して探索対象ノードをみつける。「横型探索」とも言われる。 幅優先探索は解を探すために、グラフの全てのノードを網羅的に展開・検査する。最良優先探索とは異なり、ノード探索にヒューリスティクスを使わずに、グラフ全体を目的のノードがみつかるまで、目的のノードに接近しているかどうかなどは考慮せず探索する。

Abstract from DBpedia / Wikipedia · CC BY-SA

Gallery (5)