Math 2.0

Combinatorics Concept

Breadth-first search

Summary

Breadth-first search (BFS) explores a graph from a source vertex in layers: first the source, then its neighbours, then their unvisited neighbours, and so on. It uses a queue and runs in time O(∣V∣+∣E∣)O(\abs{V} + \abs{E}). It finds every vertex reachable from the source and, for each, a path with the fewest edges, so it computes distances in unweighted graphs.

Where this leads

2 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Breadth-first_search
About this page
Tag52XF4HS0X3
URIm2://52XF4HS0X3
Kindconcept
WritingW0 stub
MSC05C85, 68R10
SpecializesAlgorithm
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by

Definitions