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

Gallery (5)